]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fixed failing TabKeyboardNavigation test #12433
authorJohn Ahlroos <john@vaadin.com>
Thu, 22 Aug 2013 08:10:18 +0000 (11:10 +0300)
committerJohn Ahlroos <john@vaadin.com>
Thu, 22 Aug 2013 08:22:39 +0000 (11:22 +0300)
The test fails on Opera 12 since the assertText is done before the
tabsheet has had time to change the tab content. Added a small waiting
period after the tab is changed before the assert is made to fix the
issue.

Change-Id: I89dfe040b577106f9f843c8b4013d20be1e02166

uitest/src/com/vaadin/tests/components/tabsheet/TabKeyboardNavigation.html

index 129061e69c8dd8654be90fe495160689b76a4d96..4b2ad890c31b0f4837c7e04c7e7da2260a21c5d1 100644 (file)
@@ -3,7 +3,6 @@
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 <head profile="http://selenium-ide.openqa.org/profiles/test-case">
 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
-<link rel="selenium.base" href="http://localhost:8068/" />
 <title>TabKeyboardNavigation</title>
 </head>
 <body>
        <td>vaadin=runTabKeyboardNavigation::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[4]/VTabsheet[0]/domChild[0]/domChild[0]/domChild[0]/domChild[0]/domChild[0]</td>
        <td>right</td>
 </tr>
+<tr>
+       <td>pause</td>
+       <td>1000</td>
+       <td>1000</td>
+</tr>
 <tr>
        <td>assertText</td>
        <td>vaadin=runTabKeyboardNavigation::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[4]/VTabsheet[0]/VTabsheetPanel[0]/VVerticalLayout[1]/ChildComponentContainer[0]/VLabel[0]</td>
        <td>vaadin=runTabKeyboardNavigation::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[4]/VTabsheet[0]/domChild[0]/domChild[0]/domChild[0]/domChild[0]/domChild[2]</td>
        <td>right</td>
 </tr>
+<tr>
+       <td>pause</td>
+       <td>1000</td>
+       <td>1000</td>
+</tr>
 <tr>
        <td>assertText</td>
        <td>vaadin=runTabKeyboardNavigation::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[4]/VTabsheet[0]/VTabsheetPanel[0]/VVerticalLayout[3]/ChildComponentContainer[0]/VLabel[0]</td>
        <td>vaadin=runTabKeyboardNavigation::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[4]/VTabsheet[0]/domChild[0]/domChild[0]/domChild[0]/domChild[0]/domChild[0]</td>
        <td>right</td>
 </tr>
+<tr>
+       <td>pause</td>
+       <td>1000</td>
+       <td>1000</td>
+</tr>
 <tr>
        <td>assertText</td>
        <td>vaadin=runTabKeyboardNavigation::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[4]/VTabsheet[0]/VTabsheetPanel[0]/VVerticalLayout[4]/ChildComponentContainer[0]/VLabel[0]</td>
        <td>vaadin=runTabKeyboardNavigation::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[4]/VTabsheet[0]/domChild[0]/domChild[0]/domChild[0]/domChild[0]/domChild[10]</td>
        <td>right</td>
 </tr>
+<tr>
+       <td>pause</td>
+       <td>1000</td>
+       <td>1000</td>
+</tr>
 <tr>
        <td>assertText</td>
        <td>vaadin=runTabKeyboardNavigation::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[4]/VTabsheet[0]/VTabsheetPanel[0]/VVerticalLayout[8]/ChildComponentContainer[0]/VLabel[0]</td>
        <td>vaadin=runTabKeyboardNavigation::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[4]/VTabsheet[0]/domChild[0]/domChild[0]/domChild[0]/domChild[0]/domChild[1]</td>
        <td>left</td>
 </tr>
+<tr>
+       <td>pause</td>
+       <td>1000</td>
+       <td>1000</td>
+</tr>
 <tr>
        <td>assertText</td>
        <td>vaadin=runTabKeyboardNavigation::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[4]/VTabsheet[0]/VTabsheetPanel[0]/VVerticalLayout[0]/ChildComponentContainer[0]/VLabel[0]</td>