Browse files

metamer: inplace input test fix

  • Loading branch information...
1 parent 0b52b04 commit e156d95c5e515748494a9bc0ea524336379ad817 @jstefek jstefek committed Mar 21, 2013
View
4 ...t/java/org/richfaces/tests/metamer/ftest/richInplaceInput/TestInplaceInputAttributes.java
@@ -39,7 +39,6 @@
import org.openqa.selenium.interactions.Actions;
import org.openqa.selenium.support.FindBy;
import org.richfaces.tests.metamer.ftest.AbstractWebDriverTest;
-import org.richfaces.tests.metamer.ftest.annotations.IssueTracking;
import org.richfaces.tests.metamer.ftest.annotations.RegressionTest;
import org.richfaces.tests.metamer.ftest.webdriver.MetamerPage;
import org.richfaces.tests.metamer.ftest.webdriver.MetamerPage.WaitRequestType;
@@ -222,7 +221,8 @@ public void testInputWidth() {
inplaceInputAttributes.set(InplaceInputAttributes.inputWidth, "");
width = inplaceInput.getEditInputElement().getCssValue("width");
- assertEquals(width, "66px", "Default width of input was not set.");
+ Integer widthI = Integer.parseInt(width.substring(0, width.indexOf("px")));
+ assertEquals(widthI, 66, 20, "Default width of input was not set.");
}
@Test

0 comments on commit e156d95

Please sign in to comment.