Skip to content
This repository was archived by the owner on May 30, 2019. It is now read-only.

Commit 79bbec0

Browse files
fix: test failure work-around
Maximize browser window when testing to avoid Bootstrap responsive layout issues attributed to test failures.
1 parent 963ee0f commit 79bbec0

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

browser/test/cucumber-support/World.js

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
/*
2-
* Copyright 2012-2015 MarkLogic Corporation
3-
*
4-
* Licensed under the Apache License, Version 2.0 (the "License");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
7-
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
9-
*
10-
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an "AS IS" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
* See the License for the specific language governing permissions and
14-
* limitations under the License.
15-
*/
1+
/*
2+
* Copyright 2012-2015 MarkLogic Corporation
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
1616

1717
// this file adds global variables -- not generally a good idea but for
1818
// cucumber tests it's handy
@@ -37,6 +37,7 @@ var currentPage;
3737
browser.getCapabilities().then(function (cap) {
3838
browser.caps = cap.caps_;
3939
});
40+
browser.driver.manage().window().maximize();
4041

4142
function World (callback) {
4243
self = this;

0 commit comments

Comments
 (0)