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

Modifiy cyrpess generator #124

Open
shairez opened this issue Apr 9, 2023 · 2 comments
Open

Modifiy cyrpess generator #124

shairez opened this issue Apr 9, 2023 · 2 comments

Comments

@shairez
Copy link
Contributor

shairez commented Apr 9, 2023

When cypress configures an app for component testing, it adds these 3 files under the support folder:

https://github.com/qwikifiers/qwik-ui/tree/main/packages/headless/cypress/support

and add the following configuration to the cypress..config.ts -
https://github.com/qwikifiers/qwik-ui/blob/main/packages/headless/cypress.config.ts#L6

Then we (currently manually) do the following steps:

  1. Add the addQwikLoader() -
    https://github.com/qwikifiers/qwik-ui/blob/main/packages/headless/cypress/support/component.ts#L18

  2. Add the mount command (this line all the way to the bottom of the file) -

https://github.com/qwikifiers/qwik-ui/blob/main/packages/headless/cypress/support/component.ts#L28

@intellix
Copy link
Contributor

Is it possible to generate a cypress project? When running the e2e-project generator it uses playwright and other than that I don't see anything particular to Cypress: https://github.com/qwikifiers/qwik-nx/blob/main/packages/qwik-nx/generators.json#L48

@dmitry-stepanenko
Copy link
Contributor

@intellix you should be able to use it with the --e2eTestRunner=cypress flag

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

3 participants