Skip to content

Commit

Permalink
Add a step definition when I press value by the attribute name #140
Browse files Browse the repository at this point in the history
  • Loading branch information
TasneemNatshah committed Jul 7, 2024
1 parent 5825e34 commit 3b37494
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ Feature: An example to test if the element contains a certain expected CSS prope
Scenario: Check element if the element contains a certain expected CSS property
Given I am on "/test--then--the-element-should_not-contain-cssproperty.html"
Then I should see a "body" element
When I press "Submit"
When I press "Submit" by attr
Then the "body" element should contain "background-color:white;"

Scenario: Check element if the element not contains a certain CSS property
Given I am on "/test--then--the-element-should_not-contain-cssproperty.html"
Then I should see a "body" element
When I press "Submit"
When I press "Submit" by attr
Then the "#uname" element should not contain "border:solid 5px red;"
2 changes: 1 addition & 1 deletion tests/features/test--when--i-attach-file-to-feild.feature
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ Feature: An example to test attach file to field
# Scenario: Check attach file to field
# Given I am on "/test--when--i-attach-file-to-feild.html"
# When I attach the file "webshipco.png" to "#fileUpload"
# When I press "Submit"
# When I press "Submit" by attr
# Then I should see "webshipco.png"
8 changes: 4 additions & 4 deletions tests/features/test--when--i-check-checkbox.feature
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ Feature: An example to uncheck the checkbox
Given I am on "/test--when--i-check-uncheck-checkbox.html"
When I check "bike"
And I check "car"
And I press "Submit"
And I press "Submit" by "value" attr
Then I should see "You have a Bike Car"
When I check "van"
And I press "Submit"
And I press "Submit" by "value" attr
Then I should see "You have a Bike Car Van"
When I uncheck "bike"
And I press "Submit"
And I press "Submit" by "value" attr
Then I should see "You have a Car Van"
When I uncheck "car"
When I uncheck "van"
And I press "Submit"
And I press "Submit" by "value" attr
Then I should see "You have a"

2 changes: 1 addition & 1 deletion tests/features/test--when--i-press-button.feature
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ Feature: An example to press a button

Scenario: Check press a button
Given I am on "/test--when--i-press-button.html"
When I press "Submit"
When I press "Submit" by its attr
Then I should see "Button Pressed Successfully"
2 changes: 1 addition & 1 deletion tests/features/test--when--i-reload-page.feature
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ I want to be able to reload the page

Scenario: Check to reload the page
Given I am on "/test--when--i-reload-page.html"
When I press "Submit"
When I press "Submit" by attr
Then I should see "Button Pressed Successfully"
When I reload the page
Then I should not see "Button Pressed Successfully"
Expand Down

0 comments on commit 3b37494

Please sign in to comment.