|
17 | 17 |
|
18 | 18 | package org.openqa.selenium; |
19 | 19 |
|
20 | | -import static org.assertj.core.api.Assertions.assertThat; |
21 | | -import static org.openqa.selenium.testing.TestUtilities.isFirefox; |
22 | | -import static org.openqa.selenium.testing.drivers.Browser.ALL; |
23 | | -import static org.openqa.selenium.testing.drivers.Browser.HTMLUNIT; |
24 | | -import static org.openqa.selenium.testing.drivers.Browser.IE; |
25 | | -import static org.openqa.selenium.testing.drivers.Browser.SAFARI; |
26 | | - |
27 | 20 | import org.junit.jupiter.api.Test; |
28 | 21 | import org.openqa.selenium.environment.webserver.Page; |
29 | 22 | import org.openqa.selenium.testing.Ignore; |
30 | 23 | import org.openqa.selenium.testing.JupiterTestBase; |
31 | 24 | import org.openqa.selenium.testing.NotYetImplemented; |
32 | 25 |
|
| 26 | +import static org.assertj.core.api.Assertions.assertThat; |
| 27 | +import static org.openqa.selenium.testing.drivers.Browser.ALL; |
| 28 | +import static org.openqa.selenium.testing.drivers.Browser.HTMLUNIT; |
| 29 | +import static org.openqa.selenium.testing.drivers.Browser.IE; |
| 30 | +import static org.openqa.selenium.testing.drivers.Browser.SAFARI; |
| 31 | + |
33 | 32 | class TextHandlingTest extends JupiterTestBase { |
34 | 33 |
|
35 | 34 | private static final String NEW_LINE = "\n"; |
@@ -408,9 +407,9 @@ void canHandleTextThatLooksLikeANumber() { |
408 | 407 | public void canHandleTextTransformProperty() { |
409 | 408 | driver.get(pages.simpleTestPage); |
410 | 409 | assertThat(driver.findElement(By.id("capitalized")).getText()) |
411 | | - .isEqualTo(isFirefox(driver) ? "Hello, World! Bla-bla-BLA" : "Hello, World! Bla-Bla-BLA"); |
| 410 | + .isEqualTo("Hello, World! Bla-Bla-BLA"); |
412 | 411 | assertThat(driver.findElement(By.id("lowercased")).getText()) |
413 | | - .isEqualTo("hello, world! bla-bla-bla"); |
| 412 | + .isEqualTo("hello, world! bla-bla-bla"); |
414 | 413 | assertThat(driver.findElement(By.id("uppercased")).getText()) |
415 | 414 | .isEqualTo("HELLO, WORLD! BLA-BLA-BLA"); |
416 | 415 | } |
|
0 commit comments