Skip to content

Commit

Permalink
test: fix duplicate-steps for win
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalets committed Apr 12, 2024
1 parent 0314632 commit c76dac3
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions test/duplicate-steps/test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ const featureFile = normalize('features/sample.feature');
test(`${testDir.name} (main thread - regular steps)`, () => {
const error = [
`Multiple step definitions matched for text: "duplicate step" (${featureFile})`,
` duplicate step - steps/steps.ts:6`,
` duplicate step - steps/steps.ts:7`,
` duplicate step - steps/steps.ts:8`,
` duplicate step - ${normalize('steps/steps.ts')}:6`,
` duplicate step - ${normalize('steps/steps.ts')}:7`,
` duplicate step - ${normalize('steps/steps.ts')}:8`,
].join('\n');
execPlaywrightTestWithError(testDir.name, error, {
cmd: BDDGEN_CMD,
Expand All @@ -25,9 +25,9 @@ test(`${testDir.name} (main thread - regular steps)`, () => {
test(`${testDir.name} (main thread - decorator steps)`, () => {
const error = [
`Multiple step definitions matched for text: "duplicate decorator step" (${featureFile})`,
` duplicate decorator step - steps/TodoPage.ts:7`,
` duplicate decorator step - steps/TodoPage.ts:10`,
` duplicate decorator step - steps/TodoPage.ts:13`,
` duplicate decorator step - ${normalize('steps/TodoPage.ts')}:7`,
` duplicate decorator step - ${normalize('steps/TodoPage.ts')}:10`,
` duplicate decorator step - ${normalize('steps/TodoPage.ts')}:13`,
].join('\n');
execPlaywrightTestWithError(testDir.name, error, {
cmd: BDDGEN_CMD,
Expand All @@ -38,9 +38,9 @@ test(`${testDir.name} (main thread - decorator steps)`, () => {
test(`${testDir.name} (worker - regular steps)`, () => {
const error = [
`Multiple step definitions matched for text: "duplicate step" (${featureFile})`,
` duplicate step - steps/steps.ts:6`,
` duplicate step - steps/steps.ts:7`,
` duplicate step - steps/steps.ts:8`,
` duplicate step - ${normalize('steps/steps.ts')}:6`,
` duplicate step - ${normalize('steps/steps.ts')}:7`,
` duplicate step - ${normalize('steps/steps.ts')}:8`,
].join('\n');
execPlaywrightTestWithError(testDir.name, error, {
cmd: BDDGEN_CMD,
Expand Down

0 comments on commit c76dac3

Please sign in to comment.