package brooklyn.web.console.test | |
import org.testng.annotations.Test | |
import static brooklyn.web.console.test.SeleniumTest.selenium | |
import static brooklyn.web.console.test.SeleniumTest.waitFor | |
public class StatusTest { | |
@Test public void statusIndicator() { | |
selenium.open("/detail/"); | |
selenium.isTextPresent("No data yet.") | |
// Wait for tree to load | |
waitFor({selenium.isTextPresent("tomcat")}); | |
selenium.click("link=tomcat node 1a.3") | |
waitFor({selenium.isTextPresent("regexp:\\d{2}:\\d{2}:\\d{2}")}); | |
} | |
} |