Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
Add more post-test reset code for addon button test.
Browse files Browse the repository at this point in the history
  • Loading branch information
chenba committed Mar 2, 2018
1 parent 8907447 commit c83cccc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/test.js
Expand Up @@ -202,7 +202,10 @@ describe("Test Screenshots", function() {
done();
}),
() => {
driver.setContext(firefox.Context.CONTENT);
return driver.setContext(firefox.Context.CONTENT)
.then(() => driver.getAllWindowHandles())
.then((tabs) => driver.switchTo().window(tabs[tabs.length - 1]))
.then(() => driver.switchTo().defaultContent());
}).catch(done);
});

Expand Down

0 comments on commit c83cccc

Please sign in to comment.