[portal-commits] JBoss Portal SVN: r12230 - branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium.
portal-commits at lists.jboss.org
portal-commits at lists.jboss.org
Mon Nov 3 09:02:59 EST 2008
Author: vrockai
Date: 2008-11-03 09:02:58 -0500 (Mon, 03 Nov 2008)
New Revision: 12230
Modified:
branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/DashboardTestCase.java
Log:
max window
Modified: branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/DashboardTestCase.java
===================================================================
--- branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/DashboardTestCase.java 2008-11-03 13:56:13 UTC (rev 12229)
+++ branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/DashboardTestCase.java 2008-11-03 14:02:58 UTC (rev 12230)
@@ -76,6 +76,7 @@
selenium.waitForPageToLoad(PAGE_LOAD);
}
+ selenium.windowMaximize();
selenium.captureScreenshot("2.jpg");
Assert.assertEquals(selenium.getSelectedLabel(SEL_THEME), "renaissance", "Previously selected theme other then expected.");
}
@@ -101,7 +102,10 @@
selenium.select(SEL_PAGE, "label=DashTestPage");
selenium.waitForPageToLoad(PAGE_LOAD);
}
+
+ selenium.windowMaximize();
selenium.captureScreenshot("3.jpg");
+
Assert.assertEquals(selenium.getSelectedLabel(SEL_LAYOUT), "generic", "Previously selected layout other then expected.");
}
@@ -122,6 +126,7 @@
selenium.click("link=DashTestPage");
selenium.waitForPageToLoad(PAGE_LOAD);
+ selenium.windowMaximize();
selenium.captureScreenshot("1.jpg");
Assert.assertTrue(selenium.isTextPresent("Current users"));
More information about the portal-commits
mailing list