-
-
Notifications
You must be signed in to change notification settings - Fork 809
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
web: Update WebdriverIO to 9.2.2, resolving advisory in ws
#17539
web: Update WebdriverIO to 9.2.2, resolving advisory in ws
#17539
Conversation
5857258
to
75b408f
Compare
75b408f
to
5680a02
Compare
Added |
There's a lot more files that would need to be changed. A simpler way to fix this might be to change all the functions in https://github.com/ruffle-rs/ruffle/blob/master/web/packages/selfhosted/test/utils.ts that take a WebdriverIO.Element to take a ChainablePromiseElement, and then add a |
The other needed change is |
Linux command for that change could maybe be this: grep -rl 'getHTML(false' | xargs sed -i 's/getHTML(false/getHTML({"includeSelectorTag": false}/g' |
While we can change the code to use the new definitions for |
Is it possible that the |
You can use https://github.com/webdriverio/webdriverio/blob/main/packages/webdriverio/src/types.ts#L70 |
5680a02
to
7c52db6
Compare
We'll need to consult the documentation for this one. https://github.com/webdriverio/webdriverio/releases/tag/v9.0.0 does mention better type definitions for capabilities as a breaking change. |
7c52db6
to
e59bcfa
Compare
Yep, and all the examples I've seen for this use a plain object for |
bee03b9
to
8dc02c5
Compare
Errors seem to be:
|
Technically, |
8dc02c5
to
35becf4
Compare
Let's try that! |
Note: If that's the issue, the same will be true of |
Nah, the error seems unrelated to that: https://github.com/ruffle-rs/ruffle/actions/runs/10424284257/job/28872786614?pr=17539#step:11:16287:
I also tried these commands locally: cd web/packages/selfhosted/test/
grep -rl '<ruffle-object />' | xargs sed -i 's/<ruffle-object \/>/ruffle-object/g'
grep -rl '<ruffle-embed />' | xargs sed -i 's/<ruffle-embed \/>/ruffle-embed/g'
grep -rl '<ruffle-object>' | xargs sed -i 's/<ruffle-object>/ruffle-object/g' After that, I tested this locally with this command:
I still got errors. |
Actually, my errors are as follows:
Which is different to the current errors. |
Required commands: cd web/packages/selfhosted/test/
grep -rl '<ruffle-object />' | xargs sed -i 's/<ruffle-object \/>/ruffle-object/g'
grep -rl '<ruffle-embed />' | xargs sed -i 's/<ruffle-embed \/>/ruffle-embed/g'
grep -rl '<ruffle-object>' | xargs sed -i 's/<ruffle-object>/ruffle-object/g'
grep -rl '<div />' | xargs sed -i 's/<div \/>/div/g'
grep -rl 'includeSelectorTag: false' | xargs sed -i 's/includeSelectorTag: false/includeSelectorTag: false, pierceShadowRoot: false/g'
npm run format Even then, some things still need updates. |
94770db
to
a067ead
Compare
2cb3e47
to
c00bffc
Compare
Note: This is now waiting on a fix for webdriverio/webdriverio#13763 |
ce068b9
to
a86adcd
Compare
The workaround is no longer needed with wdio 9.2.2, it seems! 🎉 @danielhjacobs |
a86adcd
to
e0540fd
Compare
e0540fd
to
201c2e6
Compare
ws
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small caveat: I didn't read package-lock.json, as the changes there are incredibly long. We should probably re-generate it soon anyway though, I'm sure it's getting out of date.
I did exactly that:
|
Ah, I guess that's why the changes are so long. |
Partly, but there were some major dependency overhauls on wdio 9 itself as well. |
Resolving a security advisory in the `ws` indirect dependency. Necessary manual changes: - Follow `getHTML` API change. - Take `ChainablePromiseElement` in utility functions. - Change `config` to `WebdriverIO.Config`. - Use `switchFrame` instead of `switchToFrame`.
201c2e6
to
b9f695e
Compare
Although I don't love the messages about the unsupported |
Following the dependency chain down, this is the issue, right: mochajs/mocha#5148? |
Probably, and maybe something else as well. |
Bumps ws to 8.18.0 and updates ancestor dependencies ws, @wdio/browserstack-service, @wdio/cli, @wdio/local-runner and webdriverio. These dependencies need to be updated together.
Updates
ws
from 8.16.0 to 8.18.0Release notes
Sourced from ws's releases.
... (truncated)
Commits
976c53c
[dist] 8.18.059b9629
[feature] Add support forBlob
(#2229)0d1b5e6
[security] Use more descriptive text for 2017 vulnerability link15f11a0
[security] Add new DoS vulnerability to SECURITY.md3c56601
[dist] 8.17.1e55e510
[security] Fix crash when the Upgrade header cannot be read (#2231)6a00029
[test] Increase code coverageddfe4a8
[perf] Reduce the amount ofcrypto.randomFillSync()
callsb73b118
[dist] 8.17.029694a5
[test] Use thehighWaterMark
variableUpdates
@wdio/browserstack-service
from 8.40.2 to 9.0.2Release notes
Sourced from
@wdio/browserstack-service
's releases.... (truncated)
Changelog
Sourced from
@wdio/browserstack-service
's changelog.... (truncated)
Commits
e8ae5d8
v9.0.2ae8ff7e
fix(@wdio/browserstack-service
): support v9 of WebdriverIO (#13374)2a869e5
v9.0.19576934
v9.0.0d0cfc16
V9 ai support (#13340)80779bb
breaking(build): migrate to Esbuild for bundling (#13338)6376d1e
fix(docs): change file name of license from LICENSE-MIT to just LICENSE9dbc8bf
fix(webdriverio): remove ts compile issue33222e0
Support app inside appium options (v9) (#13113)e5e157e
chore: Reload session support (#13085)Updates
@wdio/cli
from 8.40.2 to 9.0.1Release notes
Sourced from
@wdio/cli
's releases.... (truncated)
Changelog
Sourced from
@wdio/cli
's changelog.... (truncated)
Commits
2a869e5
v9.0.19576934
v9.0.0a19519f
feat(webdriverio): support (se/de)serialization of execute parameters (#13333)b4cb9e5
chore(deps): bump inquirer from 9.3.6 to 10.1.8 (#13348)80779bb
breaking(build): migrate to Esbuild for bundling (#13338)6376d1e
fix(docs): change file name of license from LICENSE-MIT to just LICENSE9dbc8bf
fix(webdriverio): remove ts compile issue4ffb3b9
fix(ci): revert inquirer update65412c2
chore(deps): bump inquirer from 9.3.2 to 10.0.1 (#13168)43868ec
fix(@wdio/types
): define browser and element type to namespaceUpdates
@wdio/local-runner
from 8.40.2 to 9.0.1Release notes
Sourced from
@wdio/local-runner
's releases.... (truncated)
Changelog
Sourced from
@wdio/local-runner
's changelog.... (truncated)
Commits
2a869e5
v9.0.19576934
v9.0.0a19519f
feat(webdriverio): support (se/de)serialization of execute parameters (#13333)80779bb
breaking(build): migrate to Esbuild for bundling (#13338)c81171c
chore(testing): update Vitest to v26376d1e
fix(docs): change file name of license from LICENSE-MIT to just LICENSE3a7b08e
breaking(*): better type definitions for capabilities (#12987)c18713b
chore(@wdio/local-runner
): fix linting963ddb9
feat: replacets-node
withtsx
, remove autoCompileOpts (#12752)a46cea2
Support mocking interface for Bidi (#12598)Updates
webdriverio
from 8.40.2 to 9.0.1Release notes
Sourced from webdriverio's releases.
... (truncated)
Changelog
Sourced from webdriverio's changelog.