-
Notifications
You must be signed in to change notification settings - Fork 226
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
Refactor the BrowserContext
class docs for xk6-browser
#723
Refactor the BrowserContext
class docs for xk6-browser
#723
Conversation
BrowserContext
class docs for xk6-browserBrowserContext
class docs for xk6-browser
b4e7cf8
to
b2e2387
Compare
218bb75
to
f428e5b
Compare
BrowserContext
class docs for xk6-browserBrowserContext
class docs for xk6-browser
b2e2387
to
fdaa317
Compare
4ede109
to
5caa62a
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.
👏 LGTM with some suggestions.
And, some questions:
- What are we going to do about
"// FIXME: This is interpreted as 16m40s. Wrong JS->Go conversion."
comment in thesetDefaultTimeout
example (also in some others)? Should we remove it? - We might want to kill the link to
unroute
. - Should we remove the missing APIs as we did in your other PRs?
src/data/markdown/docs/30 xk6-browser/01 xk6-browser/02 BrowserContext.md
Outdated
Show resolved
Hide resolved
src/data/markdown/docs/30 xk6-browser/01 xk6-browser/02 BrowserContext.md
Outdated
Show resolved
Hide resolved
src/data/markdown/docs/30 xk6-browser/01 xk6-browser/02 BrowserContext.md
Outdated
Show resolved
Hide resolved
src/data/markdown/docs/30 xk6-browser/01 xk6-browser/02 BrowserContext.md
Outdated
Show resolved
Hide resolved
src/data/markdown/docs/30 xk6-browser/01 xk6-browser/02 BrowserContext.md
Outdated
Show resolved
Hide resolved
src/data/markdown/docs/30 xk6-browser/01 xk6-browser/02 BrowserContext/setOffline.md
Show resolved
Hide resolved
src/data/markdown/docs/30 xk6-browser/01 xk6-browser/02 BrowserContext/setOffline.md
Outdated
Show resolved
Hide resolved
| [BrowserContext.newPage()](/javascript-api/xk6-browser/browsercontext/newpage) | Creates a new [page](/javascript-api/xk6-browser/page) inside this `BrowserContext`. | | ||
| <BWIPT id="444"/> [BrowserContext.pages()](/javascript-api/xk6-browser/browsercontext/pages) | Returns a list of [page](/javascript-api/xk6-browser/page)s inside this `BrowserContext`. | | ||
| <BWIPT id="445"/> [BrowserContext.setDefaultNavigationTimeout(timeout)](/javascript-api/xk6-browser/browsercontext/setdefaultnavigationtimeout) | Sets the default navigation timeout in milliseconds. | | ||
| <BWIPT id="456"/> [BrowserContext.setDefaultTimeout(timeout)](/javascript-api/xk6-browser/browsercontext/setdefaulttiontimeout) | Sets the default maximum timeout in milliseconds. | |
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.
By the way, the link should be:
/javascript-api/xk6-browser/browsercontext/setdefaulttimeout/
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.
Resolved by: 5330622
These have been recorded as issues and the comments removed from the examples:
The link to this has been removed in the PR -- unless i'm missing something?
Should have been removed already -- did i miss any? |
02f0e2f
to
fcef57f
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.
LGTM 👍 Nice work!
51e5ae0
to
7928525
Compare
- Double checked the workding - Tested features and linked to issues where necessary. closes: grafana/xk6-browser#441
Co-authored-by: İnanç Gümüş <[email protected]>
Co-authored-by: İnanç Gümüş <[email protected]>
b9e5ba7
to
0aa0a2a
Compare
Closes: grafana/xk6-browser#441
All features for the
BrowserContext
class were tested on: