Skip to content

Commit

Permalink
test: fix call-step-from-step
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalets committed Apr 4, 2024
1 parent 1a19866 commit cce0a15
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion test/call-step-from-step/features/sample.feature
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Feature: call step from step
| create todos - bar |
| create todos - baz |

@fail
@error
Scenario: incorrect invocation
When I incorrectly create 2 todos "bar" and "baz"

6 changes: 3 additions & 3 deletions test/call-step-from-step/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ export default defineConfig({
}),
},
{
name: 'fail',
name: 'error',
testDir: defineBddConfig({
outputDir: '.features-gen/fail',
outputDir: '.features-gen/error',
paths: ['features/*.feature'],
require: ['steps/index.ts'],
importTestFrom: 'steps/fixtures.ts',
tags: '@fail',
tags: '@error',
}),
},
],
Expand Down
2 changes: 1 addition & 1 deletion test/call-step-from-step/test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ test(`${testDir.name} (invalid invocation)`, () => {
execPlaywrightTestWithError(
testDir.name,
['Missings fixtures: todos, $testInfo'],
`${DEFAULT_CMD} --project fail`,
`${DEFAULT_CMD} --project error`,
);
});

0 comments on commit cce0a15

Please sign in to comment.