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

Implement few end-to-end tests for new features using Cypress #1868

Open
magicznyleszek opened this issue Jul 14, 2018 · 0 comments
Open

Implement few end-to-end tests for new features using Cypress #1868

magicznyleszek opened this issue Jul 14, 2018 · 0 comments
Assignees
Labels
e2e Related to end-to-end tests

Comments

@magicznyleszek
Copy link
Member

magicznyleszek commented Jul 14, 2018

Description

We need some e2e tests. Cypress looks easy enough. These tests should run with CI for PRs.

Propositions

Creating template from scratch

  1. In Library use NEW > Template
  2. Add template name and save it in Form Builder
  3. Verify that the template appears on Library list with Type column value Template

Creating template from imported file

NOTE: this could be harder to implement, because of needing file

  1. In Library use NEW > upload
  2. Choose file that is an exported template
  3. Verify that the template appears on Library list with Type column value Template

Creating template from project

  1. Have at least one project
  2. In Projects use … > Create template on a project
  3. Type the name of template
  4. Verify that the template appears on Library list with Type column value Template

Cloning template

  1. Have at least one template
  2. In Library use Clone action button on a template
  3. Hit OK to use default Clone of X name
  4. Verify that the template appears on Library list with Type column value Template

Creating project - from scratch

  1. In Projects use NEW button
  2. In first modal step choose Build from scratch
  3. Type project name and details
  4. Save it in Form Builder
  5. Verify that the project appears on Projects list under Draft section

Creating project - from template

  1. Have at least one template
  2. In Projects use NEW button
  3. In first modal step choose Use a template
  4. Select and choose a template
  5. Change name and create project
  6. Verify that the project appears on Projects list under Draft section

Creating project - by file upload

NOTE: this could be harder to implement, because of needing file

  1. In Projects use NEW button
  2. In first modal step choose Upload an XLSForm
  3. Upload a file
  4. Change name and create project
  5. Verify that the project appears on Projects list under Draft section

Creating project - by url import

  1. In Projects use NEW button
  2. In first modal step choose Import an XLSForm via URL
  3. Type an url of existing form and import it
  4. Change name and create project
  5. Verify that the project appears on Projects list under Draft section

Replacing project - with template

  1. Have at least one template and project (different names)
  2. In Projects use … > Replace project on a project
  3. In first modal step choose Use a template
  4. Select and choose a template
  5. Verify that the project appears on Projects list under Draft section and has the name of the template

Add REST Service

  1. Have at least one deployed project
  2. Go to project landing, then Settings and REST Services
  3. Use REGISTER A NEW SERVICE button
  4. Fill up the form and CREATE
  5. Verify that the service appears on the list

Edit REST Service

  1. Have at least one deployed project with a service added
  2. Go to project landing, then Settings and REST Services
  3. Use Edit button on a service
  4. Change name in the form and SAVE
  5. Verify that the service appears on the list with name changed

Delete REST Service

  1. Have at least one deployed project with a service added
  2. Go to project landing, then Settings and REST Services
  3. Use Delete button on a service
  4. CONFIRM prompt
  5. Verify that the service does not appear on the list

Count number of REST Service submissions

  1. Have at least one deployed project with a service added
  2. Go to project landing, then Settings and REST Services
  3. Remember the Count column number for the service
  4. Submit new successful form submission
  5. Refresh REST Services view
  6. Verify that the Count column number for the service changed by +1

Retry failed REST Service submission

  1. Have at least one deployed project with a service added
  2. Submit new failed form submission
  3. Go to project landing, then Settings and REST Services
  4. Open service logs view
  5. Verify that the submission is failed (status code)
  6. Make it possible for submission to not fail (?)
  7. Use Retry submission button on failed submission
  8. Wait
  9. Verify that the submission is not failed anymore (status code)

@jnm @pmusaraj @dorey @noliveleger please take a look and let's discuss those on a standup/in flowdock 😮

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
e2e Related to end-to-end tests
Projects
None yet
Development

No branches or pull requests

1 participant