chore: create-playwright #10221 follow-up (#10247)

This commit is contained in:
Max Schmitt 2021-11-11 19:26:31 +01:00 committed by GitHub
parent 0fa8073ab6
commit e3ba3eab11
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -83,16 +83,16 @@ export class Generator {
},
{
type: 'confirm',
name: 'installPlaywrightDependencies',
message: 'Install Playwright operating system dependencies (requires sudo / root - can be done manually via \sudo npx playwright install-deps\')?',
name: 'addExamples',
message: 'Add common examples which demonstrate Playwright\'s capabilities?',
initial: true,
},
// Avoid installing dependencies on Windows (vast majority does not run create-playwright on Windows)
// Avoid installing dependencies on Mac (there are no dependencies)
...(process.platform === 'linux' ? [{
type: 'confirm',
name: 'addExamples',
message: 'Add common examples which demonstrate Playwright\'s capabilities?',
name: 'installPlaywrightDependencies',
message: 'Install Playwright operating system dependencies (requires sudo / root - can be done manually via \sudo npx playwright install-deps\')?',
initial: true,
}] : []),
]);