Skip to content

Commit

Permalink
test(cypress): assert heading in e2e example/example.feature
Browse files Browse the repository at this point in the history
  • Loading branch information
remarkablemark committed Oct 2, 2023
1 parent dcd5dd0 commit 9148693
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cypress/e2e/example/example.feature
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ Feature: Example
Then I see document title "Example Domain"
And I see document title contains "Example"

Scenario: See heading
Given I visit "http://example.com/"
Then I see heading "Example Domain"
When I find headings by text "Example Domain"
Then I count 1 element
When I find heading by text "Example Domain"
Then I count 1 element

Scenario: See and not see text
Given I visit "http://example.com/"
Then I see text "Example Domain"
Expand Down

0 comments on commit 9148693

Please sign in to comment.