Skip to content

Commit 194714a

Browse files
tinayuangaommalerba
authored andcommitted
test(e2e): Fix e2e flakes by setting default window size (#3234)
* . * Try to make screenshot image size same as before * change back to 1024 x 768
1 parent 5492225 commit 194714a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

e2e/screenshot.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,14 @@ import * as path from 'path';
33
import {browser} from 'protractor';
44

55
const OUTPUT_DIR = './screenshots/';
6+
const HEIGHT = 768;
7+
const WIDTH = 1024;
68

79
let currentJasmineSpecName = '';
810

911
/** Adds a custom jasmine reporter that simply keeps track of the current test name. */
1012
function initializeEnvironment(jasmine: any) {
13+
browser.manage().window().setSize(WIDTH, HEIGHT);
1114
let reporter = new jasmine.JsApiReporter({});
1215
reporter.specStarted = function(result: any) {
1316
currentJasmineSpecName = result.fullName;

0 commit comments

Comments
 (0)