Skip to content

Commit 83c1af8

Browse files
committed
Try fixing flaky test
1 parent 58fa67f commit 83c1af8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/specs/BrowserSpec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ describe("Browser functions", function () {
4747
return {
4848
width: width || 12,
4949
height: height || 34,
50-
executeJsTimeout: 10
50+
executeJsTimeout: 100
5151
};
5252
};
5353

@@ -176,7 +176,7 @@ describe("Browser functions", function () {
176176
});
177177

178178
it("should support window.matchMedia() with 'width' media queries", function (done) {
179-
doc.documentElement.innerHTML = '<body onload="setTimeout(function () {document.body.innerHTML = window.matchMedia(\'(min-width: 30px)\').matches; }, 0);"></body>';
179+
doc.documentElement.innerHTML = '<body onload="setTimeout(function () {document.body.innerHTML = window.matchMedia(\'(min-width: 30px)\').matches; }, 10);"></body>';
180180

181181
browser.executeJavascript(doc.documentElement, optionsWithViewport(42, 21)).then(function (result) {
182182
expect(result.document.body.innerHTML).toEqual('true');

0 commit comments

Comments
 (0)