Skip to content

Commit

Permalink
test(cypress): remove redundant tests in actions.feature
Browse files Browse the repository at this point in the history
  • Loading branch information
remarkablemark committed Nov 30, 2024
1 parent c15059a commit 0572145
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 46 deletions.
45 changes: 0 additions & 45 deletions cypress/e2e/cypress/example/commands/actions.feature
Original file line number Diff line number Diff line change
@@ -1,13 +1,4 @@
Feature: Cypress actions
Scenario: See button, heading, link, and label
Given I visit "https://example.cypress.io/commands/actions"
Then I see heading "Actions"
And I see heading ".type()"
And I see heading "Canvas to Illustrate Click Positions"
And I see link ".type()"
And I see label "Email address"
And I see button "Submit"

Scenario: See and click button
Given I visit "https://example.cypress.io/commands/actions"
Then I do not see text "This popover shows up on click"
Expand All @@ -19,21 +10,6 @@ Feature: Cypress actions
And I wait 500 milliseconds
Then I see element does not exist

Scenario: See, click, and type label
Given I visit "https://example.cypress.io/commands/actions"
Then I see label "Email address"
When I click on label "Email address"
And I type "test@example.com"

Scenario: Force click
Given I visit "https://example.cypress.io/commands/actions"
Then I click on button "I'm being covered"
| force | true |
When I reload the page
And I find button by text "I'm being covered"
Then I click
| force | true |

Scenario: Double-click
Given I visit "https://example.cypress.io/commands/actions"
And I double-click on text "Double click to edit"
Expand Down Expand Up @@ -66,17 +42,6 @@ Feature: Cypress actions
Then I do not see visible text "Right click to edit"
And I find input by display value "Right click to edit"

Scenario: Checkbox and radio
Given I visit "https://example.cypress.io/commands/actions"
When I find input by label text 'Checkbox one has value "checkbox1"'
And I check
And I check input 'Checkbox one has value "checkbox1"'
And I uncheck
And I uncheck input 'Checkbox one has value "checkbox1"'
When I click on text 'Radio one has value "radio1"'
And I check input 'Radio one has value "radio1"'
And I click on text 'Radio two has value "radio2". When checked, it will uncheck Radio one.'

Scenario: Select option
Given I visit "https://example.cypress.io/commands/actions"
Then I see option "--Select a fruit--"
Expand Down Expand Up @@ -182,16 +147,6 @@ Feature: Cypress actions
When I find select by display value "bananas"
And I select option "bananas"

Scenario: Find title and trigger event
Given I visit "https://example.cypress.io/commands/actions"
And I set Cypress config "defaultCommandTimeout" to "10000"
When I find element by title ""
And I trigger event "click"
Then I see heading "Popover"
When I reload the page
And I click on title ""
Then I see heading "Popover"

Scenario: Find and submit form
Given I visit "https://example.cypress.io/commands/actions"
When I find form
Expand Down
4 changes: 3 additions & 1 deletion cypress/e2e/google/google.feature
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ Feature: Google
Then I count 1 element
When I find element by title "Search"
And I type "title{selectAll}{backspace}"
And I type "title{enter}"
And I type "title"
And I find button by text "Google Search"
And I trigger event "click"

Scenario: Name
Given I visit "https://www.google.com/"
Expand Down

0 comments on commit 0572145

Please sign in to comment.