|
|
@ -125,16 +125,20 @@ describe("navigate test", () => { |
|
|
|
|
|
|
|
|
|
|
|
await body.sendKeys(Key.Shift, 'h'); |
|
|
|
await body.sendKeys(Key.Shift, 'h'); |
|
|
|
|
|
|
|
|
|
|
|
let tab = (await browser.tabs.query({}))[0]; |
|
|
|
await eventually(async() => { |
|
|
|
let url = new URL(tab.url); |
|
|
|
let tab = (await browser.tabs.query({}))[0]; |
|
|
|
assert.equal(url.pathname, `/first`) |
|
|
|
let url = new URL(tab.url); |
|
|
|
|
|
|
|
assert.equal(url.pathname, `/first`) |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
body = await session.findElementByCSS('body'); |
|
|
|
body = await session.findElementByCSS('body'); |
|
|
|
await body.sendKeys(Key.Shift, 'l'); |
|
|
|
await body.sendKeys(Key.Shift, 'l'); |
|
|
|
|
|
|
|
|
|
|
|
tab = (await browser.tabs.query({}))[0]; |
|
|
|
await eventually(async() => { |
|
|
|
url = new URL(tab.url); |
|
|
|
tab = (await browser.tabs.query({}))[0]; |
|
|
|
assert.equal(url.pathname, `/second`) |
|
|
|
url = new URL(tab.url); |
|
|
|
|
|
|
|
assert.equal(url.pathname, `/second`) |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
it('should go previous and next page in <a> by [[ and ]]', async () => { |
|
|
|
it('should go previous and next page in <a> by [[ and ]]', async () => { |
|
|
|