Author: abelevich
Date: 2009-03-25 12:30:16 -0400 (Wed, 25 Mar 2009)
New Revision: 13186
Modified:
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/InplaceInputTest.java
Log:
fix testInplaceInputComponentLayout
Modified:
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/InplaceInputTest.java
===================================================================
---
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/InplaceInputTest.java 2009-03-25
16:27:11 UTC (rev 13185)
+++
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/InplaceInputTest.java 2009-03-25
16:30:16 UTC (rev 13186)
@@ -64,12 +64,12 @@
String inplaceInputS = getParentId() + "_form:" +
INPLACE_INPUT_SIMPLE;
String inplaceInputD = getParentId() + "_form:" +
INPLACE_INPUT_DECORATED;
- Assert.assertTrue(isPresentById(inplaceInputS));
- int count = selenium.getXpathCount("*[@id='" + inplaceInputS +
"' and (name()='span' or name()='SPAN')]").intValue();
+ Assert.assertTrue(isPresent(inplaceInputS));
+ int count = selenium.getXpathCount("//*[@id='" + inplaceInputS +
"' and (name()='span' or name()='SPAN')]").intValue();
Assert.assertTrue(count == 1, "InplaceInput[" + inplaceInputS + "]
has layout=inline(default) and should be rendered as 'span' element");
- Assert.assertTrue(isPresentById(inplaceInputD));
- count = selenium.getXpathCount("*[@id='" + inplaceInputD +
"' and (name()='DIV' or name()='div')]").intValue();
+ Assert.assertTrue(isPresent(inplaceInputD));
+ count = selenium.getXpathCount("//*[@id='" + inplaceInputD +
"' and (name()='DIV' or name()='div')]").intValue();
Assert.assertTrue(count == 1, "InplaceInput [" + inplaceInputD +
"] has layout=block and should be rendered as 'div' element");
}