Skip to content

Commit

Permalink
[js] guard tests due to chromedriver bug
Browse files Browse the repository at this point in the history
  • Loading branch information
titusfortner committed Feb 2, 2023
1 parent cd1c146 commit 7e8d9d2
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,14 @@
const assert = require('assert')
const chrome = require('../../chrome')
const test = require('../../lib/test')
const {ignore} = require("../../lib/test");
const {Browser} = require("../../index");

test.suite(
function (env) {
// Chrome unable to set "prompt" due to: https://bugs.chromium.org/p/chromedriver/issues/detail?id=4350
describe('setPermission', () => {
it('can set permission', async function () {
ignore(env.browsers(Browser.CHROME)).it('can set permission', async function () {
const driver = await env.builder().build()

await driver.get(test.Pages.clicksPage)
Expand All @@ -44,7 +47,7 @@ test.suite(
await driver.quit()
})

it('can set permission in headless mode', async function () {
ignore(env.browsers(Browser.CHROME)).it('can set permission in headless mode', async function () {
const driver = await env
.builder()
.setChromeOptions(new chrome.Options().headless())
Expand Down

0 comments on commit 7e8d9d2

Please sign in to comment.