Skip to content

Commit ed043e7

Browse files
Merge pull request #7500 from rachel-fenichel/update_webdriverio
chore(deps): update webdriverio to 8.16 and remove selenium-standalone
2 parents 61cdbb6 + 550443f commit ed043e7

10 files changed

Lines changed: 622 additions & 12196 deletions

File tree

.github/workflows/browser_test.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,6 @@ jobs:
4545
if: runner.os == 'Linux'
4646
run: source ./tests/scripts/setup_linux_env.sh
4747

48-
- name: MacOS Test Setup
49-
if: runner.os == 'macOS'
50-
run: source ./tests/scripts/setup_osx_env.sh
51-
5248
- name: Run Build
5349
run: npm run build
5450

.github/workflows/build.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,6 @@ jobs:
4444
if: runner.os == 'Linux'
4545
run: source ./tests/scripts/setup_linux_env.sh
4646

47-
- name: MacOS Test Setup
48-
if: runner.os == 'macOS'
49-
run: source ./tests/scripts/setup_osx_env.sh
50-
5147
- name: Run
5248
run: npm run test
5349

package-lock.json

Lines changed: 618 additions & 12142 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@
7373
"@microsoft/api-documenter": "^7.22.4",
7474
"@microsoft/api-extractor": "^7.29.5",
7575
"@typescript-eslint/eslint-plugin": "^6.1.0",
76-
"@wdio/selenium-standalone-service": "^8.0.2",
7776
"async-done": "^2.0.0",
7877
"chai": "^4.2.0",
7978
"concurrently": "^8.0.1",
@@ -102,9 +101,8 @@
102101
"prettier": "3.0.3",
103102
"readline-sync": "^1.4.10",
104103
"rimraf": "^5.0.0",
105-
"selenium-standalone": "^9.1.1",
106104
"typescript": "^5.0.2",
107-
"webdriverio": "^8.0.5",
105+
"webdriverio": "^8.16.7",
108106
"yargs": "^17.2.1"
109107
},
110108
"dependencies": {

tests/browser/test/test_setup.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ async function driverSetup() {
4141
args: ['--allow-file-access-from-files'],
4242
},
4343
},
44-
services: [['selenium-standalone']],
4544
logLevel: 'warn',
4645
};
4746

@@ -367,8 +366,8 @@ async function connect(
367366
);
368367

369368
const delta = {
370-
x: targetLocation.x - draggedLocation.x,
371-
y: targetLocation.y - draggedLocation.y,
369+
x: Math.round(targetLocation.x - draggedLocation.x),
370+
y: Math.round(targetLocation.y - draggedLocation.y),
372371
};
373372
if (mutatorBlockId) {
374373
await dragBlockSelector.dragAndDrop(delta);
@@ -525,7 +524,7 @@ async function getAllBlocks(browser) {
525524
* - The workspace has a trash can, which means it has a second (hidden) flyout.
526525
* @param browser The active WebdriverIO Browser object.
527526
* @param xDelta How far to drag the flyout in the x direction. Positive is right.
528-
* @param yDelta How far to drag thte flyout in the y direction. Positive is down.
527+
* @param yDelta How far to drag the flyout in the y direction. Positive is down.
529528
* @return A Promise that resolves when the actions are completed.
530529
*/
531530
async function scrollFlyout(browser, xDelta, yDelta) {

tests/compile/webdriver.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ async function runCompileCheckInBrowser() {
3636
browserName: 'chrome',
3737
},
3838
logLevel: 'warn',
39-
services: ['selenium-standalone']
4039
};
4140
// Run in headless mode on Github Actions.
4241
if (process.env.CI) {

tests/generators/webdriver.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ async function runGeneratorsInBrowser(outputDir) {
4747
},
4848
},
4949
logLevel: 'warn',
50-
services: ['selenium-standalone']
5150
};
5251

5352
// Run in headless mode on Github Actions.

tests/mocha/webdriver.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ async function runMochaTestsInBrowser() {
2525
args: ['--allow-file-access-from-files'],
2626
},
2727
},
28-
services: [
29-
['selenium-standalone'],
30-
],
3128
logLevel: 'warn',
3229
};
3330

tests/scripts/selenium-config.js

Lines changed: 0 additions & 28 deletions
This file was deleted.

tests/scripts/setup_osx_env.sh

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)