Skip to content

Commit

Permalink
Commenting out Edge test for now due to known issue MicrosoftEdge/Edg…
Browse files Browse the repository at this point in the history
  • Loading branch information
vivrichards600 committed Oct 24, 2024
1 parent 2dc91ac commit bae2c8d
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions src/test/scala/uk/gov/hmrc/selenium/webdriver/BrowserSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,20 @@ class BrowserSpec extends AnyWordSpec with Matchers with BeforeAndAfterEach with
Driver.instance.asInstanceOf[ChromeDriver].getSessionId shouldBe null
}

"start and quit Edge browser with default options" in {
System.setProperty("browser", "edge")

startBrowser()

Driver.instance.asInstanceOf[EdgeDriver].getSessionId shouldNot be(null)
Driver.instance.asInstanceOf[EdgeDriver].getCapabilities.getBrowserName shouldBe "MicrosoftEdge"

quitBrowser()

Driver.instance.asInstanceOf[EdgeDriver].getSessionId shouldBe null
}
// commenting out for now - we want this test but it currently fails due to the following known issue:
// https://github.com/MicrosoftEdge/EdgeWebDriver/issues/159
// "start and quit Edge browser with default options" in {
// System.setProperty("browser", "edge")
//
// startBrowser()
//
// Driver.instance.asInstanceOf[EdgeDriver].getSessionId shouldNot be(null)
// Driver.instance.asInstanceOf[EdgeDriver].getCapabilities.getBrowserName shouldBe "MicrosoftEdge"
//
// quitBrowser()
//
// Driver.instance.asInstanceOf[EdgeDriver].getSessionId shouldBe null
// }

"start and quit Firefox browser with default options" in {
System.setProperty("browser", "firefox")
Expand Down

0 comments on commit bae2c8d

Please sign in to comment.