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

Seedlot Reg Form Step 1 and 3 tests #1040

Closed
3 tasks done
craigyu opened this issue Apr 24, 2024 · 5 comments · Fixed by #1186
Closed
3 tasks done

Seedlot Reg Form Step 1 and 3 tests #1040

craigyu opened this issue Apr 24, 2024 · 5 comments · Fixed by #1186
Assignees
Labels
front-end front-end related task test test related task

Comments

@craigyu
Copy link
Collaborator

craigyu commented Apr 24, 2024

Implement Cypress tests for Step 1 Collection and Step 3 Interim Storage

Make a new Cypress spec file, name it a-class-seedlot-reg-form.cy.ts

Carefully analyze all the interactions can be possibly be done by a user then start implementing.
Make sure to test all possible scenarios, for example:
Image

For this input, the error message should be visible when the value is lower than 0, higher than 10,000 or having more than 3 decimal places.

Navigate between the steps by interacting with the progress bar
Image

Tasks:

  • Test all inputs with valid and various invalid inputs
  • Test the functionality of the default agency and location code check box, unchecking it should make the fields empty, checking it should populate the fields with default agency and location code. Note that step 3's default is whatever is selected on step 1, so make sure to test this linkage; step 1's default is whatever user selected upon a seedlot creation.
  • isolate each test as much as possible. At minimum of 3 it() are needed for this task:
    1. test Step 1
    2. test Step 3
    3. test the linkage between Step 1 and 3
@craigyu craigyu changed the title Nisarg PLACEHOLDER 2 Seedlot Reg Form Step 1 and 3 tests May 14, 2024
@RMCampos
Copy link
Contributor

Rolled over to sprint 30 from 29.

@ngunner15 ngunner15 added front-end front-end related task test test related task labels May 17, 2024
@ngunner15
Copy link
Collaborator

  • Seperate initial code into before() and beforeEach() block.
  • Completed Step 1 test(without pop-up testing).

@ngunner15
Copy link
Collaborator

  • Completed Step 3 test(without pop-up testing).

@ngunner15
Copy link
Collaborator

Completed:

  • Step 1 popup test
  • Step 3 popup test
  • Step 1 and Step 3 linkage test

@RMCampos
Copy link
Contributor

Very nice to see these comments! Good job @ngunner15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment