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

chore: update webdriverio to 8.21.0 #803

Merged
merged 1 commit into from
Jan 10, 2024
Merged

Conversation

DudaGod
Copy link
Member

@DudaGod DudaGod commented Nov 8, 2023

No description provided.

package.json Outdated
@@ -74,7 +74,7 @@
"urijs": "^1.19.11",
"url-join": "^4.0.1",
"uuid": "^9.0.1",
"webdriverio": "8.13.4",
"webdriverio": "8.22.0",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Использую exact версию так как в прошлый раз версия 8.14.0 сломала корректность работы hermione

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Тут обновил до 8.21, а не 8.22 (вышла сегодня). Так как в 8.22 выгасили тип matches, который у нас используется в openAndWait и добавили депрекейшн варнинги для jsonwp команд.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Оказалось 8.21 тоже немогу поставить (выехал только 6 дней назад). Ставлю 8.20.4

@@ -157,7 +157,7 @@ module.exports = class ExistingBrowser extends Browser {
...this._getSessionOptsFromConfig(OPTIONAL_SESSION_OPTS),
...detectedSessionEnvFlags,
...this._config.sessionEnvFlags,
options: _.pick(sessionOpts, "automationProtocol"),
options: sessionOpts,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Проблема была в этом. С версии 8.14.0 опции для подключения к хосту теперь берутся из options.


beforeEach(() => {
({ mkExistingBrowser_: mkBrowser_ } = proxyquire("../utils", {
webdriverio: { attach: wdioAttachStub, "@global": true },
"./client-bridge": { build: sandbox.stub().resolves(), "@global": true },
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Тут пришлось использовать global, иначе нужно было бы писать вложенные proxyquire-ы. Решил, что это меньшее из зол.

assert.calledWithMatch(webdriverio.attach, { foo: "bar" });
await initBrowser_(mkBrowser_(), { sessionOpts });

assert.calledWithMatch(webdriverio.attach, { ...sessionOpts, options: sessionOpts });
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Отдельный тест не стал добавлять, так как эти опции нужно и просто в options прокинуть и дестрктурировать.

@DudaGod DudaGod changed the title chore: update webdriverio to 8.22.0 chore: update webdriverio to 8.21.0 Nov 8, 2023
@DudaGod DudaGod force-pushed the HERMIONE-1242.up_wdio branch 6 times, most recently from 49af9f9 to 7df27f1 Compare November 13, 2023 15:03
@DudaGod DudaGod force-pushed the HERMIONE-1242.up_wdio branch 3 times, most recently from a5d318e to 8a12987 Compare December 28, 2023 08:06
@DudaGod DudaGod force-pushed the HERMIONE-1242.up_wdio branch 2 times, most recently from 94fb291 to cf619df Compare December 28, 2023 11:22
@@ -56,6 +56,7 @@
"clear-require": "^1.0.1",
"date-fns": "^2.29.3",
"debug": "^2.6.9",
"devtools": "8.21.0",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Теперь при использовании automationProtocol: devtools нужно пакет самостоятельно подносить.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А webdriver в wdio уже встроен?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А webdriver в wdio уже встроен?

Да.

Copy link
Member

@KuznetsovRoman KuznetsovRoman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/ok

@@ -56,6 +56,7 @@
"clear-require": "^1.0.1",
"date-fns": "^2.29.3",
"debug": "^2.6.9",
"devtools": "8.21.0",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А webdriver в wdio уже встроен?

@DudaGod DudaGod merged commit 496fae9 into master Jan 10, 2024
2 checks passed
@DudaGod DudaGod deleted the HERMIONE-1242.up_wdio branch January 10, 2024 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants