From 5d8b1862b63d32070b4084d7e49cae1f4bc66953 Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Mon, 18 Mar 2013 13:56:56 +0200 Subject: 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 --- .../common/portlet_test.tpl | 134 +++++++++++++++++++++ 1 file changed, 134 insertions(+) create mode 100644 uitest/integration-testscripts/common/portlet_test.tpl (limited to 'uitest/integration-testscripts/common') diff --git a/uitest/integration-testscripts/common/portlet_test.tpl b/uitest/integration-testscripts/common/portlet_test.tpl new file mode 100644 index 0000000000..e4b83ef805 --- /dev/null +++ b/uitest/integration-testscripts/common/portlet_test.tpl @@ -0,0 +1,134 @@ + + waitForElementPresent + //div[2]/div/div/div/span + + + + assertText + //div[2]/div/div/div/span + Test of ApplicationResources with full path + + + assertText + //body/div[2]/div//p + exact:Mode: view State: normal + + + screenCapture + + initial + + + closeNotification + //body/div[2]/div + 0,0 + + + assertTextNotPresent + Action * received + + + + assertText + //div[@class="v-link v-widget"]/a/span + Edit + + + + mouseClickAndWait + //div[8]/div/a/span + 32,9 + + + assertTextPresent + Action 'someAction' received + + + + assertText + //body/div[2]/div//p + exact:Mode: view State: normal + + + assertText + //div[@class="v-link v-widget"]/a/span + Edit + + + closeNotification + //body/div[2]/div + 0,0 + + + + mouseClickAndWait + //div[5]/div/a/span + 12,3 + + + assertText + //body/div[2]/div//p + exact:Mode: edit State: normal + + + closeNotification + //body/div[2]/div + 0,0 + + + assertText + //div[@class="v-link v-widget"]/a/span + Done + + + + mouseClickAndWait + //div[6]/div/a/span + 16,7 + + + assertText + //body/div[2]/div//p + exact:Mode: edit State: maximized + + + closeNotification + //body/div[2]/div + 0,0 + + + assertText + //div[6]/div/a/span + Back to normal + + + + mouseClickAndWait + //div[6]/div/a/span + 71,8 + + + assertText + //body/div[2]/div//p + exact:Mode: edit State: normal + + + closeNotification + //body/div[2]/div + 0,0 + + + assertText + //div[@class="v-link v-widget"]/a/span + Done + + + assertText + //div[6]/div/a/span + Maximize + + + screenCapture + + final + \ No newline at end of file -- cgit v1.2.3