From 33ecb854b09537aee629d447008f71cbc95aaa72 Mon Sep 17 00:00:00 2001 From: Simon Mavi Stewart Date: Tue, 28 Sep 2021 17:30:55 +0100 Subject: [PATCH] Fix up assumption in the ChromeFunctionalTest --- .../openqa/selenium/chrome/ChromeDriverFunctionalTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/java/test/org/openqa/selenium/chrome/ChromeDriverFunctionalTest.java b/java/test/org/openqa/selenium/chrome/ChromeDriverFunctionalTest.java index 5ed6d0ff48b22..5ffc87ef1cdb8 100644 --- a/java/test/org/openqa/selenium/chrome/ChromeDriverFunctionalTest.java +++ b/java/test/org/openqa/selenium/chrome/ChromeDriverFunctionalTest.java @@ -35,6 +35,7 @@ import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.fail; +import static org.assertj.core.api.Assumptions.assumeThat; public class ChromeDriverFunctionalTest extends JUnit4TestBase { @@ -46,8 +47,8 @@ public void canSetPermission() { HasPermissions permissions = (HasPermissions) driver; driver.get(pages.clicksPage); - assertThat(checkPermission(driver, CLIPBOARD_READ)).isEqualTo("prompt"); - assertThat(checkPermission(driver, CLIPBOARD_WRITE)).isEqualTo("granted"); + assumeThat(checkPermission(driver, CLIPBOARD_READ)).isEqualTo("prompt"); + assumeThat(checkPermission(driver, CLIPBOARD_WRITE)).isEqualTo("granted"); permissions.setPermission(CLIPBOARD_READ, "denied"); permissions.setPermission(CLIPBOARD_WRITE, "prompt");