aboutsummaryrefslogtreecommitdiff
path: root/e2e/navigate.test.js
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2019-04-20 07:58:29 +0000
committerGitHub <noreply@github.com>2019-04-20 07:58:29 +0000
commitc8e8b3db8ec592f43dcc3fa7920dabc26ce409b9 (patch)
tree739bcb398d389dde2453daf7bb8e407df18b3a5f /e2e/navigate.test.js
parent15b3372c668a4b6120c614e35d3c38639a04b514 (diff)
parent2562d3b9de36d8b0a25d9ec4f67c5c1430773410 (diff)
Merge pull request #568 from ueokande/add-e2e-tests
Add e2e tests
Diffstat (limited to 'e2e/navigate.test.js')
-rw-r--r--e2e/navigate.test.js16
1 files changed, 10 insertions, 6 deletions
diff --git a/e2e/navigate.test.js b/e2e/navigate.test.js
index 5d9365b..17552e5 100644
--- a/e2e/navigate.test.js
+++ b/e2e/navigate.test.js
@@ -125,16 +125,20 @@ describe("navigate test", () => {
await body.sendKeys(Key.Shift, 'h');
- let tab = (await browser.tabs.query({}))[0];
- let url = new URL(tab.url);
- assert.equal(url.pathname, `/first`)
+ await eventually(async() => {
+ let tab = (await browser.tabs.query({}))[0];
+ let url = new URL(tab.url);
+ assert.equal(url.pathname, `/first`)
+ });
body = await session.findElementByCSS('body');
await body.sendKeys(Key.Shift, 'l');
- tab = (await browser.tabs.query({}))[0];
- url = new URL(tab.url);
- assert.equal(url.pathname, `/second`)
+ await eventually(async() => {
+ tab = (await browser.tabs.query({}))[0];
+ url = new URL(tab.url);
+ assert.equal(url.pathname, `/second`)
+ });
});
it('should go previous and next page in <a> by [[ and ]]', async () => {