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 Fav Activity Tests to Dashboard #528

Closed
craigyu opened this issue Sep 28, 2023 · 1 comment · Fixed by #544
Closed

Add Fav Activity Tests to Dashboard #528

craigyu opened this issue Sep 28, 2023 · 1 comment · Fixed by #544
Assignees

Comments

@craigyu
Copy link
Collaborator

craigyu commented Sep 28, 2023

Add the following tests to smoke-test/dashboard-page.cy.ts

  1. Favourite Seedlots page should add the related card to dashboard
  2. Favourite Create A Class Seedlot page should add the related card to dashboard
  3. Favourite My Seedlots page should add the related card to dashboard
  4. On Dashboard, clicking on the Seedlots card should navigate to the Seedlots page
  5. On Dashboard, clicking on the Create A Class Seedlot card should navigate to the Create A Class Seedlot page
  6. On Dashboard, clicking on the My Seedlots card should navigate to the My Seedlots page
  7. Click on more actions of the Seedlots card then select Highlight shortcut should highlight the Seedlots card
  8. Click on more actions of the Create A Class Seedlot card then select Highlight shortcut should
    a. Dehighlight the Seedlots card that was previously highlighted
    b. Highlight the Create A Class Seedlot card
  9. Delete the Seedlots card should remove the card from dashboard
  10. Delete the Create A Class Seedlot card should remove the card from dashboard
  11. Delete the My Seedlots card should remove the card from dashboard
    a. AND the text You don't have any favourites to show yet! should be visisble

Note:

  • Avoid the usage of magic numbers when possible.
  • Use element id instead of class to select an element when possible, consider adding id to elements if needed
  • Complicated tests should be well commented as such so it's easier to read
    • Image
@craigyu
Copy link
Collaborator Author

craigyu commented Sep 29, 2023

@ArthurEncr Please create a branch from this issue so it's properly linked. Note that each branch should start with feat/, `fix/ etc.

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