-
Notifications
You must be signed in to change notification settings - Fork 0
Cypress testing Documentation
- User can navigate to the Login page.
- User can navigate to the IDIR login page.
- User can navigate to the BCeID login page.
- User can login with BCeID/IDIR.
- User can navigate to the Dashboard page.
- User can see an empty favourite activities section.
- User can favourite Seedlots page which should be visible in the favorite activities section.
- User can highlight the favourite card.
- User can delete the Seedlots page favourite card which displays the empty favourite activities section.
- User can register an A-Class Seedlot with different species like pli, cw, dr, ep, and fdc.
- Check Agency acronym.
- Enter Agency number.
- Enter Email id, check for invalid email entries.
- Enter Seedlot species.
- Check default radio inputs for the Specify A-class source.
- Check default radio inputs for the Tree Seed Centre.
- Check default radio inputs for the location within B.C.
- Change the above 3 radio input fields.
- Check for the success message when the Seedlot is registered.
- Check that the correct title and subtitle are shown on the Seedlot Dashboard page.
- Check all the Seedlots are there in the table.
- Check that the correct title and subtitle are shown on the Seedlot Detail page.
- User can see the registration process bar has all the correct steps.
- User should see Seedlot Summary section correctly.
- User should see Applicant and Seedlot Information section correctly.
- User should be able to see and click the
Edit Applicant
button on the Seedlot Details page. - User should be able to change the email id.
- User should be able to change
A-class source
radio input. - User should be able to change
Tree Seed Centre
radio input. - User should be able to change
location within B.C.
radio input. - User should be able to click on
Save edit
button. - Verify all the changed information is displayed on the Seedlot Details page.
- User can see the table of My Seedlots.
- User clicks on any seedlot row.
- User can sort the table by clicking on any of the columns.
- User can use the search bar.
- Total number of seedlots are shown at the bottom of the table.
- User can decide how many rows of seedlots are shown on one page.
- User clicks on the next page.
- User can click on
Register a new seedlot
button. - Seedlot number sorting.
- Seedlot species sorting.
- Seedlot status sorting.
- Updated and Created date sorting.
After step 2: It sends the user to that seedlot's page.
After step 3: The user clicks on Seedlot number column and the table is rearranged in ascending order of Seedlot numbers.
After step 4: Typing a particular seedlot number returns that seedlot's row.
After step 6: The user clicks the dropdown menu at the bottom of the table and chooses 10 instead of 20, only 10 rows are shown on the current page.
After step 7: Next page of rows are shown.
After step 8:
It redirects to seedlots/register-a-class
page.
Step 9 detail:
Sorting test plan for seedlot_number (lowSeedlotNumber)
- Press the Seedlot number column one time (ASC)
- Get the first row's seedlot number and store it
- Compare the first row's seedlot number to second row's
- Press the Seedlot number column again (DESC)
- Get the first row's seedlot number and store it (name it something else e.g. highSeedlotNumber)
- Compare the first row's seedlot number to second row's
- Compare lowSeedlotNumber and highSeedlotNumber
Step 10 detail:
- Click on the column one time
- Record the first row's species (lowSpecies)
- Click on the column again
- Record the first row's species (highSpecies)
- Compare the first char of lowSpecies and highSpecies
- lowSpecies.charAt(0) <= highSpecies.charAt(0) e.g. cy.expect(lowSpecies.charCodeAt(0)).to.be.at.most(highSpecies.charCodeAt(0))
Step 11 detail:
Similar to species
Step 12 detail:
Similar to the above tests...
- Get the two extreme values by clicking on the column 2 times.
- Compare these two extreme values, where the lowest should be lower or equal to the highest in Cypress word, the lowest should be at.most(of the highest)
- Create a fixture to store static values like headings, subtitles etc.
- Check the correct title and subtitle on the Collection(Step 1) page.
- The Collector agency checkbox should be checked.
- Check the default values of Cone Collector agency and Cone Collector location code.
- User should be able to uncheck the Collector agency checkbox.
- User should be able to change the values of Cone Collector agency and Cone Collector location code.
- Check the error message for invalid inputs of Cone Collector agency and Cone Collector location code.
- User should be able to click the Client search modal.
- User should be able to change the Collection information date and other inputs.
- User should be able to check any checkbox in Collection methods.
- User should be able to write in the Comments text field.
- User can press the
Next
button and render Step 2 page. - User can see the complete checkmark SVG in Step 1.
- Check the correct title and subtitle on the Interim(Step 3) page.
- Check the linkage between Step 1 and Step 3.
- User should be able to uncheck the Interim storage agency checkbox.
- User should be able to change the values of Interim agency and Interim agency location code.
- Check the error message for invalid inputs of Interim agency and Interim agency location code.
- User should be able to click the Client search modal.
- User should be able to change the Interim agency date inputs.
- User should be able to change the radio inputs of Storage facility type from
OCV
toOTH
. - User should see a textbox under the Storage facility and write a comment.
- User can press the
Next
button and render Step 4 page. - User can see the complete checkmark SVG in Step 3.
Step 8 and Step 19 detail:
- Change from
Full name
toAcronym
. - Enter the test Acronym for eg.
MOF
. - Click
Search
button. - Select the first option.
- Close the popup.
- Check the same value is there in the Acronym(Cone Collector agency or Interim agency acronym) as selected in the popup.
Step 9 details:
- Check validation errors for
Number of Containers
,Volume per Containers (HI)
andVolume of Cones (HI)
. - Check the logic for these fields follows this formula -
Number of Containers * Volume per Containers (HI) = Volume of Cones (HI).
- Create a fixture to store static values like headings, subtitles etc.
- User can see correct information on Ownership(heading, subtitle).
- User can hide the owner agency section by clicking on the up arrow button.
- The owner agency section has the same title as the
Owner agency
and the subtitle is the same asOwner portion(%)
which is 100% by default. - User can uncheck the checkbox and change the
Owner agency
andOwner location code
. - User can change
Reserved (%)
andSurplus (%)
. - User can enter
Owner agency
by clickingopen the client search
modal. - User can enter
Funding source
andMethod of payment
from the dropdown menu. - User can click on
Add owner
button and a new owner agency section is added to the page. - User can delete the owner agency section by clicking
Delete owner
button. - User can change the
Owner portion(%)
the new owner agency section. - User can click on
Next
button.
Step 2: Create a test that imports fixture to check the title and subtitle.
Step 5:
Check for error msg when it is invalid Owner agency
and Owner location code
.
After Step 6:
The total of Reserved (%)
and Surplus (%)
should be equal to Owner portion(%)
After Step 7:
Check the Owner agency
and Owner location code
are the same in the owner agency section as the one selected in open the client search
modal.
Step 11: Check for error msg if both the owner agency section should be more than 100% or less than 100%.
After Step 12: User is on the Interim storage step and the SVG on Step 2 with the right tick is visible(that means completed).
- Create a fixture to store static values like headings, subtitles etc.
- User can see correct information on Orchard(heading, subtitle).
- User can select any value from the Orchard dropdown option.
- User can see various Parent tree numbers of that Orchard in the Cone and pollen count section of Step 5.
- Check the functionality for additional Orchard selection and Parent tree numbers in Step 5.
- Check default gamete information.
- User can select a Female gametic and Male gametic option from the dropdown.
- User can change the radio buttons of gamete.
- Check default pollen information.
- User can change the radio buttons of pollen information.
- User can change the
Contaminant pollen breeding percentage
by clicking on-
and+
buttons or entering into the text field. - User can press the
Next
button and render Step 5 page. - User can see the complete checkmark SVG in Step 5.
- Create a fixture to store static values like headings, subtitles etc.
- User can see correct information on Extraction(heading, subtitle).
- Check the default values of the Extraction agency.
- Check the default values of the Storage agency.
- User can uncheck the Tree Seed Center checkbox for the Extraction agency.
- User can type the Extractory agency acronym and the Extractory agency location code.
- User can enter the Extraction start date and Extraction end date.
- User can uncheck the Tree Seed Center checkbox for the Storage agency.
- User can type the Seed storage agency acronym and the Seed storage agency location code.
- User can enter the Storage start date and Storage end date.
- User can click on the Client search modal for the Extraction and Storage agency.
Step 6 and Step 9: Check for error messages for invalid acronym and location code.
Step 7 and Step 10: Check for error messages for invalid start and end dates.
Step 11:
- Change from
Full name
toAcronym
. - Enter the test Acronym for eg.
MOF
. - Click
Search
button. - Select the first option.
- Close the popup.
- Check the same value is there in the Acronym(Extractory agency or Seed storage agency) as selected in the popup.
Welcome to Evergreen Team Wiki page.
- Problem Statement and Goals
- Architecture
- Pull Request Guideline
- Cypress testing Documentation
- Sysdig integration