Skip to content

More options for text assertions #626

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

Open
allansson opened this issue Apr 4, 2025 · 0 comments
Open

More options for text assertions #626

allansson opened this issue Apr 4, 2025 · 0 comments
Assignees

Comments

@allansson
Copy link
Collaborator

What?

Add options to do exact matching of element text as well as regular expressions when adding text assertions.

Criteria for considering it done

Users can select how they want to match:

  • Text content matches the value exactly.
  • Text content contains the value.
  • Text content matches a regular expression.

The selected option should be reflected in which assertion in k6-jslib-testing is used in the exported script.

@allansson allansson added this to the Browser Recording milestone Apr 4, 2025
@allansson allansson self-assigned this Apr 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant