diff options
author | Artur Signell <artur@vaadin.com> | 2013-03-18 13:56:56 +0200 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2013-03-21 07:22:18 +0000 |
commit | 5d8b1862b63d32070b4084d7e49cae1f4bc66953 (patch) | |
tree | 371dfef129c53d6fc63d01a7c6d58469a2bfbe09 /uitest/integration-testscripts/GateIn-3/integration-test-GateIn-3.1.0-portlet2.html | |
parent | e4c9eda51082a443822b66864df2fe14be7dc6d7 (diff) | |
download | vaadin-framework-5d8b1862b63d32070b4084d7e49cae1f4bc66953.tar.gz vaadin-framework-5d8b1862b63d32070b4084d7e49cae1f4bc66953.zip |
Unified all portal integration tests to be based on JSR286Portlet (#8013, #9566, #11314)
All portal tests are now based on the same test script. Portal tests avoid Vaadin locators to avoid random problems with the portlet id changing between test runs.
* eXo 3 test must be run on Firefox, does not work in Chrome
* Liferay theme test is now a separate test which does not depend on the Liferay integration test
* Changing to maximized state using an action URL does not work with GateIn or eXo
* The edit mode link does not work in WebLogic Portal as WebLogic feels it is not an allowed mode for the portlet
Change-Id: I7a683688d8ffc611e211f8a60889a34b233b81c9
Diffstat (limited to 'uitest/integration-testscripts/GateIn-3/integration-test-GateIn-3.1.0-portlet2.html')
-rw-r--r-- | uitest/integration-testscripts/GateIn-3/integration-test-GateIn-3.1.0-portlet2.html | 131 |
1 files changed, 128 insertions, 3 deletions
diff --git a/uitest/integration-testscripts/GateIn-3/integration-test-GateIn-3.1.0-portlet2.html b/uitest/integration-testscripts/GateIn-3/integration-test-GateIn-3.1.0-portlet2.html index 5d2d4c3445..7df5894f15 100644 --- a/uitest/integration-testscripts/GateIn-3/integration-test-GateIn-3.1.0-portlet2.html +++ b/uitest/integration-testscripts/GateIn-3/integration-test-GateIn-3.1.0-portlet2.html @@ -172,21 +172,146 @@ <td>Vaadin Portlet 2.0 Test</td> <td></td> </tr> -<!--Switch to view mode--> +<!--Switch to portlet user mode--> <tr> <td>mouseClickAndWait</td> <td>//a[@onclick='eXo.core.DOMUtil.disableOnClick(this);']</td> <td>13,5</td> </tr> +<!--Start of actual portlet test--> <tr> <td>waitForElementPresent</td> - <td>//div[2]/div/div[2]/img</td> + <td>//div[2]/div/div/div/span</td> <td></td> </tr> <tr> + <td>assertText</td> + <td>//div[2]/div/div/div/span</td> + <td>Test of ApplicationResources with full path</td> +</tr> +<tr> + <td>assertText</td> + <td>//body/div[2]/div//p</td> + <td>exact:Mode: view State: normal</td> +</tr> +<tr> + <td>screenCapture</td> + <td></td> + <td>initial</td> +</tr> +<tr> + <td>closeNotification</td> + <td>//body/div[2]/div</td> + <td>0,0</td> +</tr> +<tr> + <td>assertTextNotPresent</td> + <td>Action * received</td> + <td></td> +</tr> +<tr> + <td>assertText</td> + <td>//div[@class="v-link v-widget"]/a/span</td> + <td>Edit</td> +</tr> +<!--Send an action--> +<tr> + <td>mouseClickAndWait</td> + <td>//div[8]/div/a/span</td> + <td>32,9</td> +</tr> +<tr> + <td>assertTextPresent</td> + <td>Action 'someAction' received</td> + <td></td> +</tr> +<tr> + <td>assertText</td> + <td>//body/div[2]/div//p</td> + <td>exact:Mode: view State: normal</td> +</tr> +<tr> + <td>assertText</td> + <td>//div[@class="v-link v-widget"]/a/span</td> + <td>Edit</td> +</tr> +<tr> + <td>closeNotification</td> + <td>//body/div[2]/div</td> + <td>0,0</td> +</tr> +<!--Switch to edit mode--> +<tr> + <td>mouseClickAndWait</td> + <td>//div[5]/div/a/span</td> + <td>12,3</td> +</tr> +<tr> + <td>assertText</td> + <td>//body/div[2]/div//p</td> + <td>exact:Mode: edit State: normal</td> +</tr> +<tr> + <td>closeNotification</td> + <td>//body/div[2]/div</td> + <td>0,0</td> +</tr> +<tr> + <td>assertText</td> + <td>//div[@class="v-link v-widget"]/a/span</td> + <td>Done</td> +</tr> +<!--Maximize--> +<tr> + <td>mouseClickAndWait</td> + <td>//div[6]/div/a/span</td> + <td>16,7</td> +</tr> +<tr> + <td>assertText</td> + <td>//body/div[2]/div//p</td> + <td>exact:Mode: edit State: normal</td> +</tr> +<tr> + <td>closeNotification</td> + <td>//body/div[2]/div</td> + <td>0,0</td> +</tr> +<tr> + <td>assertText</td> + <td>//div[6]/div/a/span</td> + <td>Maximize</td> +</tr> +<!--Restore back to normal--> +<tr> + <td>mouseClickAndWait</td> + <td>//div[6]/div/a/span</td> + <td>71,8</td> +</tr> +<tr> + <td>assertText</td> + <td>//body/div[2]/div//p</td> + <td>exact:Mode: edit State: normal</td> +</tr> +<tr> + <td>closeNotification</td> + <td>//body/div[2]/div</td> + <td>0,0</td> +</tr> +<tr> + <td>assertText</td> + <td>//div[@class="v-link v-widget"]/a/span</td> + <td>Done</td> +</tr> +<tr> + <td>assertText</td> + <td>//div[6]/div/a/span</td> + <td>Maximize</td> +</tr> +<tr> <td>screenCapture</td> <td></td> - <td>view</td> + <td>final</td> </tr> </tbody></table> </body> |