-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Conversation
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`'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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')}`'); |
There was a problem hiding this comment.
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>']; |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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?
d37b7d0
to
1cc49af
Compare
There was a problem hiding this 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
tests/android/playwright.config.ts
Outdated
@@ -67,6 +67,7 @@ config.projects.push({ | |||
browserName: 'chromium', | |||
}, | |||
testDir: path.join(testDir, 'page'), | |||
testMatch: /page-check/, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
revert that
1cc49af
to
3af3585
Compare
No description provided.