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
[Test]: Set up E2E testing #20
Comments
Do you mean when consumers use the |
Internal for this project to validate against those test runners, but I'd like to eventually generate one with a new project also. I don't personally have a strong preference over what the default would be but I do know that Vite integration opens up the possibility of better integration with Playwright |
Okay, so this issue is about end-to-end test suites for the |
I've been setting up Cypress end-to-end tests and here is what I found. Targets in
|
As we don't have a custom executor/builder for Vite yet, which I'm intentionally holding off on, my preference for the given options would be the second one using |
Why is that? 🙂 Is it not something that a feature request could be opened for that could be tagged with help wanted? |
I put some thoughts up here https://twitter.com/brandontroberts/status/1555598666278359042 I'm not opposed to have an executor/builder for Vite/Vitest but it would be very thin as I don't want to cover up the Vite config behind a wall of JSON config |
Seems like Nxext has Vite and Vitest executors 👀 |
@brandonroberts |
I can pick up the Playwright tests if you want. |
According to @brandonroberts |
I used |
@timdeschryver I think it would be a noteworthy novelty to showcase a full Vitest + Playwright + Angular setup. |
I agree, a full Vitest + Playwright example would be a good start. I did some testing with the experimental component tests using Playwright and the Vite plugin also and it works as expected with standalone components. |
Cypress Component Tests which support Angular as of Cypress version 10.5 also use Vite as test runner/development server as far as I'm aware. What are the experimental component tests you are referring to, @brandonroberts? |
Here's the link to the docs |
@LayZeeDK first it used the @playwright/test runner/assertions. Now, it uses vitest to run the tests, and the assertions by vitest. |
Setup E2E suites for
The text was updated successfully, but these errors were encountered: