From 59d2c8513bd0d4cdc48beb4ec0d2a9e32c60d6aa Mon Sep 17 00:00:00 2001 From: Oliver Blanthorn Date: Sun, 2 Aug 2020 13:13:42 +0100 Subject: [PATCH] Re-enable E2E tabopen tests These should be broken due to #2695 --- e2e_tests/e2e.test.ts | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/e2e_tests/e2e.test.ts b/e2e_tests/e2e.test.ts index abdbb191..3994e059 100644 --- a/e2e_tests/e2e.test.ts +++ b/e2e_tests/e2e.test.ts @@ -251,25 +251,25 @@ describe("webdriver", () => { }).finally(() => killDriver(driver)) }) -// test("`:tabopen https://example.org` opens example.org.", async () => { -// const driver = await getDriver() -// return newTabWithoutChangingOldTabs(driver, async () => { -// await sendKeys(driver, ":tabopen https://example.org") -// }).then(async ([newtab, _]) => { -// expect(newtab.active).toEqual(true) -// await driver.wait(untilTabUrlMatches(driver, newtab.id, "https://example.org"), 10000) -// }).finally(() => killDriver(driver)) -// }) + test("`:tabopen https://example.org` opens example.org.", async () => { + const driver = await getDriver() + return newTabWithoutChangingOldTabs(driver, async () => { + await sendKeys(driver, ":tabopen https://example.org") + }).then(async ([newtab, _]) => { + expect(newtab.active).toEqual(true) + await driver.wait(untilTabUrlMatches(driver, newtab.id, "https://example.org"), 10000) + }).finally(() => killDriver(driver)) + }) -// test("`:tabopen qwant https://example.org` opens qwant.", async () => { -// const driver = await getDriver() -// return newTabWithoutChangingOldTabs(driver, async () => { -// await sendKeys(driver, ":tabopen qwant https://example.org") -// }).then(async ([newtab, _]) => { -// expect(newtab.active).toEqual(true) -// await driver.wait(untilTabUrlMatches(driver, newtab.id, new RegExp("^https://www.qwant.com/.*example.org")), 10000) -// }).finally(() => killDriver(driver)) -// }) + test("`:tabopen qwant https://example.org` opens qwant.", async () => { + const driver = await getDriver() + return newTabWithoutChangingOldTabs(driver, async () => { + await sendKeys(driver, ":tabopen qwant https://example.org") + }).then(async ([newtab, _]) => { + expect(newtab.active).toEqual(true) + await driver.wait(untilTabUrlMatches(driver, newtab.id, new RegExp("^https://www.qwant.com/.*example.org")), 10000) + }).finally(() => killDriver(driver)) + }) // test("`:tabopen test` opens google.", async () => { // const driver = await getDriver()