playwrightSpec top-level property
Implementation
final FigSpec playwrightSpec = FigSpec(
name: 'playwright',
description: '',
subcommands: [
FigSubcommand(
name: ['test'],
description: 'Run tests with Playwright Test',
args: [
FigArg(
name: 'tests',
description: 'Test files to run',
isOptional: true,
isVariadic: true,
template: ['filepaths', 'folders'],
),
],
options: [
FigOption(
name: ['-g'],
description: 'Run the test with the title',
args: [
FigArg(
name: 'title',
),
],
),
FigOption(
name: ['--headed'],
description: 'Run tests in headed browsers',
),
helpOption,
],
),
FigSubcommand(
name: ['install'],
description: 'Running without arguments will install default browsers',
args: [
FigArg(
name: 'browsers',
description: 'Browser to install',
isOptional: true,
isVariadic: true,
suggestions: browserSuggestions,
),
],
options: [
FigOption(
name: ['--with-deps'],
description: 'Install system dependencies for browsers',
),
helpOption,
],
),
],
options: [
FigOption(
name: ['--version', '-V'],
description: 'Output the version number',
),
helpOption,
],
);