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 xk6-browser docs for release v0.5.0 #789

Merged
merged 102 commits into from
Sep 8, 2022

Conversation

ppcano and others added 30 commits September 6, 2022 11:57
Unfortunately, links in h3s are not supported :-/
- Finish the browser.newContext list
- Started on browser.newPage
+ Removes descriptions of missing APIs (See:
  #508 (comment))
+ Formats input and return value tables for all.
+ Adds a link for browser.close so that the link in browser.on
  description works.
+ Updates browser.on() to browser.on('disconnected') per Playwright docs
As discussed on Slack, methods with arguments don't work.
For example:
+ browser.on('disconnected') fails the Gatsby server.
+ browser.newContext([options]) has an invalid link on the left
  navigation menu.
+ browser.newPage is similar to newContext.

We need to figure out how to move forward with these problems.
Almost finished. We should fix the navigation link problem, though.
That's why I omitted the input parameters from the headers. It does not
look good—we should fix them.
According to the discussion in #656 .
- Add a column to make it clear which features have been implemented, wip,
or need to be started.
- Add issues in the description for wip features.
- Add the tooltip to the emoji to descrive what it means.
- If there is an issue open for the feature then link to it from the
  emoji.
Resolves: #722 (comment)
By highlighting what isn't implemented and what is WIP, it makes it
clearer for the reader to know what does work. Eventually all emojis
will disappear signifying a fully functioning class.
Resolves: #722 (comment)
It's only worth documenting what works and what is WIP. We've already
mentioned that we're rough compatibility with playwright, and not
replicating it fully.
Resolves: #722 (comment)
Also ensure that the example in newPage options page uses the correct
method (browser.newPage()) instead of working with the context.
@ankur22 ankur22 force-pushed the docs/582-xk6-browser branch from 938e088 to 72baf02 Compare September 6, 2022 17:23
ankur22 and others added 2 commits September 6, 2022 18:25
Co-authored-by: Marie Cruz <mdcruz@users.noreply.github.com>
@ankur22 ankur22 requested a review from mdcruz September 6, 2022 17:49
@ankur22 ankur22 changed the title Docs/582 xk6 browser Update xk6-browser docs for release v0.5.0 Sep 7, 2022
ankur22 and others added 7 commits September 7, 2022 12:08
Now that we import chromium, which is essentially a BrowserType, we
should document that as a separate class type and move it out of the
landing page. In the landing page we should document the top level
properties.

Closes: grafana/xk6-browser#486
Co-authored-by: Ivan Mirić <ivan.miric@grafana.com>
Add the missing methods for BrowserType. Some of the methods have not
been implemented so leave them as WIP. Also move the options and return
details for each of the methods into their own page. This change will
also make it consistent with the other classes.

Resolves: /~https://github.com/grafana/k6-docs/pull/788/files#r963406887
Copy link
Contributor

@imiric imiric left a comment

Choose a reason for hiding this comment

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

Great work @ankur22! 👏

Let's wait until #788 is merged, and then let's merge this one.

Copy link
Member

@inancgumus inancgumus left a comment

Choose a reason for hiding this comment

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

LGTM (@ankur22 👏😄) with some suggestions.

ankur22 and others added 3 commits September 8, 2022 11:44
Document the BrowserType class in its own page and document the top level module properties on the landing page
Co-authored-by: İnanç Gümüş <inanc.gumus@grafana.com>
@ankur22 ankur22 force-pushed the docs/582-xk6-browser branch from 7d95d3e to 2c107a1 Compare September 8, 2022 13:20
@ankur22 ankur22 merged commit e943abc into xk6-browser-new-format Sep 8, 2022
@ankur22 ankur22 deleted the docs/582-xk6-browser branch September 8, 2022 13:21
@ankur22 ankur22 restored the docs/582-xk6-browser branch September 8, 2022 13:25
ankur22 added a commit that referenced this pull request Sep 8, 2022
@inancgumus inancgumus added the Area: browser The browser module label Aug 14, 2023
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.

6 participants