diff options
author | Sergey Budkin <sergey@vaadin.com> | 2014-11-13 16:47:15 +0200 |
---|---|---|
committer | Sauli Tähkäpää <sauli@vaadin.com> | 2014-12-16 22:44:37 +0200 |
commit | a8a480cc92efb15c83833b4a87a0475b6802e57c (patch) | |
tree | f3795c80002a85164db45d55807300a5464997a4 /uitest | |
parent | 854644a8ccfb004e5ec5891def64628bc7a2e50e (diff) | |
download | vaadin-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.java | 13 |
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")); |