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

wip: Upgrade to webdriverio 9 #100

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

wip: Upgrade to webdriverio 9 #100

wants to merge 2 commits into from

Conversation

gethinwebster
Copy link
Member

Issue #, if available: AWSUI-51276

Description of changes:
WIP of upgrading to webdriverio. However, some outstanding bugs need to be fixed on webdriverio side before this can continue:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@gethinwebster gethinwebster requested a review from a team as a code owner August 23, 2024 09:04
@gethinwebster gethinwebster requested review from michaeldowseza and removed request for a team August 23, 2024 09:04
Copy link

codecov bot commented Aug 23, 2024

Codecov Report

Attention: Patch coverage is 88.09524% with 5 lines in your changes missing coverage. Please review.

Project coverage is 92.32%. Comparing base (6a60336) to head (4ba1199).

Files Patch % Lines
src/page-objects/base.ts 87.50% 4 Missing ⚠️
src/page-objects/full-page-screenshot.ts 75.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #100      +/-   ##
==========================================
+ Coverage   91.11%   92.32%   +1.21%     
==========================================
  Files          18       18              
  Lines         394      391       -3     
  Branches       63       55       -8     
==========================================
+ Hits          359      361       +2     
+ Misses         31       30       -1     
+ Partials        4        0       -4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -52,7 +53,8 @@ export default abstract class BrowserCreator {
await browser.setTimeout({ implicit: options.implicitTimeout, script: options.scriptTimeout });

if (!browser.isMobile) {
await browser.$('body').then(body => body.moveTo({ xOffset: 0, yOffset: 0 }));
const body = await browser.$('//body');
body.moveTo({ xOffset: 0, yOffset: 0 });
Copy link
Member

Choose a reason for hiding this comment

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

What is the return of moveTo? Is it a promise?

Copy link
Member Author

Choose a reason for hiding this comment

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

ah good catch! webdriverio 9 does a lot more promise chaining magic under the hood, so it might be that it handles this anyway, but makes sense to make it more explicit

@gethinwebster gethinwebster marked this pull request as draft October 17, 2024 06:42
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.

3 participants