Skip to content
Snippets Groups Projects
Unverified Commit b6981156 authored by Paul Kaplan's avatar Paul Kaplan Committed by GitHub
Browse files

Merge pull request #1004 from paulkaplan/force-test-window-size

Force 1024x768 window size for automated tests
parents 75f27484 dea53962
No related branches found
No related tags found
No related merge requests found
......@@ -37,10 +37,17 @@ class SeleniumHelper {
}
loadUri (uri) {
const WINDOW_WIDTH = 1024;
const WINDOW_HEIGHT = 768;
return this.driver
.get(`file://${uri}`)
.then(() => (
this.driver.executeScript('window.onbeforeunload = undefined;')
))
.then(() => (
this.driver.manage()
.window()
.setSize(WINDOW_WIDTH, WINDOW_HEIGHT)
));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment