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