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

Implement missing non-retrying assertions #5

Open
15 tasks
oleiade opened this issue Jan 28, 2025 · 0 comments
Open
15 tasks

Implement missing non-retrying assertions #5

oleiade opened this issue Jan 28, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@oleiade
Copy link
Member

oleiade commented Jan 28, 2025

As we move forward, we aim to get as close as possible to parity with Playwright retrying assertions and their behavior.

The following task list contains the non-retrying assertion matchers that are still to be implemented in the library:

  • expect(value).toContain(): String contains a substring
  • expect(value).toContain(): Array or set contains an element
  • expect(value).toContainEqual(): Array or set contains a similar element
  • expect(value).toHaveProperty(): Object has a property
  • expect(value).toMatch(): String matches a regular expression
  • expect(value).toMatchObject(): Object contains specified properties
  • expect(value).toStrictEqual(): Value is similar, including property types
  • expect(value).toThrow(): Function throws an error
  • expect(value).any(): Matches any instance of a class/primitive
  • expect(value).anything(): Matches anything
  • expect(value).arrayContaining(): Array contains specific elements
  • expect(value).closeTo(): Number is approximately equal
  • expect(value).objectContaining(): Object contains specific properties
  • expect(value).stringContaining(): String contains a substring
  • expect(value).stringMatching(): String matches a regular expression

When a specific matcher is not implementable, because k6 or the k6 browser module doesn't have the necessary requirements, make sure to create a dedicated issue, and link it in the task list.

@oleiade oleiade added the enhancement New feature or request label Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant