add ability to skip cypress tests based on framework #16285
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue: N/A
What I did
This PR adds a way to skip certain specs based on frameworks, such as skipping dynamic rendering spec on
vue3
, which does not have dynamic rendering.The command uses
name
which is defined in here like this.How to test
Clone the repo
Install the deps
Spin up verdaccio:
yarn local-registry --port 6000 --open --publish
On another terminal, run
yarn test:e2e-framework
and select vue3Select addon-docs spec
It should skip vue3, but should run for other frameworks
Is this testable with Jest or Chromatic screenshots?
Does this need a new example in the kitchen sink apps?
Does this need an update to the documentation? As a followup, we should have an "E2E testing" improvement story so we can iron out some frustrations when running stuff locally + add some guidance docs.
If your answer is yes to any of these, please make sure to include it in your PR.