-
Notifications
You must be signed in to change notification settings - Fork 221
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 k6-browser examples and move browser class to root as a module #1200
Update k6-browser examples and move browser class to root as a module #1200
Conversation
There's a version of the docs published here: https://mdr-ci.staging.k6.io/docs/refs/pull/1200/merge It will be deleted automatically in 30 days. |
a132835
to
3c2307b
Compare
src/data/markdown/translated-guides/en/03 Using k6 browser/01 Overview.md
Outdated
Show resolved
Hide resolved
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.
Thank you @inancgumus! The changes look great. I have made a few suggestions :)
Also, it probably makes sense to merge #1178 to this PR and check with @ankur22.
src/data/markdown/translated-guides/en/03 Using k6 browser/02 Running browser tests.md
Show resolved
Hide resolved
src/data/markdown/translated-guides/en/03 Using k6 browser/02 Running browser tests.md
Outdated
Show resolved
Hide resolved
src/data/markdown/translated-guides/en/03 Using k6 browser/02 Running browser tests.md
Show resolved
Hide resolved
src/data/markdown/translated-guides/en/03 Using k6 browser/02 Running browser tests.md
Show resolved
Hide resolved
src/data/markdown/translated-guides/en/03 Using k6 browser/02 Running browser tests.md
Outdated
Show resolved
Hide resolved
src/data/markdown/translated-guides/en/03 Using k6 browser/02 Running browser tests.md
Outdated
Show resolved
Hide resolved
src/data/markdown/translated-guides/en/03 Using k6 browser/03 Metrics.md
Outdated
Show resolved
Hide resolved
c910c40
to
b9eb766
Compare
src/data/markdown/translated-guides/en/03 Using k6 browser/02 Running browser tests.md
Outdated
Show resolved
Hide resolved
src/data/markdown/translated-guides/en/03 Using k6 browser/02 Running browser tests.md
Outdated
Show resolved
Hide resolved
06cb77d
to
7517419
Compare
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.
A few more comments, but looking good! 🙌🏼
src/data/markdown/docs/02 javascript api/07 k6-experimental/01 browser.md
Outdated
Show resolved
Hide resolved
src/data/markdown/docs/02 javascript api/07 k6-experimental/01 browser/close.md
Outdated
Show resolved
Hide resolved
src/data/markdown/docs/02 javascript api/07 k6-experimental/01 browser/isconnected.md
Outdated
Show resolved
Hide resolved
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.
Overall 👍 Left a couple of questions for your consideration.
src/data/markdown/docs/02 javascript api/07 k6-experimental/01 browser.md
Show resolved
Hide resolved
src/data/markdown/docs/02 javascript api/07 k6-experimental/01 browser/close.md
Show resolved
Hide resolved
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.
Great work @inancgumus ! 👏 Thanks a lot for working on this!
Overall the changes in organization look good to me, I just mentioned a few considerations. Also, I see there are still examples that use the old init/close methods, but I guess it's because this is still in draft 👍
src/data/markdown/translated-guides/en/03 Using k6 browser/02 Running browser tests.md
Outdated
Show resolved
Hide resolved
src/data/markdown/translated-guides/en/03 Using k6 browser/02 Running browser tests.md
Outdated
Show resolved
Hide resolved
src/data/markdown/translated-guides/en/03 Using k6 browser/02 Running browser tests.md
Outdated
Show resolved
Hide resolved
src/data/markdown/docs/02 javascript api/07 k6-experimental/01 browser.md
Outdated
Show resolved
Hide resolved
src/data/markdown/docs/02 javascript api/07 k6-experimental/01 browser.md
Outdated
Show resolved
Hide resolved
src/data/markdown/docs/02 javascript api/07 k6-experimental/01 browser/close.md
Show resolved
Hide resolved
src/data/markdown/docs/02 javascript api/07 k6-experimental/01 browser/on--event--.md
Outdated
Show resolved
Hide resolved
src/data/markdown/translated-guides/en/03 Using k6 browser/01 Overview.md
Show resolved
Hide resolved
src/data/markdown/translated-guides/en/03 Using k6 browser/02 Running browser tests.md
Outdated
Show resolved
Hide resolved
src/data/markdown/translated-guides/en/03 Using k6 browser/02 Running browser tests.md
Outdated
Show resolved
Hide resolved
Resolves: #1200 (comment) Resolves: #1200 (comment) Resolves: #1200 (comment)
Resolves: #1200 (comment) Resolves: #1200 (comment) Resolves: #1200 (comment)
Resolves: #1200 (comment) Resolves: #1200 (comment) Resolves: #1200 (comment)
Resolves: #1200 (comment) Resolves: #1200 (comment) Resolves: #1200 (comment)
This PR updates k6-browser examples to the new API (
browser.newPage
) and movesBrowser
class as a module to the root page. 🚨 Check out the issue for the remaining tasks. I'll deal with them in another PR. Let's merge this to prevent merge conflicts.