Add sleep
This commit is contained in:
parent
28da164e5c
commit
1017cefae4
1 changed files with 2 additions and 0 deletions
|
@ -53,6 +53,8 @@ describe("navigate test", () => {
|
||||||
return keys.press(targetTab.id, 'g');
|
return keys.press(targetTab.id, 'g');
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
return keys.press(targetTab.id, 'U', { shiftKey: true });
|
return keys.press(targetTab.id, 'U', { shiftKey: true });
|
||||||
|
}).then(() => {
|
||||||
|
return new Promise(resolve => { setTimeout(() => resolve(), 10) });
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
return tabs.get(targetTab.id);
|
return tabs.get(targetTab.id);
|
||||||
}).then((tab) => {
|
}).then((tab) => {
|
||||||
|
|
Reference in a new issue