You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltaspike.apache.org by st...@apache.org on 2013/05/06 08:31:41 UTC
git commit: DELTASPIKE-289 fix WindowScoped context test on jbossas
Updated Branches:
refs/heads/master 97268eb77 -> bb85cacf9
DELTASPIKE-289 fix WindowScoped context test on jbossas
I recently removed the <h:form> which did lead to a different
component Id for the outputValue. fixed now.
Project: http://git-wip-us.apache.org/repos/asf/incubator-deltaspike/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-deltaspike/commit/bb85cacf
Tree: http://git-wip-us.apache.org/repos/asf/incubator-deltaspike/tree/bb85cacf
Diff: http://git-wip-us.apache.org/repos/asf/incubator-deltaspike/diff/bb85cacf
Branch: refs/heads/master
Commit: bb85cacf9358f9ed289e72a416e78625fcab18a4
Parents: 97268eb
Author: Mark Struberg <st...@apache.org>
Authored: Mon May 6 08:15:19 2013 +0200
Committer: Mark Struberg <st...@apache.org>
Committed: Mon May 6 08:15:19 2013 +0200
----------------------------------------------------------------------
.../impl/scope/window/WindowScopedContextTest.java | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-deltaspike/blob/bb85cacf/deltaspike/modules/jsf/impl/src/test/java/org/apache/deltaspike/test/jsf/impl/scope/window/WindowScopedContextTest.java
----------------------------------------------------------------------
diff --git a/deltaspike/modules/jsf/impl/src/test/java/org/apache/deltaspike/test/jsf/impl/scope/window/WindowScopedContextTest.java b/deltaspike/modules/jsf/impl/src/test/java/org/apache/deltaspike/test/jsf/impl/scope/window/WindowScopedContextTest.java
index c57b16c..a6e97cb 100644
--- a/deltaspike/modules/jsf/impl/src/test/java/org/apache/deltaspike/test/jsf/impl/scope/window/WindowScopedContextTest.java
+++ b/deltaspike/modules/jsf/impl/src/test/java/org/apache/deltaspike/test/jsf/impl/scope/window/WindowScopedContextTest.java
@@ -20,6 +20,7 @@ package org.apache.deltaspike.test.jsf.impl.scope.window;
import java.net.URL;
+import java.util.logging.Logger;
import org.apache.deltaspike.test.category.WebProfileCategory;
import org.apache.deltaspike.test.jsf.impl.scope.window.beans.WindowScopedBackingBean;
@@ -51,6 +52,8 @@ import org.openqa.selenium.support.ui.ExpectedConditions;
@Category(WebProfileCategory.class)
public class WindowScopedContextTest
{
+ private static final Logger log = Logger.getLogger(WindowScopedContextTest.class.getName());
+
@Drone
private WebDriver driver;
@@ -79,14 +82,12 @@ public class WindowScopedContextTest
public void testWindowId() throws Exception
{
System.out.println("contextpath= " + contextPath);
- //X
- Thread.sleep(600000L);
-
- driver.get(new URL(contextPath, "page.xhtml").toString());
//X comment this in if you like to debug the server
//X I've already reported ARQGRA-213 for it
- //X
+ //X Thread.sleep(600000L);
+
+ driver.get(new URL(contextPath, "page.xhtml").toString());
WebElement inputField = driver.findElement(By.id("test:valueInput"));
inputField.sendKeys("23");
@@ -94,7 +95,7 @@ public class WindowScopedContextTest
WebElement button = driver.findElement(By.id("test:saveButton"));
button.click();
- Assert.assertTrue(ExpectedConditions.textToBePresentInElement(By.id("test:valueOutput"), "23").apply(driver));
+ Assert.assertTrue(ExpectedConditions.textToBePresentInElement(By.id("valueOutput"), "23").apply(driver));
}