You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by hl...@apache.org on 2012/11/26 19:58:43 UTC
[7/9] git commit: Fix broken BeanEditor tests
Fix broken BeanEditor tests
Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo
Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/59c5d3d3
Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/59c5d3d3
Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/59c5d3d3
Branch: refs/heads/5.4-js-rewrite
Commit: 59c5d3d3cda90384be00025c96ab72a25e62f43b
Parents: e59b5e4
Author: Howard M. Lewis Ship <hl...@apache.org>
Authored: Mon Nov 26 09:27:51 2012 -0800
Committer: Howard M. Lewis Ship <hl...@apache.org>
Committed: Mon Nov 26 09:27:51 2012 -0800
----------------------------------------------------------------------
.../integration/app1/BeanEditorTests.java | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/59c5d3d3/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/BeanEditorTests.java
----------------------------------------------------------------------
diff --git a/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/BeanEditorTests.java b/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/BeanEditorTests.java
index 46d5c13..12749e6 100644
--- a/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/BeanEditorTests.java
+++ b/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/BeanEditorTests.java
@@ -1,4 +1,4 @@
-// Copyright 2009, 2011 The Apache Software Foundation
+// Copyright 2009, 2011, 2012 The Apache Software Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -109,7 +109,7 @@ public class BeanEditorTests extends TapestryCoreTestCase
type("path", "/var/www");
clickAndWait("//input[@value='Set Access']");
- assertTextSeries("//li[%d]", 1, "First Name: [Howard]", "Last Name: [Lewis Ship]",
+ assertTextSeries("//div[@class='main']//li[%d]", 1, "First Name: [Howard]", "Last Name: [Lewis Ship]",
"Path: [/var/www]", "Role: [GRANT]");
}
@@ -181,7 +181,8 @@ public class BeanEditorTests extends TapestryCoreTestCase
clickAndWait(SUBMIT);
- assertText("//div[@id='content']//h1", "Nested BeanDisplay");
+
+ assertTextPresent("Nested BeanDisplay");
// As usual, Selenium is fighting me in terms of extracting data, so the
// above check just ensures