From 7bcd8c29d80843336875f931c3b41f8f44f1d833 Mon Sep 17 00:00:00 2001 From: Teemu Suo-Anttila Date: Fri, 20 Feb 2015 11:57:22 +0200 Subject: [PATCH] Migrate TB2 test from application package to TB4 RefreshFragmentChangeTest RefreshStatePreserveTest RefreshStatePreserveTitleTest TerminalErrorNotificationTest ThreadLocalInstancesTest WebBrowserSizeTest WebBrowserTest Change-Id: I5c95905b4999ebefc7b170057952b09780174627 --- .../RefreshFragmentChangeTest.java | 29 +++++ .../application/RefreshStatePreserve.java | 12 +- .../application/RefreshStatePreserveTest.java | 29 +++++ .../RefreshStatePreserveTitle.java | 3 - .../RefreshStatePreserveTitleTest.java | 20 ++++ .../TerminalErrorNotificationTest.java | 20 ++++ .../application/ThreadLocalInstancesTest.java | 35 ++++++ .../tests/application/WebBrowserSize.java | 47 ++++++++ .../tests/application/WebBrowserSizeTest.java | 60 +++------- .../tests/application/WebBrowserTest.java | 99 ---------------- .../tests/application/WebBrowserTimeZone.java | 71 +++++++++++ .../application/WebBrowserTimeZoneTest.java | 27 +++++ .../application/RefreshFragmentChange.html | 37 ------ .../application/RefreshStatePreserve.html | 51 -------- .../RefreshStatePreserveTitle.html | 36 ------ .../TerminalErrorNotification.html | 36 ------ .../application/ThreadLocalInstances.html | 111 ------------------ .../tests/application/WebBrowserSizeTest.html | 31 ----- .../tests/application/WebBrowserTest.html | 44 ------- 19 files changed, 298 insertions(+), 500 deletions(-) create mode 100644 uitest/src/com/vaadin/tests/application/RefreshFragmentChangeTest.java create mode 100644 uitest/src/com/vaadin/tests/application/RefreshStatePreserveTest.java create mode 100644 uitest/src/com/vaadin/tests/application/RefreshStatePreserveTitleTest.java create mode 100644 uitest/src/com/vaadin/tests/application/TerminalErrorNotificationTest.java create mode 100644 uitest/src/com/vaadin/tests/application/ThreadLocalInstancesTest.java create mode 100644 uitest/src/com/vaadin/tests/application/WebBrowserSize.java delete mode 100644 uitest/src/com/vaadin/tests/application/WebBrowserTest.java create mode 100644 uitest/src/com/vaadin/tests/application/WebBrowserTimeZone.java create mode 100644 uitest/src/com/vaadin/tests/application/WebBrowserTimeZoneTest.java delete mode 100644 uitest/tb2/com/vaadin/tests/application/RefreshFragmentChange.html delete mode 100644 uitest/tb2/com/vaadin/tests/application/RefreshStatePreserve.html delete mode 100644 uitest/tb2/com/vaadin/tests/application/RefreshStatePreserveTitle.html delete mode 100644 uitest/tb2/com/vaadin/tests/application/TerminalErrorNotification.html delete mode 100644 uitest/tb2/com/vaadin/tests/application/ThreadLocalInstances.html delete mode 100644 uitest/tb2/com/vaadin/tests/application/WebBrowserSizeTest.html delete mode 100644 uitest/tb2/com/vaadin/tests/application/WebBrowserTest.html diff --git a/uitest/src/com/vaadin/tests/application/RefreshFragmentChangeTest.java b/uitest/src/com/vaadin/tests/application/RefreshFragmentChangeTest.java new file mode 100644 index 0000000000..ea415bcaae --- /dev/null +++ b/uitest/src/com/vaadin/tests/application/RefreshFragmentChangeTest.java @@ -0,0 +1,29 @@ +package com.vaadin.tests.application; + +import org.junit.Assert; +import org.junit.Test; + +import com.vaadin.testbench.By; +import com.vaadin.tests.tb3.MultiBrowserTest; + +public class RefreshFragmentChangeTest extends MultiBrowserTest { + @Override + protected Class getUIClass() { + return com.vaadin.tests.application.RefreshStatePreserve.class; + } + + @Test + public void testFragmentChange() throws Exception { + openTestURL(); + assertLogText("1. Initial fragment: null"); + getDriver().get(getTestUrl() + "#asdf"); + assertLogText("2. Fragment changed to asdf"); + openTestURL(); + assertLogText("3. Fragment changed to null"); + } + + private void assertLogText(String expected) { + waitForElementPresent(By.className("v-label")); + Assert.assertEquals("Incorrect log text,", expected, getLogRow(0)); + } +} diff --git a/uitest/src/com/vaadin/tests/application/RefreshStatePreserve.java b/uitest/src/com/vaadin/tests/application/RefreshStatePreserve.java index e66e8b9752..e7f81167d9 100644 --- a/uitest/src/com/vaadin/tests/application/RefreshStatePreserve.java +++ b/uitest/src/com/vaadin/tests/application/RefreshStatePreserve.java @@ -4,28 +4,24 @@ import com.vaadin.annotations.PreserveOnRefresh; import com.vaadin.server.Page.UriFragmentChangedEvent; import com.vaadin.server.Page.UriFragmentChangedListener; import com.vaadin.server.VaadinRequest; -import com.vaadin.tests.components.AbstractTestUI; -import com.vaadin.tests.util.Log; +import com.vaadin.tests.components.AbstractTestUIWithLog; import com.vaadin.ui.Label; @PreserveOnRefresh -public class RefreshStatePreserve extends AbstractTestUI { - - private Log log = new Log(5); +public class RefreshStatePreserve extends AbstractTestUIWithLog { @Override protected void setup(VaadinRequest request) { // Internal parameter sent by vaadinBootstrap.js, addComponent(new Label("window.name: " + request.getParameter("v-wn"))); addComponent(new Label("UI id: " + getUIId())); - addComponent(log); - log.log("Initial fragment: " + getPage().getUriFragment()); + log("Initial fragment: " + getPage().getUriFragment()); getPage().addUriFragmentChangedListener( new UriFragmentChangedListener() { @Override public void uriFragmentChanged(UriFragmentChangedEvent event) { - log.log("Fragment changed to " + event.getUriFragment()); + log("Fragment changed to " + event.getUriFragment()); } }); } diff --git a/uitest/src/com/vaadin/tests/application/RefreshStatePreserveTest.java b/uitest/src/com/vaadin/tests/application/RefreshStatePreserveTest.java new file mode 100644 index 0000000000..a54d8b4ce9 --- /dev/null +++ b/uitest/src/com/vaadin/tests/application/RefreshStatePreserveTest.java @@ -0,0 +1,29 @@ +package com.vaadin.tests.application; + +import org.junit.Assert; +import org.junit.Test; + +import com.vaadin.testbench.By; +import com.vaadin.testbench.elements.LabelElement; +import com.vaadin.tests.tb3.MultiBrowserTest; + +public class RefreshStatePreserveTest extends MultiBrowserTest { + private static String UI_ID_TEXT = "UI id: 0"; + + @Test + public void testPreserveState() throws Exception { + openTestURL(); + assertCorrectState(); + // URL needs to be different or some browsers don't count it as history + openTestURL("debug"); + assertCorrectState(); + executeScript("history.back()"); + assertCorrectState(); + } + + private void assertCorrectState() { + waitForElementPresent(By.className("v-label")); + LabelElement uiIdLabel = $(LabelElement.class).get(7); + Assert.assertEquals("Incorrect UI id,", UI_ID_TEXT, uiIdLabel.getText()); + } +} diff --git a/uitest/src/com/vaadin/tests/application/RefreshStatePreserveTitle.java b/uitest/src/com/vaadin/tests/application/RefreshStatePreserveTitle.java index 524091aff6..ff9c84a20a 100644 --- a/uitest/src/com/vaadin/tests/application/RefreshStatePreserveTitle.java +++ b/uitest/src/com/vaadin/tests/application/RefreshStatePreserveTitle.java @@ -3,14 +3,11 @@ package com.vaadin.tests.application; import com.vaadin.annotations.PreserveOnRefresh; import com.vaadin.server.VaadinRequest; import com.vaadin.tests.components.AbstractTestUI; -import com.vaadin.tests.util.Log; import com.vaadin.ui.Label; @PreserveOnRefresh public class RefreshStatePreserveTitle extends AbstractTestUI { - private Log log = new Log(5); - @Override protected void setup(VaadinRequest request) { getPage().setTitle("TEST"); diff --git a/uitest/src/com/vaadin/tests/application/RefreshStatePreserveTitleTest.java b/uitest/src/com/vaadin/tests/application/RefreshStatePreserveTitleTest.java new file mode 100644 index 0000000000..e2740f9537 --- /dev/null +++ b/uitest/src/com/vaadin/tests/application/RefreshStatePreserveTitleTest.java @@ -0,0 +1,20 @@ +package com.vaadin.tests.application; + +import org.junit.Assert; +import org.junit.Test; + +import com.vaadin.tests.tb3.MultiBrowserTest; + +public class RefreshStatePreserveTitleTest extends MultiBrowserTest { + @Test + public void testReloadingPageDoesNotResetTitle() throws Exception { + openTestURL(); + assertTitleText(); + openTestURL(); + assertTitleText(); + } + + private void assertTitleText() { + Assert.assertEquals("Incorrect page title,", "TEST", driver.getTitle()); + } +} diff --git a/uitest/src/com/vaadin/tests/application/TerminalErrorNotificationTest.java b/uitest/src/com/vaadin/tests/application/TerminalErrorNotificationTest.java new file mode 100644 index 0000000000..ac7d55b396 --- /dev/null +++ b/uitest/src/com/vaadin/tests/application/TerminalErrorNotificationTest.java @@ -0,0 +1,20 @@ +package com.vaadin.tests.application; + +import org.junit.Assert; +import org.junit.Test; + +import com.vaadin.testbench.elements.ButtonElement; +import com.vaadin.testbench.elements.NotificationElement; +import com.vaadin.tests.tb3.MultiBrowserTest; +import com.vaadin.tests.tb3.newelements.FixedNotificationElement; + +public class TerminalErrorNotificationTest extends MultiBrowserTest { + @Test + public void tb2test() throws Exception { + openTestURL(); + $(ButtonElement.class).first().click(); + Assert.assertTrue(isElementPresent(NotificationElement.class)); + Assert.assertEquals("Got an exception: You asked for it", + $(FixedNotificationElement.class).first().getCaption()); + } +} diff --git a/uitest/src/com/vaadin/tests/application/ThreadLocalInstancesTest.java b/uitest/src/com/vaadin/tests/application/ThreadLocalInstancesTest.java new file mode 100644 index 0000000000..9498413f9b --- /dev/null +++ b/uitest/src/com/vaadin/tests/application/ThreadLocalInstancesTest.java @@ -0,0 +1,35 @@ +package com.vaadin.tests.application; + +import org.junit.Assert; +import org.junit.Test; + +import com.vaadin.testbench.elements.ButtonElement; +import com.vaadin.tests.tb3.MultiBrowserTest; + +public class ThreadLocalInstancesTest extends MultiBrowserTest { + @Test + public void tb2test() throws Exception { + openTestURL(); + $(ButtonElement.class).first().click(); + assertLogText("1. some app in class init", 15); + assertLogText("2. null root in class init", 14); + assertLogText("3. some app in app constructor", 13); + assertLogText("4. null root in app constructor", 12); + assertLogText("5. some app in app init", 11); + assertLogText("6. null root in app init", 10); + assertLogText("7. some app in root init", 9); + assertLogText("8. this root in root init", 8); + assertLogText("9. some app in root paint", 7); + assertLogText("10. this root in root paint", 6); + assertLogText("11. some app in background thread", 5); + assertLogText("12. this root in background thread", 4); + assertLogText("13. some app in resource handler", 3); + assertLogText("14. this root in resource handler", 2); + assertLogText("15. some app in button listener", 1); + assertLogText("16. this root in button listener", 0); + } + + private void assertLogText(String expected, int index) { + Assert.assertEquals("Incorrect log text,", expected, getLogRow(index)); + } +} diff --git a/uitest/src/com/vaadin/tests/application/WebBrowserSize.java b/uitest/src/com/vaadin/tests/application/WebBrowserSize.java new file mode 100644 index 0000000000..0ce8e95290 --- /dev/null +++ b/uitest/src/com/vaadin/tests/application/WebBrowserSize.java @@ -0,0 +1,47 @@ +package com.vaadin.tests.application; + +import com.vaadin.server.VaadinRequest; +import com.vaadin.tests.components.AbstractTestUI; +import com.vaadin.ui.Button; +import com.vaadin.ui.Button.ClickEvent; +import com.vaadin.ui.Label; + +public class WebBrowserSize extends AbstractTestUI { + + @Override + protected void setup(VaadinRequest request) { + + final Label screenSizeLabel = new Label("n/a"); + screenSizeLabel.setCaption("Screen size"); + + final Label browserSizeLabel = new Label("n/a"); + browserSizeLabel.setCaption("Client (browser window) size"); + + final Button update = new Button("Refresh", new Button.ClickListener() { + + @Override + public void buttonClick(ClickEvent event) { + screenSizeLabel.setValue(getBrowser().getScreenWidth() + " x " + + getBrowser().getScreenHeight()); + browserSizeLabel.setValue(getPage().getBrowserWindowWidth() + + " x " + getPage().getBrowserWindowHeight()); + } + }); + + addComponent(update); + addComponent(screenSizeLabel); + addComponent(browserSizeLabel); + + } + + @Override + protected String getTestDescription() { + return "Verifies that browser sizes are reported correctly. Note that client width differs depending on browser decorations."; + } + + @Override + protected Integer getTicketNumber() { + return 5655; + } + +} diff --git a/uitest/src/com/vaadin/tests/application/WebBrowserSizeTest.java b/uitest/src/com/vaadin/tests/application/WebBrowserSizeTest.java index 817acf20b5..b06d8e4388 100644 --- a/uitest/src/com/vaadin/tests/application/WebBrowserSizeTest.java +++ b/uitest/src/com/vaadin/tests/application/WebBrowserSizeTest.java @@ -1,48 +1,20 @@ package com.vaadin.tests.application; -import com.vaadin.tests.components.TestBase; -import com.vaadin.ui.Button; -import com.vaadin.ui.Button.ClickEvent; -import com.vaadin.ui.Label; - -public class WebBrowserSizeTest extends TestBase { - - @Override - protected void setup() { - - final Label screenSizeLabel = new Label("n/a"); - screenSizeLabel.setCaption("Screen size"); - - final Label browserSizeLabel = new Label("n/a"); - browserSizeLabel.setCaption("Client (browser window) size"); - - final Button update = new Button("Refresh", new Button.ClickListener() { - - @Override - public void buttonClick(ClickEvent event) { - screenSizeLabel.setValue(getBrowser().getScreenWidth() + " x " - + getBrowser().getScreenHeight()); - browserSizeLabel.setValue(getMainWindow() - .getBrowserWindowWidth() - + " x " - + getMainWindow().getBrowserWindowHeight()); - } - }); - - addComponent(update); - addComponent(screenSizeLabel); - addComponent(browserSizeLabel); - - } - - @Override - protected String getDescription() { - return "Verifies that browser sizes are reported correctly. Note that client width differs depending on browser decorations."; +import static org.junit.Assert.assertEquals; + +import org.junit.Test; + +import com.vaadin.testbench.elements.ButtonElement; +import com.vaadin.testbench.elements.LabelElement; +import com.vaadin.tests.tb3.MultiBrowserTest; + +public class WebBrowserSizeTest extends MultiBrowserTest { + @Test + public void testBrowserSize() { + openTestURL(); + $(ButtonElement.class).first().click(); + // Thanks to selenium the browser size should always be 1500 x 850 + assertEquals("Browser size is not correct.", "1500 x 850", + $(LabelElement.class).get(2).getText()); } - - @Override - protected Integer getTicketNumber() { - return 5655; - } - } diff --git a/uitest/src/com/vaadin/tests/application/WebBrowserTest.java b/uitest/src/com/vaadin/tests/application/WebBrowserTest.java deleted file mode 100644 index 004c8f1c91..0000000000 --- a/uitest/src/com/vaadin/tests/application/WebBrowserTest.java +++ /dev/null @@ -1,99 +0,0 @@ -package com.vaadin.tests.application; - -import java.util.Arrays; -import java.util.Date; -import java.util.TimeZone; - -import com.vaadin.tests.components.TestBase; -import com.vaadin.ui.Button; -import com.vaadin.ui.Button.ClickEvent; -import com.vaadin.ui.Label; - -public class WebBrowserTest extends TestBase { - - @Override - protected void setup() { - - final Label offsetLabel = new Label("n/a"); - offsetLabel.setCaption("Browser offset"); - - final Label rawOffsetLabel = new Label("n/a"); - rawOffsetLabel.setCaption("Browser raw offset"); - - final Label dstDiffLabel = new Label("n/a"); - dstDiffLabel.setCaption("Difference between raw offset and DST"); - - final Label dstInEffectLabel = new Label("n/a"); - dstInEffectLabel.setCaption("Is DST currently active?"); - - final Label curDateLabel = new Label("n/a"); - curDateLabel.setCaption("Current date in the browser"); - - final Label diffLabel = new Label("n/a"); - diffLabel.setCaption("Browser to Europe/Helsinki offset difference"); - - final Label containsLabel = new Label("n/a"); - containsLabel.setCaption("Browser could be in Helsinki"); - - final Button update = new Button("Get TimeZone from browser", - new Button.ClickListener() { - - @Override - public void buttonClick(ClickEvent event) { - TimeZone hkiTZ = TimeZone - .getTimeZone("Europe/Helsinki"); - int hkiOffset = hkiTZ.getOffset(new Date().getTime()); - - int browserOffset = getBrowser().getTimezoneOffset(); - int browserRawOffset = getBrowser() - .getRawTimezoneOffset(); - String[] tzs = TimeZone - .getAvailableIDs(browserRawOffset); - - boolean contains = Arrays.asList(tzs).contains( - hkiTZ.getID()); - - offsetLabel.setValue(String.valueOf(browserOffset)); - - rawOffsetLabel.setValue(String - .valueOf(browserRawOffset)); - - diffLabel.setValue(String.valueOf(browserOffset - - hkiOffset)); - - containsLabel.setValue(contains ? "Yes" : "No"); - - dstDiffLabel.setValue(String.valueOf(getBrowser() - .getDSTSavings())); - - dstInEffectLabel - .setValue(getBrowser().isDSTInEffect() ? "Yes" - : "No"); - - curDateLabel.setValue(getBrowser().getCurrentDate() - .toString()); - - } - }); - - addComponent(update); - addComponent(offsetLabel); - addComponent(rawOffsetLabel); - addComponent(dstDiffLabel); - addComponent(dstInEffectLabel); - addComponent(curDateLabel); - addComponent(diffLabel); - addComponent(containsLabel); - } - - @Override - protected String getDescription() { - return "Verifies that browser TimeZone offset works - should be same as server in our case (NOTE assumes server+browser in same TZ)"; - } - - @Override - protected Integer getTicketNumber() { - return 6691; - } - -} diff --git a/uitest/src/com/vaadin/tests/application/WebBrowserTimeZone.java b/uitest/src/com/vaadin/tests/application/WebBrowserTimeZone.java new file mode 100644 index 0000000000..5253b0b0e7 --- /dev/null +++ b/uitest/src/com/vaadin/tests/application/WebBrowserTimeZone.java @@ -0,0 +1,71 @@ +package com.vaadin.tests.application; + +import java.util.Arrays; +import java.util.Date; +import java.util.TimeZone; + +import com.vaadin.server.VaadinRequest; +import com.vaadin.testbench.annotations.RunLocally; +import com.vaadin.tests.components.AbstractTestUI; +import com.vaadin.ui.Button; +import com.vaadin.ui.Button.ClickEvent; +import com.vaadin.ui.Label; + +@RunLocally +public class WebBrowserTimeZone extends AbstractTestUI { + + @Override + protected void setup(VaadinRequest request) { + + final Label offsetLabel = addLabel("Browser offset"); + final Label rawOffsetLabel = addLabel("Browser raw offset"); + final Label dstDiffLabel = addLabel("Difference between raw offset and DST"); + final Label dstInEffectLabel = addLabel("Is DST currently active?"); + final Label curDateLabel = addLabel("Current date in the browser"); + final Label diffLabel = addLabel("Browser to Europe/Helsinki offset difference"); + final Label containsLabel = addLabel("Browser could be in Helsinki"); + + addButton("Get TimeZone from browser", new Button.ClickListener() { + + @Override + public void buttonClick(ClickEvent event) { + TimeZone hkiTZ = TimeZone.getTimeZone("Europe/Helsinki"); + int hkiOffset = hkiTZ.getOffset(new Date().getTime()); + + int browserOffset = getBrowser().getTimezoneOffset(); + int browserRawOffset = getBrowser().getRawTimezoneOffset(); + String[] tzs = TimeZone.getAvailableIDs(browserRawOffset); + + boolean contains = Arrays.asList(tzs).contains(hkiTZ.getID()); + + offsetLabel.setValue(String.valueOf(browserOffset)); + rawOffsetLabel.setValue(String.valueOf(browserRawOffset)); + diffLabel.setValue(String.valueOf(browserOffset - hkiOffset)); + containsLabel.setValue(contains ? "Yes" : "No"); + dstDiffLabel.setValue(String.valueOf(getBrowser() + .getDSTSavings())); + dstInEffectLabel.setValue(getBrowser().isDSTInEffect() ? "Yes" + : "No"); + curDateLabel.setValue(getBrowser().getCurrentDate().toString()); + } + }); + } + + private Label addLabel(String caption) { + final Label label = new Label("n/a"); + label.setCaption(caption); + addComponent(label); + return label; + } + + @Override + protected String getTestDescription() { + return "Verifies that browser TimeZone offset works - should be same as server in our case (NOTE assumes server+browser in same TZ)"; + } + + @Override + protected Integer getTicketNumber() { + return 6691; + } + +} diff --git a/uitest/src/com/vaadin/tests/application/WebBrowserTimeZoneTest.java b/uitest/src/com/vaadin/tests/application/WebBrowserTimeZoneTest.java new file mode 100644 index 0000000000..10b6dfb7a9 --- /dev/null +++ b/uitest/src/com/vaadin/tests/application/WebBrowserTimeZoneTest.java @@ -0,0 +1,27 @@ +package com.vaadin.tests.application; + +import org.junit.Assert; +import org.junit.Test; + +import com.vaadin.testbench.elements.ButtonElement; +import com.vaadin.testbench.elements.LabelElement; +import com.vaadin.tests.tb3.MultiBrowserTest; + +public class WebBrowserTimeZoneTest extends MultiBrowserTest { + @Test + public void testBrowserTimeZoneInfo() throws Exception { + openTestURL(); + $(ButtonElement.class).first().click(); + assertLabelText("Browser raw offset", "7200000"); + assertLabelText("Browser to Europe/Helsinki offset difference", "0"); + assertLabelText("Browser could be in Helsinki", "Yes"); + } + + private void assertLabelText(String caption, String expected) { + String actual = $(LabelElement.class).caption(caption).first() + .getText(); + Assert.assertEquals( + String.format("Unexpected text in label '%s',", caption), + expected, actual); + } +} diff --git a/uitest/tb2/com/vaadin/tests/application/RefreshFragmentChange.html b/uitest/tb2/com/vaadin/tests/application/RefreshFragmentChange.html deleted file mode 100644 index 147e67f19d..0000000000 --- a/uitest/tb2/com/vaadin/tests/application/RefreshFragmentChange.html +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - -New Test - - - - - - - - - - - - - - - - - - - - - - - - - - - -
New Test
open/run/com.vaadin.tests.application.RefreshStatePreserve?restartApplication
assertTextvaadin=runcomvaadintestsapplicationRefreshStatePreserve::PID_SLog_row_01. Initial fragment: null
open/run/com.vaadin.tests.application.RefreshStatePreserve#asdf
assertTextvaadin=runcomvaadintestsapplicationRefreshStatePreserve::PID_SLog_row_02. Fragment changed to asdf
- - diff --git a/uitest/tb2/com/vaadin/tests/application/RefreshStatePreserve.html b/uitest/tb2/com/vaadin/tests/application/RefreshStatePreserve.html deleted file mode 100644 index ea8c0c93b6..0000000000 --- a/uitest/tb2/com/vaadin/tests/application/RefreshStatePreserve.html +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - -New Test - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
New Test
open/run/com.vaadin.tests.application.RefreshStatePreserve?restartApplication
assertTextvaadin=runcomvaadintestsapplicationRefreshStatePreserve::/VVerticalLayout[0]/VVerticalLayout[0]/VLabel[1]UI id: 0
open/run/com.vaadin.tests.application.RefreshStatePreserve
assertTextvaadin=runcomvaadintestsapplicationRefreshStatePreserve::/VVerticalLayout[0]/VVerticalLayout[0]/VLabel[1]UI id: 0
runScripthistory.back()
pause1000
assertTextvaadin=runcomvaadintestsapplicationRefreshStatePreserve::/VVerticalLayout[0]/VVerticalLayout[0]/VLabel[1]UI id: 0
- - diff --git a/uitest/tb2/com/vaadin/tests/application/RefreshStatePreserveTitle.html b/uitest/tb2/com/vaadin/tests/application/RefreshStatePreserveTitle.html deleted file mode 100644 index f366054f45..0000000000 --- a/uitest/tb2/com/vaadin/tests/application/RefreshStatePreserveTitle.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - -New Test - - - - - - - - - - - - - - - - - - - - - - - - - - -
New Test
open/run/com.vaadin.tests.application.RefreshStatePreserveTitle?restartApplication
assertTitleTEST
open/run/com.vaadin.tests.application.RefreshStatePreserveTitle
assertTitleTEST
- - diff --git a/uitest/tb2/com/vaadin/tests/application/TerminalErrorNotification.html b/uitest/tb2/com/vaadin/tests/application/TerminalErrorNotification.html deleted file mode 100644 index e7d437eeca..0000000000 --- a/uitest/tb2/com/vaadin/tests/application/TerminalErrorNotification.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - -TabSheetWithDisappearingContent - - - - - - - - - - - - - - - - - - - - - - - - - - -
TabSheetWithDisappearingContent
open/run/com.vaadin.tests.application.TerminalErrorNotification?restartApplication&debug
clickvaadin=runcomvaadintestsapplicationTerminalErrorNotification::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[0]/VButton[0]/domChild[0]/domChild[0]
assertElementPresentvaadin=runcomvaadintestsapplicationTerminalErrorNotification::Root/VNotification[0]
assertTextvaadin=runcomvaadintestsapplicationTerminalErrorNotification::Root/VNotification[0]/HTML[0]/domChild[1]Got an exception: You asked for it
- - diff --git a/uitest/tb2/com/vaadin/tests/application/ThreadLocalInstances.html b/uitest/tb2/com/vaadin/tests/application/ThreadLocalInstances.html deleted file mode 100644 index 0d3a746152..0000000000 --- a/uitest/tb2/com/vaadin/tests/application/ThreadLocalInstances.html +++ /dev/null @@ -1,111 +0,0 @@ - - - - - - -New Test - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
New Test
open/run/com.vaadin.tests.application.ThreadLocalInstances?restartApplication
waitForElementHeightvaadin=runcomvaadintestsapplicationThreadLocalInstances::/VVerticalLayout[0]/ChildComponentContainer[1]/VEmbedded[0]/domChild[0]11
clickvaadin=runcomvaadintestsapplicationThreadLocalInstances::/VVerticalLayout[0]/ChildComponentContainer[2]/VButton[0]/domChild[0]/domChild[0]
assertTextvaadin=runcomvaadintestsapplicationThreadLocalInstances::PID_SLog_row_151. some app in class init
assertTextvaadin=runcomvaadintestsapplicationThreadLocalInstances::PID_SLog_row_142. null root in class init
assertTextvaadin=runcomvaadintestsapplicationThreadLocalInstances::PID_SLog_row_133. some app in app constructor
assertTextvaadin=runcomvaadintestsapplicationThreadLocalInstances::PID_SLog_row_124. null root in app constructor
assertTextvaadin=runcomvaadintestsapplicationThreadLocalInstances::PID_SLog_row_115. some app in app init
assertTextvaadin=runcomvaadintestsapplicationThreadLocalInstances::PID_SLog_row_106. null root in app init
assertTextvaadin=runcomvaadintestsapplicationThreadLocalInstances::PID_SLog_row_97. some app in root init
assertTextvaadin=runcomvaadintestsapplicationThreadLocalInstances::PID_SLog_row_88. this root in root init
assertTextvaadin=runcomvaadintestsapplicationThreadLocalInstances::PID_SLog_row_79. some app in root paint
assertTextvaadin=runcomvaadintestsapplicationThreadLocalInstances::PID_SLog_row_610. this root in root paint
assertTextvaadin=runcomvaadintestsapplicationThreadLocalInstances::PID_SLog_row_511. some app in background thread
assertTextvaadin=runcomvaadintestsapplicationThreadLocalInstances::PID_SLog_row_412. this root in background thread
assertTextvaadin=runcomvaadintestsapplicationThreadLocalInstances::PID_SLog_row_313. some app in resource handler
assertTextvaadin=runcomvaadintestsapplicationThreadLocalInstances::PID_SLog_row_214. this root in resource handler
assertTextvaadin=runcomvaadintestsapplicationThreadLocalInstances::PID_SLog_row_115. some app in button listener
assertTextvaadin=runcomvaadintestsapplicationThreadLocalInstances::PID_SLog_row_016. this root in button listener
- - diff --git a/uitest/tb2/com/vaadin/tests/application/WebBrowserSizeTest.html b/uitest/tb2/com/vaadin/tests/application/WebBrowserSizeTest.html deleted file mode 100644 index 3c59c7a953..0000000000 --- a/uitest/tb2/com/vaadin/tests/application/WebBrowserSizeTest.html +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - -New Test - - - - - - - - - - - - - - - - - - - - - -
New Test
open/run/com.vaadin.tests.application.WebBrowserSizeTest?restartApplication
clickvaadin=runcomvaadintestsapplicationWebBrowserSizeTest::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[0]/VButton[0]/domChild[0]
screenCapturesize
- - \ No newline at end of file diff --git a/uitest/tb2/com/vaadin/tests/application/WebBrowserTest.html b/uitest/tb2/com/vaadin/tests/application/WebBrowserTest.html deleted file mode 100644 index f04dd564bf..0000000000 --- a/uitest/tb2/com/vaadin/tests/application/WebBrowserTest.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - -New Test - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
New Test
open/run/com.vaadin.tests.application.WebBrowserTest?restartApplication
clickvaadin=runcomvaadintestsapplicationWebBrowserTest::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[0]/VButton[0]/domChild[0]/domChild[0]
assertTextvaadin=runcomvaadintestsapplicationWebBrowserTest::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[2]/VLabel[0]7200000
assertTextvaadin=runcomvaadintestsapplicationWebBrowserTest::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[6]/VLabel[0]0
assertTextvaadin=runcomvaadintestsapplicationWebBrowserTest::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[7]/VLabel[0]Yes
- - -- 2.39.5