aboutsummaryrefslogtreecommitdiff
path: root/e2e
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2018-06-17 14:22:51 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2018-06-18 20:57:17 +0900
commit413ad780a07502108c4508cdb399243567e54066 (patch)
treee4591773c9bb21212aeb020054d14931d6bcb956 /e2e
parent2e9574fbea4636577b0e9f33c3650d85ae85055a (diff)
fix
Diffstat (limited to 'e2e')
-rw-r--r--e2e/contents/navigate.test.js16
-rw-r--r--e2e/contents/tab.test.js2
2 files changed, 9 insertions, 9 deletions
diff --git a/e2e/contents/navigate.test.js b/e2e/contents/navigate.test.js
index d36b167..32ed423 100644
--- a/e2e/contents/navigate.test.js
+++ b/e2e/contents/navigate.test.js
@@ -20,7 +20,7 @@ describe("navigate test", () => {
let tab = await tabs.create(targetWindow.id, CLIENT_URL + '/a/b/c');
await keys.press(tab.id, 'g');
await keys.press(tab.id, 'u');
- await new Promise(resolve => { setTimeout(() => resolve(), 10) });
+ await new Promise((resolve) => setTimeout(resolve, 10));
tab = await tabs.get(tab.id);
expect(tab.url).to.be.equal(CLIENT_URL + '/a/b/');
@@ -38,7 +38,7 @@ describe("navigate test", () => {
let tab = await tabs.create(targetWindow.id, CLIENT_URL + '/a/b/c');
await keys.press(tab.id, 'g');
await keys.press(tab.id, 'U', { shiftKey: true });
- await new Promise(resolve => { setTimeout(() => resolve(), 10) });
+ await new Promise((resolve) => setTimeout(resolve, 10));
tab = await tabs.get(tab.id);
expect(tab.url).to.be.equal(CLIENT_URL + '/');
@@ -49,11 +49,11 @@ describe("navigate test", () => {
await keys.press(tab.id, 'g');
await keys.press(tab.id, 'u');
await keys.press(tab.id, 'H', { shiftKey: true });
- await new Promise(resolve => { setTimeout(() => resolve(), 10) });
+ await new Promise((resolve) => setTimeout(resolve, 10));
tab = await tabs.get(tab.id);
expect(tab.url, 'go back in history').to.be.equal(CLIENT_URL + '/#navigate');
- await new Promise(resolve => { setTimeout(() => resolve(), 10) });
+ await new Promise((resolve) => setTimeout(resolve, 10));
await keys.press(tab.id, 'L', { shiftKey: true });
tab = await tabs.get(tab.id);
@@ -64,7 +64,7 @@ describe("navigate test", () => {
let tab = await tabs.create(targetWindow.id, CLIENT_URL + '/a-pagenation?page=10');
await keys.press(tab.id, '[');
await keys.press(tab.id, '[');
- await new Promise(resolve => { setTimeout(() => resolve(), 10) });
+ await new Promise((resolve) => setTimeout(resolve, 10));
tab = await tabs.get(tab.id);
expect(tab.url).to.be.equal(CLIENT_URL + '/a-pagenation?page=9');
@@ -74,7 +74,7 @@ describe("navigate test", () => {
let tab = await tabs.create(targetWindow.id, CLIENT_URL + '/a-pagenation?page=10');
await keys.press(tab.id, ']');
await keys.press(tab.id, ']');
- await new Promise(resolve => { setTimeout(() => resolve(), 10) });
+ await new Promise((resolve) => setTimeout(resolve, 100));
tab = await tabs.get(tab.id);
expect(tab.url).to.be.equal(CLIENT_URL + '/a-pagenation?page=11');
@@ -84,7 +84,7 @@ describe("navigate test", () => {
let tab = await tabs.create(targetWindow.id, CLIENT_URL + '/link-pagenation?page=10');
await keys.press(tab.id, '[');
await keys.press(tab.id, '[');
- await new Promise(resolve => { setTimeout(() => resolve(), 10) });
+ await new Promise((resolve) => setTimeout(resolve, 10));
tab = await tabs.get(tab.id);
expect(tab.url).to.be.equal(CLIENT_URL + '/link-pagenation?page=9');
@@ -94,7 +94,7 @@ describe("navigate test", () => {
let tab = await tabs.create(targetWindow.id, CLIENT_URL + '/link-pagenation?page=10');
await keys.press(tab.id, ']');
await keys.press(tab.id, ']');
- await new Promise(resolve => { setTimeout(() => resolve(), 10) });
+ await new Promise((resolve) => setTimeout(resolve, 10));
tab = await tabs.get(tab.id);
expect(tab.url).to.be.equal(CLIENT_URL + '/link-pagenation?page=11');
diff --git a/e2e/contents/tab.test.js b/e2e/contents/tab.test.js
index bb6c56f..fb24011 100644
--- a/e2e/contents/tab.test.js
+++ b/e2e/contents/tab.test.js
@@ -174,7 +174,7 @@ describe("tab test", () => {
}).then(() => {
return keys.press(target.id, 'f');
}).then(() => {
- return new Promise((resolve) => setTimeout(resolve, 300));
+ return new Promise((resolve) => setTimeout(resolve, 500));
}).then(() => {
return windows.get(targetWindow.id);
}).then((win) => {