Re-enable E2E tabopen tests

These should be broken due to #2695
This commit is contained in:
Oliver Blanthorn 2020-08-02 13:13:42 +01:00
parent 0efb653b50
commit 59d2c8513b
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3

View file

@ -251,25 +251,25 @@ describe("webdriver", () => {
}).finally(() => killDriver(driver))
})
// test("`:tabopen https://example.org<CR>` opens example.org.", async () => {
// const driver = await getDriver()
// return newTabWithoutChangingOldTabs(driver, async () => {
// await sendKeys(driver, ":tabopen https://example.org<CR>")
// }).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<CR>` opens example.org.", async () => {
const driver = await getDriver()
return newTabWithoutChangingOldTabs(driver, async () => {
await sendKeys(driver, ":tabopen https://example.org<CR>")
}).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<CR>` opens qwant.", async () => {
// const driver = await getDriver()
// return newTabWithoutChangingOldTabs(driver, async () => {
// await sendKeys(driver, ":tabopen qwant https://example.org<CR>")
// }).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<CR>` opens qwant.", async () => {
const driver = await getDriver()
return newTabWithoutChangingOldTabs(driver, async () => {
await sendKeys(driver, ":tabopen qwant https://example.org<CR>")
}).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<CR>` opens google.", async () => {
// const driver = await getDriver()