KEYCLOAK-7876 Improve stability of fuse7 hawtio test

This commit is contained in:
vramik 2018-07-18 09:49:58 +02:00 committed by Hynek Mlnařík
parent 385e1c6122
commit 8e20986335

View file

@ -176,12 +176,8 @@ public class FuseAdminAdapterTest extends AbstractExampleAdapterTest {
log.debug("Current URL: " + DroneUtils.getCurrentDriver().getCurrentUrl());
assertCurrentUrlStartsWith(hawtio2Page.toString());
WaitUtils.waitForPageToLoad();
assertThat(DroneUtils.getCurrentDriver().getPageSource(),
allOf(
containsString("keycloak-session-iframe"),//todo check this if it's correct
not(containsString("Camel"))
)
);
WaitUtils.waitUntilElement(By.xpath("//img[@alt='Red Hat Fuse Management Console']")).is().present();
assertThat(DroneUtils.getCurrentDriver().getPageSource(), not(containsString("Camel")));
}
@Test