diff options
author | Mario Vavti <mario@mariovavti.com> | 2021-10-09 20:08:23 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2021-10-09 20:08:23 +0200 |
commit | 094536e6339eaba87cc0b372418a50b865fe0a97 (patch) | |
tree | 71f8e1f1d421322dbe52ca631e6bd32bd05e8b43 /vendor/blueimp/jquery-file-upload/wdio/hooks/index.js | |
parent | 4f2a439873d105b91a5dbbd4dc72d2e2183349a8 (diff) | |
parent | 63bdab2b5fd456979587e3c065c274c6475c17b1 (diff) | |
download | volse-hubzilla-094536e6339eaba87cc0b372418a50b865fe0a97.tar.gz volse-hubzilla-094536e6339eaba87cc0b372418a50b865fe0a97.tar.bz2 volse-hubzilla-094536e6339eaba87cc0b372418a50b865fe0a97.zip |
Merge branch 'dev' of https://framagit.org/hubzilla/core into dev
Diffstat (limited to 'vendor/blueimp/jquery-file-upload/wdio/hooks/index.js')
-rw-r--r-- | vendor/blueimp/jquery-file-upload/wdio/hooks/index.js | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/vendor/blueimp/jquery-file-upload/wdio/hooks/index.js b/vendor/blueimp/jquery-file-upload/wdio/hooks/index.js index f369f5614..918502c3a 100644 --- a/vendor/blueimp/jquery-file-upload/wdio/hooks/index.js +++ b/vendor/blueimp/jquery-file-upload/wdio/hooks/index.js @@ -5,11 +5,21 @@ const cmds = require('wdio-screen-commands') /* eslint-disable jsdoc/valid-types */ -/** @type WebdriverIO.HookFunctions */ +/** @type WebdriverIO.HookFunctionExtension */ const config = { before: async () => { + // Add browser commands: browser.addCommand('saveScreenshotByName', cmds.saveScreenshotByName) browser.addCommand('saveAndDiffScreenshot', cmds.saveAndDiffScreenshot) + // Add element commands: + browser.addCommand('saveScreenshotByName', cmds.saveScreenshotByName, true) + browser.addCommand( + 'saveAndDiffScreenshot', + cmds.saveAndDiffScreenshot, + true + ) + if (browser.config.appium) + await browser.updateSettings(browser.config.appium) if (browser.config.maximizeWindow) await browser.maximizeWindow() }, beforeTest: async test => { |