Skip to content
This repository has been archived by the owner on Sep 3, 2024. It is now read-only.

Implement e2e testing #7

Open
IanMayo opened this issue Mar 24, 2018 · 2 comments
Open

Implement e2e testing #7

IanMayo opened this issue Mar 24, 2018 · 2 comments

Comments

@IanMayo
Copy link
Collaborator

IanMayo commented Mar 24, 2018

We should produce some "demonstration" e2e tests. Then we can follow that model as the app grows.

The developer for this issue should do some research on e2e frameworks, then look at our app and give a list of the types of things to be covered by e2e testing.

Once that's all agreed the developer can start implementing the tests.

Thoughts for E2E testing

  • App loads, force load of reference UI, verify categories/entries defined
  • Click on particular button, check modal dialog opens
  • Cancel modal dialog, check narrative listing still empty
  • Trigger event again, enter insufficient data, Accept disabled
  • Provide sufficient data, Accept enabled, press Accept. Verify new entry in Narrative
@Morphexe
Copy link
Contributor

This is basically what I have been doing on the unit tests.
There is even a testing feature where you take a snapshot of the component, and the test is "does the component look the same?" if it changes, it won't pass. (you can create new snaps when you want)

You can also simulate clicks, keypress, etc, with Jest and Enzyme which I think would cover most if not all the situations.

The current implemented tests are pretty simple, but I could work on doing more robust unit tests, and design some 2e2 tests if its required.

@IanMayo
Copy link
Collaborator Author

IanMayo commented Mar 31, 2018

Thanks for the advice. Let's defer this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants