Skip to content

Tags: testing-library/playwright-testing-library

Tags

v4.5.0

Toggle v4.5.0's commit message
docs(readme): add chaining documentation

v4.4.2

Toggle v4.4.2's commit message
build: add package script for running just locator tests

v4.4.1

Toggle v4.4.1's commit message
fix(fixture): support function `TextMatch` argument in queries

v4.4.0

Toggle v4.4.0's commit message
docs(readme): add `Locator` documentation and clarify different APIs

v4.4.0-beta.6

Toggle v4.4.0-beta.6's commit message

Verified

This commit was signed with the committer’s verified signature.
jrolfs Jamie Rolfs
feat(fixture): support `Page` in `within` fixture (returns `Screen`)

Support `Page` in addition to `Locator` in `within()` fixture. When
a `Page` instance is passed to `within()`, a `Screen` instance will be
returned which includes the entire `Page` API in addition to the query
methods.

```ts
test('within page', async ({ page }) => {
  // Passing `page` to `within` returns a `Screen` instance
  const screen = within(page)

  await screen.goto(/* ... */)

  const form = screen.queryByRole('form', {name: 'User'})

  // Passing a `Locator` returns scoped queries
  const {queryByLabelText} = within(form)

  // ...
})
```

v4.4.0-beta.5

Toggle v4.4.0-beta.5's commit message

Verified

This commit was signed with the committer’s verified signature.
jrolfs Jamie Rolfs
fix(fixture): throw correct error when `find*` query times out on vis…

…ibility

v4.4.0-beta.4

Toggle v4.4.0-beta.4's commit message

Verified

This commit was signed with the committer’s verified signature.
jrolfs Jamie Rolfs
docs: add inline documentation for `configure`

v4.4.0-beta.3

Toggle v4.4.0-beta.3's commit message

Verified

This commit was signed with the committer’s verified signature.
jrolfs Jamie Rolfs
docs: add inline documentation for `configure`

v4.4.0-beta.2

Toggle v4.4.0-beta.2's commit message

Verified

This commit was signed with the committer’s verified signature.
jrolfs Jamie Rolfs
test: oops, don't run duplicate test suites

v4.4.0-beta.1

Toggle v4.4.0-beta.1's commit message

Verified

This commit was signed with the committer’s verified signature.
jrolfs Jamie Rolfs
refactor: derive configuration options type for Testing Library types