Skip to content

Commit

Permalink
build(deps): bump ws, @wdio/browserstack-service, @wdio/cli, @wdio/lo…
Browse files Browse the repository at this point in the history
…cal-runner and webdriverio

Plus manual changes:
 - Follow getHTML() API change.
 - Take ChainablePromiseElement in utils.ts functions.
 - Make config typeless.
 - Make element selector valid for BiDi.

Bumps [ws](https://github.com/websockets/ws) to 8.18.0 and updates ancestor dependencies [ws](https://github.com/websockets/ws), [@wdio/browserstack-service](https://github.com/webdriverio/webdriverio/tree/HEAD/packages/wdio-browserstack-service), [@wdio/cli](https://github.com/webdriverio/webdriverio/tree/HEAD/packages/wdio-cli), [@wdio/local-runner](https://github.com/webdriverio/webdriverio/tree/HEAD/packages/wdio-local-runner) and [webdriverio](https://github.com/webdriverio/webdriverio/tree/HEAD/packages/webdriverio). These dependencies need to be updated together.

Updates `ws` from 8.16.0 to 8.18.0
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](websockets/ws@8.16.0...8.18.0)

Updates `@wdio/browserstack-service` from 8.40.2 to 9.0.2
- [Release notes](https://github.com/webdriverio/webdriverio/releases)
- [Changelog](https://github.com/webdriverio/webdriverio/blob/main/CHANGELOG.md)
- [Commits](https://github.com/webdriverio/webdriverio/commits/v9.0.2/packages/wdio-browserstack-service)

Updates `@wdio/cli` from 8.40.2 to 9.0.1
- [Release notes](https://github.com/webdriverio/webdriverio/releases)
- [Changelog](https://github.com/webdriverio/webdriverio/blob/main/CHANGELOG.md)
- [Commits](https://github.com/webdriverio/webdriverio/commits/v9.0.1/packages/wdio-cli)

Updates `@wdio/local-runner` from 8.40.2 to 9.0.1
- [Release notes](https://github.com/webdriverio/webdriverio/releases)
- [Changelog](https://github.com/webdriverio/webdriverio/blob/main/CHANGELOG.md)
- [Commits](https://github.com/webdriverio/webdriverio/commits/v9.0.1/packages/wdio-local-runner)

Updates `webdriverio` from 8.40.2 to 9.0.1
- [Release notes](https://github.com/webdriverio/webdriverio/releases)
- [Changelog](https://github.com/webdriverio/webdriverio/blob/main/CHANGELOG.md)
- [Commits](https://github.com/webdriverio/webdriverio/commits/v9.0.1/packages/webdriverio)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
- dependency-name: "@wdio/browserstack-service"
  dependency-type: direct:development
- dependency-name: "@wdio/cli"
  dependency-type: direct:development
- dependency-name: "@wdio/local-runner"
  dependency-type: direct:development
- dependency-name: webdriverio
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <[email protected]>

make wdio config typeless
  • Loading branch information
dependabot[bot] authored and torokati44 committed Aug 16, 2024
1 parent 5469691 commit 35becf4
Show file tree
Hide file tree
Showing 45 changed files with 1,108 additions and 1,477 deletions.
2,344 changes: 942 additions & 1,402 deletions web/package-lock.json

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
"devDependencies": {
"@eslint/js": "^9.9.0",
"@types/eslint__js": "^8.42.3",
"@wdio/browserstack-service": "^8.40.2",
"@wdio/cli": "^8.40.2",
"@wdio/local-runner": "^8.40.2",
"@wdio/browserstack-service": "^9.0.2",
"@wdio/cli": "^9.0.1",
"@wdio/local-runner": "^9.0.1",
"@wdio/mocha-framework": "^9.0.0",
"@wdio/spec-reporter": "^9.0.0",
"@wdio/static-server-service": "^9.0.0",
Expand All @@ -37,7 +37,7 @@
"tsx": "^4.17.0",
"typescript": "^5.5.4",
"typescript-eslint": "^8.1.0",
"webdriverio": "^8.40.0",
"webdriverio": "^9.0.1",
"webpack": "^5.93.0",
"webpack-cli": "^5.1.4"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ describe("Key up and down events work", () => {
loadJsAPI("/test/integration_tests/keyboard_input/test.swf");

it("'a' key is recognised", async () => {
const player = await browser.$("<ruffle-player>");
const player = await browser.$("ruffle-player");
await player.click();
// Extra safety click in case there's a modal
await player.click();
Expand All @@ -30,7 +30,7 @@ event.keyCode = 65
});

it("enter key is recognised", async () => {
const player = await browser.$("<ruffle-player>");
const player = await browser.$("ruffle-player");
await player.click();

await browser.keys([Key.Enter]);
Expand Down
2 changes: 1 addition & 1 deletion web/packages/selfhosted/test/js_api/load.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ describe("RufflePlayer.load", () => {
loadJsAPI();

it("loads and plays a URL", async () => {
const player = await browser.$("<ruffle-player>");
const player = await browser.$("ruffle-player");
await browser.execute(async (playerElement) => {
// https://github.com/webdriverio/webdriverio/issues/6486
const player = playerElement as unknown as Player;
Expand Down
2 changes: 1 addition & 1 deletion web/packages/selfhosted/test/js_api/metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ describe("RufflePlayer.metadata", () => {
loadJsAPI("/test_assets/example.swf");

it("has metadata after load", async () => {
const player = await browser.$("<ruffle-player>");
const player = await browser.$("ruffle-player");
const metadata = await browser.execute(
// https://github.com/webdriverio/webdriverio/issues/6486
(player) => (player as unknown as Player).metadata,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ describe("Flash inside frame with injected ruffle", () => {
await browser.switchToFrame(await browser.$("#test-frame"));
await browser.$("<ruffle-object />").waitForExist();

const actual = await browser.$("#test-container").getHTML(false);
const actual = await browser
.$("#test-container")
.getHTML({ includeSelectorTag: false });
const expected = fs.readFileSync(
`${import.meta.dirname}/expected.html`,
"utf8",
Expand All @@ -39,7 +41,9 @@ describe("Flash inside frame with injected ruffle", () => {
await browser.switchToFrame(await browser.$("#test-frame"));
await browser.$("<ruffle-object />").waitForExist();

const actual = await browser.$("#test-container").getHTML(false);
const actual = await browser
.$("#test-container")
.getHTML({ includeSelectorTag: false });
const expected = fs.readFileSync(
`${import.meta.dirname}/expected.html`,
"utf8",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ describe("Flash inside frame with provided ruffle", () => {
await browser.switchToFrame(await browser.$("#test-frame"));
await browser.$("<ruffle-object />").waitForExist();

const actual = await browser.$("#test-container").getHTML(false);
const actual = await browser
.$("#test-container")
.getHTML({ includeSelectorTag: false });
const expected = fs.readFileSync(
`${import.meta.dirname}/expected.html`,
"utf8",
Expand All @@ -38,7 +40,9 @@ describe("Flash inside frame with provided ruffle", () => {
await browser.switchToFrame(await browser.$("#test-frame"));
await browser.$("<ruffle-object />").waitForExist();

const actual = await browser.$("#test-container").getHTML(false);
const actual = await browser
.$("#test-container")
.getHTML({ includeSelectorTag: false });
const expected = fs.readFileSync(
`${import.meta.dirname}/expected.html`,
"utf8",
Expand Down
4 changes: 3 additions & 1 deletion web/packages/selfhosted/test/polyfill/embed_default/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ describe("Embed tag", () => {

it("polyfills with ruffle", async () => {
await injectRuffleAndWait(browser);
const actual = await browser.$("#test-container").getHTML(false);
const actual = await browser
.$("#test-container")
.getHTML({ includeSelectorTag: false });
const expected = fs.readFileSync(
`${import.meta.dirname}/expected.html`,
"utf8",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ describe("Embed with case-insensitive MIME type", () => {
await injectRuffleAndWait(browser);
await browser.$("<ruffle-embed />").waitForExist();

const actual = await browser.$("#test-container").getHTML(false);
const actual = await browser
.$("#test-container")
.getHTML({ includeSelectorTag: false });
const expected = fs.readFileSync(
`${import.meta.dirname}/expected.html`,
"utf8",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ describe("Embed inside audio node", () => {

it("doesn't polyfill with ruffle", async () => {
await injectRuffleAndWait(browser);
const actual = await browser.$("#test-container").getHTML(false);
const actual = await browser
.$("#test-container")
.getHTML({ includeSelectorTag: false });
const expected = fs.readFileSync(
`${import.meta.dirname}/expected.html`,
"utf8",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ describe("Embed without src attribute", () => {

it("doesn't polyfill with ruffle", async () => {
await injectRuffleAndWait(browser);
const actual = await browser.$("#test-container").getHTML(false);
const actual = await browser
.$("#test-container")
.getHTML({ includeSelectorTag: false });
const expected = fs.readFileSync(
`${import.meta.dirname}/expected.html`,
"utf8",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ describe("Embed without type attribute", () => {

it("polyfills with ruffle", async () => {
await injectRuffleAndWait(browser);
const actual = await browser.$("#test-container").getHTML(false);
const actual = await browser
.$("#test-container")
.getHTML({ includeSelectorTag: false });
const expected = fs.readFileSync(
`${import.meta.dirname}/expected.html`,
"utf8",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ describe("Embed with unexpected string", () => {

it("polyfills with ruffle", async () => {
await injectRuffleAndWait(browser);
const actual = await browser.$("#test-container").getHTML(false);
const actual = await browser
.$("#test-container")
.getHTML({ includeSelectorTag: false });
const expected = fs.readFileSync(
`${import.meta.dirname}/expected.html`,
"utf8",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ describe("Embed with wrong type attribute value", () => {

it("polyfills with ruffle", async () => {
await injectRuffleAndWait(browser);
const actual = await browser.$("#test-container").getHTML(false);
const actual = await browser
.$("#test-container")
.getHTML({ includeSelectorTag: false });
const expected = fs.readFileSync(
`${import.meta.dirname}/expected.html`,
"utf8",
Expand Down
4 changes: 3 additions & 1 deletion web/packages/selfhosted/test/polyfill/embed_youtube/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ describe("Embed with Flash YouTube video", () => {

it("doesn't polyfill with ruffle", async () => {
await injectRuffleAndWait(browser);
const actual = await browser.$("#test-container").getHTML(false);
const actual = await browser
.$("#test-container")
.getHTML({ includeSelectorTag: false });
const expected = fs.readFileSync(
`${import.meta.dirname}/expected.html`,
"utf8",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ describe("Flash inside iframe with injected ruffle", () => {
await browser.switchToFrame(await browser.$("#test-frame"));
await browser.$("<ruffle-object />").waitForExist();

const actual = await browser.$("#test-container").getHTML(false);
const actual = await browser
.$("#test-container")
.getHTML({ includeSelectorTag: false });
const expected = fs.readFileSync(
`${import.meta.dirname}/expected.html`,
"utf8",
Expand All @@ -38,7 +40,9 @@ describe("Flash inside iframe with injected ruffle", () => {
await browser.switchToFrame(await browser.$("#test-frame"));
await browser.$("<ruffle-object />").waitForExist();

const actual = await browser.$("#test-container").getHTML(false);
const actual = await browser
.$("#test-container")
.getHTML({ includeSelectorTag: false });
const expected = fs.readFileSync(
`${import.meta.dirname}/expected.html`,
"utf8",
Expand Down
4 changes: 3 additions & 1 deletion web/packages/selfhosted/test/polyfill/iframes_onload/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ describe("iframe onload", () => {
await injectRuffleAndWait(browser);
await browser.$("<div />").waitForExist();

const actual = await browser.$("#container").getHTML(false);
const actual = await browser
.$("#container")
.getHTML({ includeSelectorTag: false });
const expected = fs.readFileSync(
`${import.meta.dirname}/expected.html`,
"utf8",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ describe("Flash inside iframe with provided ruffle", () => {
await browser.switchToFrame(await browser.$("#test-frame"));
await browser.$("<ruffle-object />").waitForExist();

const actual = await browser.$("#test-container").getHTML(false);
const actual = await browser
.$("#test-container")
.getHTML({ includeSelectorTag: false });
const expected = fs.readFileSync(
`${import.meta.dirname}/expected.html`,
"utf8",
Expand All @@ -37,7 +39,9 @@ describe("Flash inside iframe with provided ruffle", () => {
await browser.switchToFrame(await browser.$("#test-frame"));
await browser.$("<ruffle-object />").waitForExist();

const actual = await browser.$("#test-container").getHTML(false);
const actual = await browser
.$("#test-container")
.getHTML({ includeSelectorTag: false });
const expected = fs.readFileSync(
`${import.meta.dirname}/expected.html`,
"utf8",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ describe("Object with case-insensitive MIME type", () => {
await injectRuffleAndWait(browser);
await browser.$("<ruffle-object />").waitForExist();

const actual = await browser.$("#test-container").getHTML(false);
const actual = await browser
.$("#test-container")
.getHTML({ includeSelectorTag: false });
const expected = fs.readFileSync(
`${import.meta.dirname}/expected.html`,
"utf8",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ describe("Object with case-insensitive clsid", () => {
await injectRuffleAndWait(browser);
await browser.$("<ruffle-object />").waitForExist();

const actual = await browser.$("#test-container").getHTML(false);
const actual = await browser
.$("#test-container")
.getHTML({ includeSelectorTag: false });
const expected = fs.readFileSync(
`${import.meta.dirname}/expected.html`,
"utf8",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ describe("Object with clsid and embed", () => {

it("polyfills with ruffle", async () => {
await injectRuffleAndWait(browser);
const actual = await browser.$("#test-container").getHTML(false);
const actual = await browser
.$("#test-container")
.getHTML({ includeSelectorTag: false });
const expected = fs.readFileSync(
`${import.meta.dirname}/expected.html`,
"utf8",
Expand Down
4 changes: 3 additions & 1 deletion web/packages/selfhosted/test/polyfill/object_data/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ describe("Object with only data attribute", () => {
await injectRuffleAndWait(browser);
await browser.$("<ruffle-object />").waitForExist();

const actual = await browser.$("#test-container").getHTML(false);
const actual = await browser
.$("#test-container")
.getHTML({ includeSelectorTag: false });
const expected = fs.readFileSync(
`${import.meta.dirname}/expected.html`,
"utf8",
Expand Down
4 changes: 3 additions & 1 deletion web/packages/selfhosted/test/polyfill/object_default/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ describe("Object tag", () => {

it("polyfills with ruffle", async () => {
await injectRuffleAndWait(browser);
const actual = await browser.$("#test-container").getHTML(false);
const actual = await browser
.$("#test-container")
.getHTML({ includeSelectorTag: false });
const expected = fs.readFileSync(
`${import.meta.dirname}/expected.html`,
"utf8",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ describe("Object with another object tag", () => {

it("polyfills only the first tag with ruffle", async () => {
await injectRuffleAndWait(browser);
const actual = await browser.$("#test-container").getHTML(false);
const actual = await browser
.$("#test-container")
.getHTML({ includeSelectorTag: false });
const expected = fs.readFileSync(
`${import.meta.dirname}/expected.html`,
"utf8",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ describe("Object using classid with another object tag without classid", () => {

it("polyfills only the second tag with ruffle", async () => {
await injectRuffleAndWait(browser);
const actual = await browser.$("#test-container").getHTML(false);
const actual = await browser
.$("#test-container")
.getHTML({ includeSelectorTag: false });
const expected = fs.readFileSync(
`${import.meta.dirname}/expected.html`,
"utf8",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ describe("Object tag", () => {

it("polyfills with ruffle", async () => {
await injectRuffleAndWait(browser);
const actual = await browser.$("#test-container").getHTML(false);
const actual = await browser
.$("#test-container")
.getHTML({ includeSelectorTag: false });
const expected = fs.readFileSync(
`${import.meta.dirname}/expected.html`,
"utf8",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ describe("Object tag", () => {

it("polyfills with ruffle", async () => {
await injectRuffleAndWait(browser);
const actual = await browser.$("#test-container").getHTML(false);
const actual = await browser
.$("#test-container")
.getHTML({ includeSelectorTag: false });
const expected = fs.readFileSync(
`${import.meta.dirname}/expected.html`,
"utf8",
Expand Down
4 changes: 3 additions & 1 deletion web/packages/selfhosted/test/polyfill/object_ie_only/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ describe("Object for old IE must work everywhere", () => {

it("polyfills with ruffle", async () => {
await injectRuffleAndWait(browser);
const actual = await browser.$("#test-container").getHTML(false);
const actual = await browser
.$("#test-container")
.getHTML({ includeSelectorTag: false });
const expected = fs.readFileSync(
`${import.meta.dirname}/expected.html`,
"utf8",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ describe("Object inside audio node", () => {

it("doesn't polyfill with ruffle", async () => {
await injectRuffleAndWait(browser);
const actual = await browser.$("#test-container").getHTML(false);
const actual = await browser
.$("#test-container")
.getHTML({ includeSelectorTag: false });
const expected = fs.readFileSync(
`${import.meta.dirname}/expected.html`,
"utf8",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ describe("Object without data attribute", () => {

it("doesn't polyfill with ruffle", async () => {
await injectRuffleAndWait(browser);
const actual = await browser.$("#test-container").getHTML(false);
const actual = await browser
.$("#test-container")
.getHTML({ includeSelectorTag: false });
const expected = fs.readFileSync(
`${import.meta.dirname}/expected.html`,
"utf8",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ describe("Object without type attribute", () => {

it("polyfills with ruffle", async () => {
await injectRuffleAndWait(browser);
const actual = await browser.$("#test-container").getHTML(false);
const actual = await browser
.$("#test-container")
.getHTML({ includeSelectorTag: false });
const expected = fs.readFileSync(
`${import.meta.dirname}/expected.html`,
"utf8",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ describe("Object without type and classid attributes", () => {

it("polyfills with ruffle", async () => {
await injectRuffleAndWait(browser);
const actual = await browser.$("#test-container").getHTML(false);
const actual = await browser
.$("#test-container")
.getHTML({ includeSelectorTag: false });
const expected = fs.readFileSync(
`${import.meta.dirname}/expected.html`,
"utf8",
Expand Down
Loading

0 comments on commit 35becf4

Please sign in to comment.