Update E2E

This commit is contained in:
Chocobozzz 2023-02-28 09:29:17 +01:00
parent 4077aecd0a
commit a9536a4be9
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 6 additions and 7 deletions

View File

@ -17,26 +17,25 @@ function buildMainOptions (sessionName: string) {
}
}
function buildBStackDesktopOptions (sessionName: string, resolution?: string) {
function buildBStackDesktopOptions (sessionName: string, resolution: string, os?: string) {
return {
'bstack:options': {
...buildMainOptions(sessionName),
os,
resolution
}
}
}
function buildBStackMobileOptions (sessionName: string, deviceName: string, osVersion: string, appiumVersion?: string) {
function buildBStackMobileOptions (sessionName: string, deviceName: string, osVersion: string) {
return {
'bstack:options': {
...buildMainOptions(sessionName),
realMobile: true,
osVersion,
deviceName,
appiumVersion
deviceName
}
}
}
@ -58,9 +57,9 @@ module.exports = {
},
{
browserName: 'Firefox',
browserVersion: '68', // ESR
browserVersion: '68', // Very old ESR
...buildBStackDesktopOptions('Firefox ESR Desktop', '1280x1024')
...buildBStackDesktopOptions('Firefox ESR Desktop', '1280x1024', 'Windows')
},
{
browserName: 'Safari',