Skip to content
This repository has been archived by the owner on Nov 17, 2017. It is now read-only.

Commit

Permalink
metamer: inplace input test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiri Stefek committed Mar 20, 2013
1 parent 0b52b04 commit e156d95
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e156d95

Please sign in to comment.