mirror of
https://github.com/google/blockly.git
synced 2026-01-06 16:40:07 +01:00
Revert "chore(deps): update webdriverio to 8.16 and stop using selenium-standalone" (#7520)
This reverts commit b22656b636.
This commit is contained in:
committed by
GitHub
parent
4a6d4399d1
commit
a04a0975a4
12246
package-lock.json
generated
12246
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -73,6 +73,7 @@
|
||||
"@microsoft/api-documenter": "^7.22.4",
|
||||
"@microsoft/api-extractor": "^7.29.5",
|
||||
"@typescript-eslint/eslint-plugin": "^6.1.0",
|
||||
"@wdio/selenium-standalone-service": "^8.0.2",
|
||||
"async-done": "^2.0.0",
|
||||
"chai": "^4.2.0",
|
||||
"concurrently": "^8.0.1",
|
||||
@@ -101,8 +102,9 @@
|
||||
"prettier": "3.0.3",
|
||||
"readline-sync": "^1.4.10",
|
||||
"rimraf": "^5.0.0",
|
||||
"selenium-standalone": "^9.1.1",
|
||||
"typescript": "^5.0.2",
|
||||
"webdriverio": "^8.16.7",
|
||||
"webdriverio": "^8.0.5",
|
||||
"yargs": "^17.2.1"
|
||||
},
|
||||
"dependencies": {
|
||||
|
||||
@@ -41,6 +41,7 @@ async function driverSetup() {
|
||||
args: ['--allow-file-access-from-files'],
|
||||
},
|
||||
},
|
||||
services: [['selenium-standalone']],
|
||||
logLevel: 'warn',
|
||||
};
|
||||
|
||||
@@ -366,8 +367,8 @@ async function connect(
|
||||
);
|
||||
|
||||
const delta = {
|
||||
x: Math.round(targetLocation.x - draggedLocation.x),
|
||||
y: Math.round(targetLocation.y - draggedLocation.y),
|
||||
x: targetLocation.x - draggedLocation.x,
|
||||
y: targetLocation.y - draggedLocation.y,
|
||||
};
|
||||
if (mutatorBlockId) {
|
||||
await dragBlockSelector.dragAndDrop(delta);
|
||||
@@ -524,7 +525,7 @@ async function getAllBlocks(browser) {
|
||||
* - The workspace has a trash can, which means it has a second (hidden) flyout.
|
||||
* @param browser The active WebdriverIO Browser object.
|
||||
* @param xDelta How far to drag the flyout in the x direction. Positive is right.
|
||||
* @param yDelta How far to drag the flyout in the y direction. Positive is down.
|
||||
* @param yDelta How far to drag thte flyout in the y direction. Positive is down.
|
||||
* @return A Promise that resolves when the actions are completed.
|
||||
*/
|
||||
async function scrollFlyout(browser, xDelta, yDelta) {
|
||||
|
||||
@@ -36,6 +36,7 @@ async function runCompileCheckInBrowser() {
|
||||
browserName: 'chrome',
|
||||
},
|
||||
logLevel: 'warn',
|
||||
services: ['selenium-standalone']
|
||||
};
|
||||
// Run in headless mode on Github Actions.
|
||||
if (process.env.CI) {
|
||||
|
||||
@@ -47,6 +47,7 @@ async function runGeneratorsInBrowser(outputDir) {
|
||||
},
|
||||
},
|
||||
logLevel: 'warn',
|
||||
services: ['selenium-standalone']
|
||||
};
|
||||
|
||||
// Run in headless mode on Github Actions.
|
||||
|
||||
@@ -25,6 +25,9 @@ async function runMochaTestsInBrowser() {
|
||||
args: ['--allow-file-access-from-files'],
|
||||
},
|
||||
},
|
||||
services: [
|
||||
['selenium-standalone'],
|
||||
],
|
||||
logLevel: 'warn',
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user