-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5440 from jdi-testing/5314
#5314 clear Inputs control from notclear methods
- Loading branch information
Showing
9 changed files
with
71 additions
and
127 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,7 +45,7 @@ public void disabledInputTest() { | |
@Test(description = "Test checks if input has label or not") | ||
public void labelInputTest() { | ||
hideDetailsMainInput.show(); | ||
hideDetailsMainInput.has().label(); | ||
hideDetailsMainInput.has().label("Main input"); | ||
fewErrorsCountInput.show(); | ||
fewErrorsCountInput.has().noLabel(); | ||
} | ||
|
@@ -54,20 +54,18 @@ public void labelInputTest() { | |
public void typeTextInputTest() { | ||
String textToType = "Some text"; | ||
hideDetailsAnotherInput.show(); | ||
hideDetailsAnotherInput.has().textField(); | ||
hideDetailsAnotherInput.typeText(textToType); | ||
hideDetailsAnotherInput.has().typedText() | ||
.and().typedText(textToType); | ||
hideDetailsAnotherInput.has().textInput(); | ||
hideDetailsAnotherInput.text(textToType); | ||
hideDetailsAnotherInput.has().text(textToType); | ||
|
||
fewErrorsCountInput.show(); | ||
fewErrorsCountInput.has().notTextField(); | ||
fewErrorsCountInput.has().notTextInput(); | ||
} | ||
|
||
@Test(description = "Test checks that input has text in slot") | ||
public void hintInputTest() { | ||
hintInput.show(); | ||
hintInput.has().textInSlot() | ||
.and().textInSlot("Input"); | ||
hintInput.has().text("Input"); | ||
} | ||
|
||
@Test(description = "Test checks that input switch changes input's messages : hint, persistent-hint") | ||
|
@@ -97,15 +95,13 @@ public void loadingInputTest() { | |
public void rulesInputTest() { | ||
String incorrectTextToType = "Some text"; | ||
String correctTextToType = "[email protected]"; | ||
rulesInput.has().textField(); | ||
rulesInput.typeText(incorrectTextToType); | ||
rulesInput.has().typedText(); | ||
rulesInput.has().typedText(incorrectTextToType); | ||
rulesInput.has().textInput(); | ||
rulesInput.text(incorrectTextToType); | ||
rulesInput.has().text(incorrectTextToType); | ||
rulesInput.has().errorMessage("Invalid e-mail.") | ||
.and().has().messagesCount(1); | ||
rulesInput.clearAndTypeText(correctTextToType); | ||
rulesInput.has().typedText(); | ||
rulesInput.has().typedText(correctTextToType); | ||
rulesInput.text(correctTextToType); | ||
rulesInput.has().text(correctTextToType); | ||
rulesInput.has().noErrorMessages(); | ||
} | ||
|
||
|
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
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
Oops, something went wrong.