Open shairez opened 1 year ago
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
@intellix you should be able to use it with the --e2eTestRunner=cypress
flag
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#L6Then we (currently manually) do the following steps:
Add the
addQwikLoader()
- https://github.com/qwikifiers/qwik-ui/blob/main/packages/headless/cypress/support/component.ts#L18Add 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