Skip to content

Commit

Permalink
reproduce features dir structure
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalets committed Aug 8, 2023
1 parent f3eaafe commit 33fc2e9
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 5 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Feature: Todo Page

Scenario: Empty list
Then visible todos count is 0
And page screenshot matches previous one
# And page screenshot matches previous one

Scenario: Add todos
When I add todo "foo"
Expand Down
6 changes: 2 additions & 4 deletions playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,16 @@ import { defineConfig, devices } from '@playwright/test';
import { defineBddConfig } from 'playwright-bdd';

const testDir = defineBddConfig({
importTestFrom: 'steps/fixtures.ts',
paths: ['features'],
paths: ['features/**/*.{feature,feature.md}'],
require: ['steps/*.ts'],
quotes: 'backtick',
importTestFrom: 'steps/fixtures.ts',
});

export default defineConfig({
testDir,
reporter: 'html',
use: {
screenshot: 'only-on-failure',
baseURL: 'http://localhost:3000',
},
projects: [
{
Expand Down

0 comments on commit 33fc2e9

Please sign in to comment.