diff options
Diffstat (limited to 'uitest/src/com/vaadin/tests/components/browserframe/BrowserFrameIsVisibleTest.java')
-rw-r--r-- | uitest/src/com/vaadin/tests/components/browserframe/BrowserFrameIsVisibleTest.java | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/components/browserframe/BrowserFrameIsVisibleTest.java b/uitest/src/com/vaadin/tests/components/browserframe/BrowserFrameIsVisibleTest.java new file mode 100644 index 0000000000..927b76d2c3 --- /dev/null +++ b/uitest/src/com/vaadin/tests/components/browserframe/BrowserFrameIsVisibleTest.java @@ -0,0 +1,22 @@ +package com.vaadin.tests.components.browserframe; + +import org.junit.Test; + +import com.vaadin.testbench.elements.ButtonElement; +import com.vaadin.tests.tb3.MultiBrowserTest; + +public class BrowserFrameIsVisibleTest extends MultiBrowserTest { + @Test + public void testBrowserFrameDisplaysFiles() throws Exception { + openTestURL(); + compareScreen("show_initial"); + $(ButtonElement.class).caption("Hello World").first().click(); + compareScreen("show_hello"); + $(ButtonElement.class).caption("Lorem ipsum").first().click(); + compareScreen("show_lorem"); + $(ButtonElement.class).caption("null").first().click(); + compareScreen("show_alternative_text"); + $(ButtonElement.class).caption("Lorem ipsum").first().click(); + compareScreen("show_lorem"); + } +} |