Skip to content

Commit

Permalink
Fix up assumption in the ChromeFunctionalTest
Browse files Browse the repository at this point in the history
  • Loading branch information
shs96c committed Sep 28, 2021
1 parent 05f7b95 commit 33ecb85
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand All @@ -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");
Expand Down

0 comments on commit 33ecb85

Please sign in to comment.