Add Alert assert messages
(cherry picked from commit 9f847fa)
This commit is contained in:
parent
4b5fee02cc
commit
8006c64dba
1 changed files with 2 additions and 2 deletions
|
@ -107,13 +107,13 @@ public abstract class AbstractConsoleTest extends AbstractAuthTest {
|
||||||
|
|
||||||
public void assertAlertSuccess() {
|
public void assertAlertSuccess() {
|
||||||
alert.waitUntilPresentAndClassSet();
|
alert.waitUntilPresentAndClassSet();
|
||||||
assertTrue(alert.isSuccess());
|
assertTrue("Is not success; @class=" + alert.getAttributeClass(), alert.isSuccess());
|
||||||
alert.close();
|
alert.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void assertAlertDanger() {
|
public void assertAlertDanger() {
|
||||||
alert.waitUntilPresentAndClassSet();
|
alert.waitUntilPresentAndClassSet();
|
||||||
assertTrue(alert.isDanger());
|
assertTrue("Is not danger; @class=" + alert.getAttributeClass(), alert.isDanger());
|
||||||
alert.close();
|
alert.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue