summaryrefslogtreecommitdiffstats
path: root/uitest
diff options
context:
space:
mode:
authorSergey Budkin <sergey@vaadin.com>2014-11-13 16:47:15 +0200
committerVaadin Code Review <review@vaadin.com>2014-12-10 09:52:43 +0000
commitdb14140a6acf6db78ca86d77d8bcbf1db0d36600 (patch)
tree74f60b1459cd3661856cff5c4b5360df98c82952 /uitest
parentf0d0b207114bc373f643c961546cfe543626057b (diff)
downloadvaadin-framework-db14140a6acf6db78ca86d77d8bcbf1db0d36600.tar.gz
vaadin-framework-db14140a6acf6db78ca86d77d8bcbf1db0d36600.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"));