qahive / robotframework-puppeteer

Puppeteer Web testing library for Robot Framework
Apache License 2.0
56 stars 14 forks source link

Bump playwright from 1.17.2 to 1.18.0 #151

Closed dependabot[bot] closed 2 years ago

dependabot[bot] commented 2 years ago

Bumps playwright from 1.17.2 to 1.18.0.

Release notes

Sourced from playwright's releases.

v1.18.0

API Testing

Playwright for Python 1.18 introduces new API Testing that lets you send requests to the server directly from Python! Now you can:

  • test your server API
  • prepare server side state before visiting the web application in a test
  • validate server side post-conditions after running some actions in the browser

To do a request on behalf of Playwright's Page, use new page.request API:

# Do a GET request on behalf of page
res = page.request.get("http://example.com/foo.json")

Read more in our documentation.

Web-First Assertions

Playwright for Python 1.18 introduces Web-First Assertions.

Consider the following example:

from playwright.sync_api import Page, expect

def test_status_becomes_submitted(page: Page) -> None: # .. page.click("#submit-button") expect(page.locator(".status")).to_have_text("Submitted")

Playwright will be re-testing the node with the selector .status until fetched Node has the "Submitted" text. It will be re-fetching the node and checking it over and over, until the condition is met or until the timeout is reached. You can pass this timeout as an option.

Read more in our documentation.

Locator Improvements

... (truncated)

Commits
  • 4e1113c chore: provide driver with the host-lang version (#1107)
  • 8c5aaf8 chore: roll Playwright to 1.18.0-beta-1642508722000
  • b23ec2a test: fix pytest asyncio deprecation warnings (#1110)
  • 23fe701 chore: bump dev dependencies (#1108)
  • c16481b fix: don't use closed stderr when launching driver process (#1100)
  • cfea04a build(deps): bump pillow from 8.3.2 to 9.0.0 (#1101)
  • d49ab6e chore: fix requestFinished event when response was null (#1086)
  • fe03f73 Update bug.md
  • 13c0718 Update and rename feature_request.yml to feature_request.md
  • b324a61 Update and rename bug.yml to bug.md
  • Additional commits viewable in compare view


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
dependabot[bot] commented 2 years ago

Superseded by #152.