Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WRP-4942: Update webdriverio to version 8 #148

Open
wants to merge 25 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
e023001
updated webdriverio to version 8
adrian-cocoara-lgp Aug 30, 2023
6a5911d
downgraded @wdio/selenium-standalone-service wo 8.14.0
adrian-cocoara-lgp Aug 30, 2023
7d21def
downgrade to ^8.15.5
adrian-cocoara-lgp Aug 30, 2023
5212b53
added wdio-selenium-standalone-service as dependency
adrian-cocoara-lgp Aug 30, 2023
30ac7fe
upgrade to ^8.15.10
adrian-cocoara-lgp Aug 30, 2023
58ed941
updated wdio to ^8.16.4
adrian-cocoara-lgp Sep 7, 2023
e7cb685
Fix the config to apply chrome drive path
sjro Oct 11, 2023
9f8783e
fixed indentation
adrian-cocoara-lgp Oct 12, 2023
d204480
fixed merging conflicts
adrian-cocoara-lgp Oct 12, 2023
8ca49a1
set chrome driver path only if the process.env.CHROME_DRIVER_PATH val…
adrian-cocoara-lgp Oct 13, 2023
6f44a39
merge with develop
adrian-cocoara-lgp Jan 25, 2024
d4ccb00
revert chai and chalk version
adrian-cocoara-lgp Jan 25, 2024
99439e8
updated wdio related packages to latest minor version, removed @wdio/…
adrian-cocoara-lgp Jan 25, 2024
db34d4c
updated .travis.yml
adrian-cocoara-lgp Jan 25, 2024
c25984f
updated webdriverio to latest minor version
adrian-cocoara-lgp Mar 7, 2024
c9ea4ed
added new capability to prevent wdio from downloading a unstable chro…
adrian-cocoara-lgp Mar 11, 2024
21ab408
added `browserVersion` capability property to wdio.tv.conf.js
adrian-cocoara-lgp Mar 12, 2024
8029c92
reverse browserVersion
adrian-cocoara-lgp Mar 15, 2024
eb5fdcf
configured to use local chromedriver
adrian-cocoara-lgp Mar 24, 2024
17b7b7c
configured ss config with correct chromedriver
adrian-cocoara-lgp Mar 29, 2024
e864059
added browserName
adrian-cocoara-lgp Mar 29, 2024
3ffcedd
undo
adrian-cocoara-lgp Mar 29, 2024
686cdbd
added capabilities to screenshot config
adrian-cocoara-lgp Apr 1, 2024
921e75b
configured to run tests on TV
adrian-cocoara-lgp Apr 3, 2024
4635cca
code cleanup and updated wdio to latest version
adrian-cocoara-lgp Apr 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ dist: focal
language: node_js
node_js:
- node
- lts/*
before_install:
- sudo apt-get update
- sudo apt-get install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev
Expand Down
14 changes: 10 additions & 4 deletions config/wdio.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const visibleBrowser = !!args.visible,
module.exports.configure = (options) => {
const {base, services} = options;
const opts = Object.assign({}, options);
let chromeVersionMajorNumber;

delete opts.base;
delete opts.before;
Expand All @@ -19,7 +20,6 @@ module.exports.configure = (options) => {
if (process.env.TV_IP && process.argv.find(arg => arg.includes('tv.conf'))) {
process.env.CHROME_DRIVER = 2.44; // Currently, TV supports 83 and lower, but keep the previous version for safety.
} else {
let chromeVersionMajorNumber;
try {
if (process.platform === 'win32') {
// Windows
Expand Down Expand Up @@ -71,7 +71,7 @@ module.exports.configure = (options) => {
// directory is where your package.json resides, so `wdio` will be called from there.
//
specs: [
'./tests/' + base + '/specs/**/*-specs.js'
'../../tests/' + base + '/specs/**/*-specs.js'
],
// Patterns to exclude.
exclude: [
Expand Down Expand Up @@ -108,6 +108,12 @@ module.exports.configure = (options) => {
browserName: 'chrome',
'goog:chromeOptions': visibleBrowser ? {} : {
args: ['--headless', '--window-size=1920,1080']
},
'wdio:chromedriverOptions': process.env.CHROME_DRIVER_PATH ? {
binary: process.env.CHROME_DRIVER_PATH
// match chromedriver version from jenkins
} : Number(chromeVersionMajorNumber) > 108 ? {} : {
binary: 'C:\\chromedriver\\chromedriver_v108.exe'
}
}],
//
Expand Down Expand Up @@ -221,8 +227,8 @@ module.exports.configure = (options) => {
* @param {Array.<Object>} capabilities list of capabilities details
* @param {Array.<String>} specs List of spec file paths that are to be run
*/
before: function () {
require('expect-webdriverio');
before: async function () {
await import ('expect-webdriverio');
const chai = require('chai'),
dirtyChai = require('dirty-chai');

Expand Down
Loading