Skip to content

Conversation

@pkalsi97
Copy link

@pkalsi97 pkalsi97 commented Dec 11, 2025

What?

Address pending review comments from PR #5075

  • Use ErrElementNotVisible sentinel error in stepIntoFrame
  • Move FrameLocator type to locator.go for better organization

Why?

Follow-up from Issue #5129

Checklist

  • I have performed a self-review of my code.
  • I have commented on my code, particularly in hard-to-understand areas.
  • I have added tests for my changes.
  • I have run linter and tests locally (make check) and all pass.

Checklist: Documentation (only for k6 maintainers and if relevant)

Please do not merge this PR until the following items are filled out.

  • I have added the correct milestone and labels to the PR.
  • I have updated the release notes: link
  • I have updated or added an issue to the k6-documentation: grafana/k6-docs#NUMBER if applicable
  • I have updated or added an issue to the TypeScript definitions: grafana/k6-DefinitelyTyped#NUMBER if applicable

Related PR(s)/Issue(s)

PR: #5075
Closes #5129

- Use ErrElementNotVisible sentinel error in stepIntoFrame
- Add newPageWithIFrameSrcdoc test helper utility
- Move FrameLocator type to locator.go for better organization
@pkalsi97 pkalsi97 requested a review from a team as a code owner December 11, 2025 12:31
@pkalsi97 pkalsi97 requested review from codebien and mstoykov and removed request for a team December 11, 2025 12:31
@mstoykov mstoykov requested review from ankur22 and removed request for mstoykov December 12, 2025 08:13
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.

@pkalsi97 thanks for picking up this refactoring issue! 🙇

You've covered two of the comments from the PR review comments well.

I think you will need to revisit the test one though -- to do with the newPageWithIFrameSrcdoc function.

Also a nit: next time it would be a bit easier if each of those review comments were tackled in separate commits.

@pkalsi97
Copy link
Author

@ankur22 Thanks for the review, I'll keep this in mind from now onwards!

@pkalsi97 pkalsi97 requested a review from ankur22 December 16, 2025 11:18
@pkalsi97 pkalsi97 temporarily deployed to azure-trusted-signing December 16, 2025 11:51 — with GitHub Actions Inactive
@pkalsi97 pkalsi97 temporarily deployed to azure-trusted-signing December 16, 2025 11:53 — with GitHub Actions Inactive
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.

Refactor frameLocator changes based on PR comments

2 participants