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

References #10159
This commit is contained in:
Max Schmitt 2021-11-11 19:26:31 +01:00 committed by Andrey Lushnikov
parent 2998f42c85
commit 01ea173506

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,
}] : []),
]);