Skip to content

Commit

Permalink
Use pageLoadTimeout instead of delay for Electron test
Browse files Browse the repository at this point in the history
  • Loading branch information
jhen0409 committed Jul 7, 2016
1 parent b26c73f commit 766b7d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/electron/devpanel.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ describe('DevTools panel for Electron', function() {
expect(await this.driver.getCurrentUrl())
.toMatch(/chrome-devtools:\/\/devtools\/bundled\/inspector.html/);

await delay(1000); // wait loading of redux devtools
await this.driver.manage().timeouts().pageLoadTimeout(5000);

const id = await this.driver.executeScript(function() {
const tabs = WebInspector.inspectorView._tabbedPane._tabs;
const lastPanelId = tabs[tabs.length - 1].id;
Expand Down

0 comments on commit 766b7d0

Please sign in to comment.