Skip to content

Commit

Permalink
update example
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalets committed Aug 3, 2024
1 parent 6f4c1c2 commit c1715be
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
11 changes: 11 additions & 0 deletions features/steps/fixtures.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { test as base, createBdd } from 'playwright-bdd';

type Fixtures = {
// set types of your fixtures
};

export const test = base.extend<Fixtures>({
// add your fixtures
});

export const { Given, When, Then } = createBdd(test);
File renamed without changes.
2 changes: 1 addition & 1 deletion playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { defineBddConfig, cucumberReporter } from "playwright-bdd";

const testDir = defineBddConfig({
features: "features/*.feature",
steps: "steps/*.ts",
steps: "features/steps/*.ts",
});

export default defineConfig({
Expand Down
7 changes: 0 additions & 7 deletions steps/fixtures.ts

This file was deleted.

0 comments on commit c1715be

Please sign in to comment.