[kune-commits] r1845 - in trunk/src/test/java/cc/kune/selenium: . login spaces

Vicente J. Ruiz Jurado vjrj_ at ourproject.org
Fri Apr 13 15:37:27 CEST 2012


Author: vjrj_
Date: 2012-04-13 15:37:27 +0200 (Fri, 13 Apr 2012)
New Revision: 1845

Modified:
   trunk/src/test/java/cc/kune/selenium/KuneSeleniumTest.java
   trunk/src/test/java/cc/kune/selenium/SeleniumUtils.java
   trunk/src/test/java/cc/kune/selenium/login/ScreenCastsViaSeleniumTests.java
   trunk/src/test/java/cc/kune/selenium/spaces/GroupSpacePageObject.java
Log:
minor changes in tests

Modified: trunk/src/test/java/cc/kune/selenium/KuneSeleniumTest.java
===================================================================
--- trunk/src/test/java/cc/kune/selenium/KuneSeleniumTest.java	2012-04-13 13:02:37 UTC (rev 1844)
+++ trunk/src/test/java/cc/kune/selenium/KuneSeleniumTest.java	2012-04-13 13:37:27 UTC (rev 1845)
@@ -92,7 +92,7 @@
     groupSpace.newMenuBtn.click();
     sleep(2000);
     // FIXME move content?
-    groupSpace.showTutorial(3, 4, -5, 4, 4, 2, 5, 3, 6, 7, 6, 4, 4, 5, 5, 3, 3, 4, 6, 4, 3);
+    groupSpace.showTutorial(3, 4, 5, 4, 4, 2, -5, 3, 6, 7, 6, 4, 4, 5, 5, 3, 3, 4, 6, 4, 3);
 
     // blogs
     groupSpace.blogTool.click();

Modified: trunk/src/test/java/cc/kune/selenium/SeleniumUtils.java
===================================================================
--- trunk/src/test/java/cc/kune/selenium/SeleniumUtils.java	2012-04-13 13:02:37 UTC (rev 1844)
+++ trunk/src/test/java/cc/kune/selenium/SeleniumUtils.java	2012-04-13 13:37:27 UTC (rev 1845)
@@ -46,7 +46,7 @@
     final File scrFile = ((TakesScreenshot) webdriver).getScreenshotAs(OutputType.FILE);
     try {
       FileUtils.copyFile(scrFile, new File(SeleniumConstants.SCREENSHOTS_DIR + "kune-" + filename
-          + ".png"));
+          + "-sele.png"));
     } catch (final IOException e) {
       LOG.info("Cannot take the screen shot", e);
     }

Modified: trunk/src/test/java/cc/kune/selenium/login/ScreenCastsViaSeleniumTests.java
===================================================================
--- trunk/src/test/java/cc/kune/selenium/login/ScreenCastsViaSeleniumTests.java	2012-04-13 13:02:37 UTC (rev 1844)
+++ trunk/src/test/java/cc/kune/selenium/login/ScreenCastsViaSeleniumTests.java	2012-04-13 13:37:27 UTC (rev 1845)
@@ -106,9 +106,9 @@
     groupSpace.addNewBuddieTextBox.click();
     groupSpace.addNewBuddieTextBox.sendKeys(buddy);
     groupSpace.addNewBuddieTextBox.sendKeys(Keys.ARROW_DOWN);
+    doScreenshot("social-net");
     sleep(500);
     groupSpace.firstFromSuggestionBox.click();
-    doScreenshot("social-net");
     site.confirmationOk.click();
     sleep(500);
     groupSpace.searchEntitiesOk.click();

Modified: trunk/src/test/java/cc/kune/selenium/spaces/GroupSpacePageObject.java
===================================================================
--- trunk/src/test/java/cc/kune/selenium/spaces/GroupSpacePageObject.java	2012-04-13 13:02:37 UTC (rev 1844)
+++ trunk/src/test/java/cc/kune/selenium/spaces/GroupSpacePageObject.java	2012-04-13 13:37:27 UTC (rev 1845)
@@ -133,7 +133,7 @@
   @FindBy(id = SeleniumConstants.GWTDEV + ToolSelectorItemPanel.TOOL_ID_PREFIX
       + TasksToolConstants.TOOL_NAME)
   public WebElement taskTool;
-  @FindBy(xpath = "//div[5]/div/div/div/div[2]/div/div")
+  @FindBy(id = SeleniumConstants.GWTDEV + TutorialViewer.CLOSE_BTN_ID)
   public WebElement tutorialCloseBtn;
   @FindBy(id = SeleniumConstants.GWTDEV + TutorialViewer.IFRAME_ID)
   public WebElement tutorialFrame;
@@ -160,6 +160,7 @@
               + "').contentWindow.sozi.player.moveToNext();");
     }
     getWebDriver().switchTo().defaultContent();
+    sleep(500);
     tutorialCloseBtn.click();
   }
 




More information about the kune-commits mailing list