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