Skip to content
This repository has been archived by the owner on Jan 31, 2023. It is now read-only.

Moves integration tests over and makes them work again #15

Merged

Conversation

madsnedergaard
Copy link
Member

@madsnedergaard madsnedergaard commented Nov 2, 2022

Description

This duplicates the existing e2e tests, while converting them to TS and setting up commands, plugins, etc. They now work, but obviously fail because we don't have any functionality 😅

While doing this I also set up Cypress Component Testing which works really well, and I think we should consider moving a lot of the current integration tests to component tests instead.

Going all-in on component testing?

I'm even considering if we should go further and use component testing instead of unit tests (with Jest + Testing Library). It feels faster and nicer to work with, but we should explore this more later.

Small comparison:

Kapture.2022-11-02.at.08.28.38.mp4

@tonypls
Copy link

tonypls commented Nov 2, 2022

I think it looks great and I'm mostly sold on going all in

@VIKTORVAV99
Copy link
Member

I think unit tests will always have its place primarily for the non-component stuff but like Tony I am in favor of increasing the test coverage with component testing!

We could even replace some of the e2e tests and just keep the key user navigation scenarios and known edge cases we want to watch out for in the e2e tests.

@madsnedergaard madsnedergaard merged commit 3bc480a into master Nov 4, 2022
@madsnedergaard madsnedergaard deleted the madsnedergaard/ele-1363-duplicate-current-e2e-tests branch November 4, 2022 08:43
@Kongkille Kongkille mentioned this pull request Dec 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants