summaryrefslogtreecommitdiffstats
path: root/uitest
diff options
context:
space:
mode:
authorSergey Budkin <sergey@vaadin.com>2014-11-13 16:47:15 +0200
committerSauli Tähkäpää <sauli@vaadin.com>2014-12-16 22:44:37 +0200
commita8a480cc92efb15c83833b4a87a0475b6802e57c (patch)
treef3795c80002a85164db45d55807300a5464997a4 /uitest
parent854644a8ccfb004e5ec5891def64628bc7a2e50e (diff)
downloadvaadin-framework-a8a480cc92efb15c83833b4a87a0475b6802e57c.tar.gz
vaadin-framework-a8a480cc92efb15c83833b4a87a0475b6802e57c.zip
Accordion causes SEVERE error in browser console (#15182)
Refactored to remove invisible widgets from DOM. Change-Id: I94d0ba37f4a75d71df88fbb0b1767ae60f39432d
Diffstat (limited to 'uitest')
-rw-r--r--uitest/src/com/vaadin/tests/components/accordion/AccordionRemoveTabTest.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/components/accordion/AccordionRemoveTabTest.java b/uitest/src/com/vaadin/tests/components/accordion/AccordionRemoveTabTest.java
index f5651e0ada..1047c070c8 100644
--- a/uitest/src/com/vaadin/tests/components/accordion/AccordionRemoveTabTest.java
+++ b/uitest/src/com/vaadin/tests/components/accordion/AccordionRemoveTabTest.java
@@ -44,6 +44,19 @@ public class AccordionRemoveTabTest extends MultiBrowserTest {
checkFirstItemHeight("On third tab");
}
+ @Test
+ public void testConsoleErrorOnSwitch() {
+ setDebug(true);
+ openTestURL();
+ WebElement firstItem = driver.findElement(By
+ .className("v-accordion-item-first"));
+ WebElement caption = firstItem.findElement(By
+ .className("v-accordion-item-caption"));
+ caption.click();
+ Assert.assertEquals("Errors present in console", 0,
+ findElements(By.className("SEVERE")).size());
+ }
+
private void checkFirstItemHeight(String text) {
WebElement firstItem = driver.findElement(By
.className("v-accordion-item-first"));