X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fe2e%2Fwdio.browserstack.conf.ts;h=43614a862dd8cc375671c9be4e2b20bcc828137e;hb=e7542293d6db519cce10f5d55c079a4f21482c2b;hp=af3a454fc6f008ee270e5d391c2f4d3fbdabc20c;hpb=3419e0e1fe8e48a08b63ca0ded31087f913eb2b6;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/e2e/wdio.browserstack.conf.ts b/client/e2e/wdio.browserstack.conf.ts index af3a454fc..43614a862 100644 --- a/client/e2e/wdio.browserstack.conf.ts +++ b/client/e2e/wdio.browserstack.conf.ts @@ -26,14 +26,16 @@ function buildBStackDesktopOptions (sessionName: string, resolution?: string) { } } -function buildBStackMobileOptions (sessionName: string, deviceName: string, osVersion: string) { +function buildBStackMobileOptions (sessionName: string, deviceName: string, osVersion: string, appiumVersion?: string) { return { 'bstack:options': { ...buildMainOptions(sessionName), realMobile: true, osVersion, - deviceName + deviceName, + + appiumVersion } } } @@ -84,7 +86,7 @@ module.exports = { { browserName: 'Safari', - ...buildBStackMobileOptions('Safari iPhone', 'iPhone 8 Plus', '11') + ...buildBStackMobileOptions('Safari iPhone', 'iPhone SE', '11') }, { browserName: 'Safari', @@ -97,17 +99,20 @@ module.exports = { connectionRetryTimeout: 240000, waitforTimeout: 20000, + specs: [ + // We don't want to test "local" tests + './src/suites-all/*.e2e-spec.ts' + ], + services: [ [ 'browserstack', { browserstackLocal: true } ] ], - after: function (result) { - if (result === 0) { - browser.executeScript('browserstack_executor: {"action": "setSessionStatus", "arguments": {"status":"passed","reason": ""}}', []) - } else { - browser.executeScript('browserstack_executor: {"action": "setSessionStatus", "arguments": {"status":"failed","reason": ""}}', []) + onWorkerStart: function (_cid, capabilities) { + if (capabilities['bstack:options'].realMobile === true) { + capabilities['bstack:options'].local = false } } } as WebdriverIO.Config