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

Add E2E tests #73

Open
4 tasks
colorfield opened this issue May 30, 2020 · 0 comments
Open
4 tasks

Add E2E tests #73

colorfield opened this issue May 30, 2020 · 0 comments

Comments

@colorfield
Copy link
Contributor

colorfield commented May 30, 2020

E2E tests could cover the essential features so we are able to refactor in confidence.
They could probably be favoured to php unit tests as they are in general easier to maintain, language agnostic, covers the system as a whole and aims to stay close to user stories.

Cypress (https://www.drupal.org/project/cypress) could be used for that and configured for Travis or Circle CI, ...
As most of the pages are content based (e.g. paragraphs embedding views / features blocks, ...) we might need some fixtures and cannot rely on configuration only.

Proposal for test coverage:

  • As an anonymous user I can create a new user account
  • As an anonymous user when I login, I am redirected to the 'add celebration' page
  • As an authenticated user I can add a video
  • As an authenticated user I can add a photo
  • As an authenticated user I can add an event
  • As an authenticated user the media library is showing only my own media

Use case
As a developer
When I submit a pull request
Then I can check the system status

  • E2E test solution is configured
  • CI service is configured
  • Fixtures are executed as a precondition
  • Tests are being integrated
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

1 participant