wdio-mediawiki 6.3.0 → 6.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/RunJobs.js +3 -3
- package/package.json +1 -1
- package/wdio-defaults.conf.js +1 -1
package/RunJobs.js
CHANGED
|
@@ -3,8 +3,8 @@ import Page from './Page.js';
|
|
|
3
3
|
|
|
4
4
|
const MAINPAGE_REQUESTS_MAX_RUNS = 10; // (arbitrary) safe-guard against endless execution
|
|
5
5
|
|
|
6
|
-
function getJobCount() {
|
|
7
|
-
const api = createApiClient();
|
|
6
|
+
async function getJobCount() {
|
|
7
|
+
const api = await createApiClient();
|
|
8
8
|
return api.request( {
|
|
9
9
|
action: 'query',
|
|
10
10
|
meta: 'siteinfo',
|
|
@@ -58,7 +58,7 @@ function runThroughMainPageRequests( runCount = 1 ) {
|
|
|
58
58
|
class RunJobs {
|
|
59
59
|
|
|
60
60
|
static run() {
|
|
61
|
-
browser.call( () => runThroughMainPageRequests() );
|
|
61
|
+
return browser.call( () => runThroughMainPageRequests() );
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
|
package/package.json
CHANGED
package/wdio-defaults.conf.js
CHANGED
|
@@ -108,7 +108,7 @@ export const config = {
|
|
|
108
108
|
timeout: process.env.DEBUG ? ( 60 * 60 * 1000 ) : ( 60 * 1000 )
|
|
109
109
|
},
|
|
110
110
|
// By default we do not record videos and you can turn it on in CI
|
|
111
|
-
// Make sure to add it to true and change
|
|
111
|
+
// Make sure to add it to true and change useBrowserHeadless to false
|
|
112
112
|
recordVideo: false,
|
|
113
113
|
// If you do not want to use browser headless, you need to export DISPLAY
|
|
114
114
|
// and have a display for the tests to work
|