-
Notifications
You must be signed in to change notification settings - Fork 1
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 #68 from dzmitryrak/feature/SSC-66-ADD-VALIDATE-ALERT
Add a new method for work with alerts
- Loading branch information
Showing
3 changed files
with
36 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -246,4 +246,4 @@ | |
<version>${apache.common.version}</version> | ||
</dependency> | ||
</dependencies> | ||
</project> | ||
</project> |
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
20 changes: 20 additions & 0 deletions
20
src/test/java/io/github/dzmitryrak/tests/ValidateAlertDialogTest.java
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,20 @@ | ||
package io.github.dzmitryrak.tests; | ||
|
||
import io.github.dzmitryrak.tests.base.BaseTest; | ||
import org.testng.annotations.Test; | ||
import static org.testng.Assert.assertTrue; | ||
|
||
public class ValidateAlertDialogTest extends BaseTest { | ||
@Test(description = "Check Success alert") | ||
public void tableValidation() { | ||
loginPage.open().login(USERNAME, PASSWORD); | ||
String alertMessage = listView | ||
.open("Case") | ||
.actions() | ||
.newObject() | ||
.enterData("Case Origin", "Phone") | ||
.save() | ||
.getAlert(); | ||
assertTrue(alertMessage.contains("Success")); | ||
} | ||
} |