mirror of
https://github.com/vale981/tridactyl
synced 2025-03-05 09:31:41 -05:00
parent
0efb653b50
commit
59d2c8513b
1 changed files with 18 additions and 18 deletions
|
@ -251,25 +251,25 @@ describe("webdriver", () => {
|
||||||
}).finally(() => killDriver(driver))
|
}).finally(() => killDriver(driver))
|
||||||
})
|
})
|
||||||
|
|
||||||
// test("`:tabopen https://example.org<CR>` opens example.org.", async () => {
|
test("`:tabopen https://example.org<CR>` opens example.org.", async () => {
|
||||||
// const driver = await getDriver()
|
const driver = await getDriver()
|
||||||
// return newTabWithoutChangingOldTabs(driver, async () => {
|
return newTabWithoutChangingOldTabs(driver, async () => {
|
||||||
// await sendKeys(driver, ":tabopen https://example.org<CR>")
|
await sendKeys(driver, ":tabopen https://example.org<CR>")
|
||||||
// }).then(async ([newtab, _]) => {
|
}).then(async ([newtab, _]) => {
|
||||||
// expect(newtab.active).toEqual(true)
|
expect(newtab.active).toEqual(true)
|
||||||
// await driver.wait(untilTabUrlMatches(driver, newtab.id, "https://example.org"), 10000)
|
await driver.wait(untilTabUrlMatches(driver, newtab.id, "https://example.org"), 10000)
|
||||||
// }).finally(() => killDriver(driver))
|
}).finally(() => killDriver(driver))
|
||||||
// })
|
})
|
||||||
|
|
||||||
// test("`:tabopen qwant https://example.org<CR>` opens qwant.", async () => {
|
test("`:tabopen qwant https://example.org<CR>` opens qwant.", async () => {
|
||||||
// const driver = await getDriver()
|
const driver = await getDriver()
|
||||||
// return newTabWithoutChangingOldTabs(driver, async () => {
|
return newTabWithoutChangingOldTabs(driver, async () => {
|
||||||
// await sendKeys(driver, ":tabopen qwant https://example.org<CR>")
|
await sendKeys(driver, ":tabopen qwant https://example.org<CR>")
|
||||||
// }).then(async ([newtab, _]) => {
|
}).then(async ([newtab, _]) => {
|
||||||
// expect(newtab.active).toEqual(true)
|
expect(newtab.active).toEqual(true)
|
||||||
// await driver.wait(untilTabUrlMatches(driver, newtab.id, new RegExp("^https://www.qwant.com/.*example.org")), 10000)
|
await driver.wait(untilTabUrlMatches(driver, newtab.id, new RegExp("^https://www.qwant.com/.*example.org")), 10000)
|
||||||
// }).finally(() => killDriver(driver))
|
}).finally(() => killDriver(driver))
|
||||||
// })
|
})
|
||||||
|
|
||||||
// test("`:tabopen test<CR>` opens google.", async () => {
|
// test("`:tabopen test<CR>` opens google.", async () => {
|
||||||
// const driver = await getDriver()
|
// const driver = await getDriver()
|
||||||
|
|
Loading…
Add table
Reference in a new issue