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

Blueprints for test scenarios #174

Open
swissspidy opened this issue Jul 22, 2024 · 2 comments
Open

Blueprints for test scenarios #174

swissspidy opened this issue Jul 22, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@swissspidy
Copy link
Owner

Like #71, but for the test scenarios themselves. A declarative way for navigating to pages and clicking on things

@swissspidy swissspidy added the enhancement New feature or request label Jul 22, 2024
@swissspidy
Copy link
Owner Author

Maybe something like this:

{
  "scenarios": [
    {
      "name": "Homepage LCP",
      "steps": [
        {
          "step": "visit",
          "url": "/"
        }
      ]
    },
    {
      "name": "Search form INP",
      "steps": [
        {
          "step": "visit",
          "url": "/sample-page"
        },
        {
          "step": "getByLabel",
          "arg": "Search"
        },
        {
          "step": "fill",
          "arg": "Lorem ipsum"
        },
        {
          "step": "getByRole",
          "options": {
            "name": "/Search/i"
          }
        },
        {
          "step": "click"
        }
      ]
    }
  ]
}

@swissspidy
Copy link
Owner Author

This could also be useful for warming up caches, switching users, or clearing caches

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