Skip to content

Commit

Permalink
[java] Changing tests to follow atom changes
Browse files Browse the repository at this point in the history
  • Loading branch information
barancev committed Jul 13, 2019
1 parent c0f3e3c commit 92108dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion common/src/web/simpleTest.html
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ <h1>Heading</h1>
<span id="trimmedSpace">            ​‌‍  ⁠ test            ​‌‍  ⁠ </span>

<br/>
<a id="capitalized" style="text-transform: capitalize">Hello, world! bla-bla-BLA</a><br/>
<a id="capitalized" style="text-transform: capitalize">hello, world! bla-bla-BLA</a><br/>
<a id="lowercased" style="text-transform: lowercase">Hello, world! bla-bla-BLA</a><br/>
<a id="uppercased" style="text-transform: uppercase">Hello, world! bla-bla-BLA</a><br/>

Expand Down
4 changes: 2 additions & 2 deletions java/client/test/org/openqa/selenium/TextHandlingTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@

import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.Assume.assumeFalse;
import static org.openqa.selenium.testing.TestUtilities.isFirefox;
import static org.openqa.selenium.testing.drivers.Browser.ALL;
import static org.openqa.selenium.testing.drivers.Browser.CHROME;
import static org.openqa.selenium.testing.drivers.Browser.CHROMIUMEDGE;
import static org.openqa.selenium.testing.drivers.Browser.EDGE;
import static org.openqa.selenium.testing.drivers.Browser.HTMLUNIT;
import static org.openqa.selenium.testing.drivers.Browser.IE;
import static org.openqa.selenium.testing.drivers.Browser.SAFARI;
import static org.openqa.selenium.testing.TestUtilities.isChrome;

import org.junit.Test;
import org.openqa.selenium.environment.webserver.Page;
Expand Down Expand Up @@ -420,7 +420,7 @@ public void canHandleTextThatLooksLikeANumber() {
public void canHandleTextTransformProperty() {
driver.get(pages.simpleTestPage);
assertThat(driver.findElement(By.id("capitalized")).getText())
.isEqualTo(isChrome(driver) ? "Hello, World! Bla-Bla-BLA" : "Hello, World! Bla-bla-BLA");
.isEqualTo(isFirefox(driver) ? "Hello, World! Bla-bla-BLA" : "Hello, World! Bla-Bla-BLA");
assertThat(driver.findElement(By.id("lowercased")).getText())
.isEqualTo("hello, world! bla-bla-bla");
assertThat(driver.findElement(By.id("uppercased")).getText())
Expand Down

0 comments on commit 92108dd

Please sign in to comment.