From b643cf793ec81ced66ee277dfc8964110defc686 Mon Sep 17 00:00:00 2001 From: Diego Molina Date: Wed, 26 Apr 2023 12:15:09 +0200 Subject: [PATCH] [java] Enabling and fixing tests in Firefox --- java/test/org/openqa/selenium/ElementDomPropertyTest.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/java/test/org/openqa/selenium/ElementDomPropertyTest.java b/java/test/org/openqa/selenium/ElementDomPropertyTest.java index 3ca339ec5c2d4..b58673a20932b 100644 --- a/java/test/org/openqa/selenium/ElementDomPropertyTest.java +++ b/java/test/org/openqa/selenium/ElementDomPropertyTest.java @@ -91,7 +91,7 @@ public void testShouldGetClassPropertiesOfAnElement() { WebElement heading = driver.findElement(By.cssSelector(".nameA")); assertThat(heading.getDomProperty("class")).isNull(); assertThat(heading.getDomProperty("className")).isEqualTo("nameA nameBnoise nameC"); - assertThat(heading.getDomProperty("classList")).isEqualTo("nameA nameBnoise nameC"); + assertThat(heading.getDomProperty("classList")).contains("nameA nameBnoise nameC"); } @Test @@ -123,7 +123,6 @@ void testShouldGetNumericProperty() { } @Test - @NotYetImplemented(FIREFOX) public void testCanReturnATextApproximationOfTheStyleProperty() { driver.get(pages.javascriptPage); WebElement element = driver.findElement(By.id("red-item"));