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

Update to Async ElementHandle #1598

Merged
merged 40 commits into from
May 29, 2024
Merged

Conversation

inancgumus
Copy link
Member

What?

Update relevant ElementHandle methods from sync to async.

Checklist

  • I have used a meaningful title for the PR.
  • I have described the changes I've made in the "What?" section above.
  • I have performed a self-review of my changes.
  • I have run the npm start command locally and verified that the changes look good.
  • I have made my changes in the docs/sources/next folder of the documentation.
  • I have reflected my changes in the docs/sources/v{most_recent_release} folder of the documentation.
  • I have reflected my changes in the relevant folders of the two previous k6 versions of the documentation (if still applicable to previous versions).

Related PR(s)/Issue(s)

Updates: grafana/xk6-browser#1296

@inancgumus inancgumus added the Area: browser The browser module label May 22, 2024
@inancgumus inancgumus self-assigned this May 22, 2024
@inancgumus inancgumus marked this pull request as ready for review May 22, 2024 11:56
@inancgumus inancgumus requested review from ankur22, heitortsergent and allansson and removed request for heitortsergent May 22, 2024 11:56
@inancgumus inancgumus removed the request for review from heitortsergent May 24, 2024 16:06
Copy link
Contributor

@ankur22 ankur22 left a comment

Choose a reason for hiding this comment

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

Nice work! I may have missed somethings though since there were a lot of changes.

I was able to catch something which need to be reviewed.

+ Remove options from locator.isHidden link
+ Remove options from locator.isVisible link
+ Update page.selector signature
+ Fix elementhandle.setInputFiles formatting
+ Fix locator.dispatchEvent link
+ Fix locator.waitFor notice
@inancgumus inancgumus requested a review from ankur22 May 28, 2024 13:30
@inancgumus
Copy link
Member Author

inancgumus commented May 28, 2024

@ankur22

Nice work! I may have missed somethings though since there were a lot of changes.

Thanks! I've fixed what you could find here.

I've checked everything from scratch and found another issue: setInputFiles didn't have return header. Fixed c417818.

Copy link
Contributor

@ankur22 ankur22 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@allansson allansson left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@inancgumus inancgumus merged commit 85472da into main-browser-async May 29, 2024
2 checks passed
@inancgumus inancgumus deleted the async/elementhandle branch May 29, 2024 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: browser The browser module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants