-
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.
Add assertion that input text does not contains a specific value by i…
…ts attributes #156
- Loading branch information
1 parent
d6c6d70
commit b83d734
Showing
2 changed files
with
35 additions
and
13 deletions.
There are no files selected for viewing
22 changes: 9 additions & 13 deletions
22
tests/features/test--then--i-should--not--see-text-in-element.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,16 +1,12 @@ | ||
Feature: An example to test whether the input text does not contain a specific value by its label | ||
Feature: An example to test whether the input text does not contain a specific value by its attribute | ||
As a tester | ||
I want to be able to check an input text if does not contain a specific value by its label | ||
Scenario: Check an element if it contains a specific text | ||
Given I am on "/test--then--i-should--not--see-text-in-element.html" | ||
When I fill in "Username" with "user1" | ||
And I fill in "Password" with "1234" | ||
Then I should see "user1" in the "Username" element | ||
When I fill in "uname" with: by attr | ||
And I fill in "Password" with: | ||
Then I should not see "user1" in the "Username" element | ||
|
||
I want to be able to check an input text does not contain a specific value by its attribute | ||
Scenario: Check an element if it does not contain a specific text | ||
Given I am on "/test--then--i-should--not--see-text-in-element.html" | ||
And I fill in "Username" with "user2" | ||
Then I should not see "user1" in the "Username" element | ||
When I fill in "Username" with "user1" | ||
And I fill in "Password" with "1234" | ||
Then I should see "user1" in the "Username" element | ||
When I fill in "uname" with: by attr | ||
And I fill in "Password" with: | ||
Then I should not see "user1" in the "Username" element | ||
Then I should not see "1234" in the "pword" element by attr |
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