From bae2c8d09cce0f17bcabfdb726f468562e7ceb85 Mon Sep 17 00:00:00 2001 From: Viv Richards <1014468+vivrichards600@users.noreply.github.com> Date: Thu, 24 Oct 2024 12:09:46 +0100 Subject: [PATCH] Commenting out Edge test for now due to known issue https://github.com/MicrosoftEdge/EdgeWebDriver/issues/159 --- .../hmrc/selenium/webdriver/BrowserSpec.scala | 26 ++++++++++--------- 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/src/test/scala/uk/gov/hmrc/selenium/webdriver/BrowserSpec.scala b/src/test/scala/uk/gov/hmrc/selenium/webdriver/BrowserSpec.scala index d93df2f..c214be6 100644 --- a/src/test/scala/uk/gov/hmrc/selenium/webdriver/BrowserSpec.scala +++ b/src/test/scala/uk/gov/hmrc/selenium/webdriver/BrowserSpec.scala @@ -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")