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 7bcbe88
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 1 deletion.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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 } from 'playwright-bdd';

const testDir = defineBddConfig({
importTestFrom: 'steps/fixtures.ts',
paths: ['features'],
paths: ['playwright'],
require: ['steps/*.ts'],
quotes: 'backtick',
});
Expand Down
10 changes: 10 additions & 0 deletions playwright/features/flow1/homepage.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Feature: Home Page

Scenario: Check title
Given I am on home page
Then I see in title "Playwright"

Scenario: Check get started
Given I am on home page
When I click link "Get started"
Then I see in title "Installation"
21 changes: 21 additions & 0 deletions playwright/features/flow2/todopage.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
@todo
Feature: Todo Page

Background:
Given I am on todo page

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

Scenario: Add todos
When I add todo "foo"
And I add todo "bar"
Then visible todos count is 2

Scenario: Complete todos
When I add todo "foo"
And I add todo "bar"
And I complete todo "bar"
And I filter todos as "Completed"
Then visible todos count is 1

0 comments on commit 7bcbe88

Please sign in to comment.