-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change assertion that input text field should contains a specific val…
…ue to be by its label #167
- Loading branch information
1 parent
d234e49
commit 65ad718
Showing
2 changed files
with
12 additions
and
9 deletions.
There are no files selected for viewing
10 changes: 5 additions & 5 deletions
10
tests/features/test--then--the-field-should-contain-value.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
Feature: An example to test if the field contains certain value | ||
Feature: An example to test if the field contains certain value by element label | ||
As a tester | ||
I want to be able to check field if has a certain value or not | ||
I want to be able to check field if has a certain value by element label | ||
|
||
Scenario: Check field if has a particular value or not | ||
Scenario: Check field if has a particular value by element label | ||
Given I am on "/test--then--i-should--not--see-text-in-element.html" | ||
And I fill in "Username" with "user1" | ||
Then the "#uname" field should contain "user1" | ||
Then the "Username" field should contain "user1" | ||
When I press "Reset" by attr | ||
And I fill in "Username" with "user2" | ||
Then the "#uname" field should not contain "user1" | ||
Then the "Username" field should contain "user2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters