Add Alert assert messages

(cherry picked from commit 9f847fa)
This commit is contained in:
Vaclav Muzikar 2016-02-12 14:51:47 +01:00
parent 4b5fee02cc
commit 8006c64dba

View file

@ -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();
} }