-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add reveal eye to password form control (#2219)
Co-authored-by: Michael Voříšek <[email protected]>
- Loading branch information
1 parent
5cef498
commit 3934637
Showing
5 changed files
with
70 additions
and
2 deletions.
There are no files selected for viewing
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Feature: Input control | ||
|
||
Scenario: Password reveal | ||
Given I am on "form-control/input2.php" | ||
When I fill in "password_norm" with "Foo secret" | ||
Then Element "//input[@name='password_norm']" attribute "type" should contain text "password" | ||
Then Element "//input[@name='password_norm']/../i[contains(@class, 'eye')]" attribute "class" should contain text "eye link slash icon" | ||
When I click using selector "//input[@name='password_norm']/../i[contains(@class, 'eye')]" | ||
Then Element "//input[@name='password_norm']" attribute "type" should contain text "text" | ||
Then Element "//input[@name='password_norm']/../i[contains(@class, 'eye')]" attribute "class" should contain text "eye link icon" | ||
When I click using selector "//input[@name='password_norm']/../i[contains(@class, 'eye')]" | ||
Then Element "//input[@name='password_norm']" attribute "type" should contain text "password" | ||
Then Element "//input[@name='password_norm']/../i[contains(@class, 'eye')]" attribute "class" should contain text "eye link icon slash" |