Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: download android driver from the cdn #18466

Merged
merged 1 commit into from
Oct 31, 2022

Conversation

pavelfeldman
Copy link
Member

No description provided.

for (const file of ['android-driver.apk', 'android-driver-target.apk']) {
const fullName = path.join(executable.directory!, file);
if (!fs.existsSync(fullName))
throw new Error('Please install Android driver apk using `npx playwright install android`');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
throw new Error('Please install Android driver apk using `npx playwright install android`');
throw new Error('Please install Android driver apk using `${buildPlaywrightCLICommand(sdkLanguage, 'install android')}`');

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think your suggestion compiles.

@@ -743,7 +761,8 @@ export class Registry {
}

private _downloadURLs(descriptor: BrowsersJSONDescriptor): string[] {
const downloadPathTemplate: string|undefined = (DOWNLOAD_PATHS as any)[descriptor.name][hostPlatform];
const paths = (DOWNLOAD_PATHS as any)[descriptor.name];
const downloadPathTemplate: string|undefined = paths[hostPlatform] || paths['<unknown>'];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this has a side-effect when downloading browsers, probably for unknown linux versions?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think so?

@pavelfeldman pavelfeldman force-pushed the android_cdn branch 2 times, most recently from d37b7d0 to 1cc49af Compare October 31, 2022 22:35
Copy link
Member

@mxschmitt mxschmitt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm but unknown -> default/fallback

@@ -67,6 +67,7 @@ config.projects.push({
browserName: 'chromium',
},
testDir: path.join(testDir, 'page'),
testMatch: /page-check/,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

revert that

@pavelfeldman pavelfeldman merged commit 4d53fd9 into microsoft:main Oct 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants