Skip to content

Instantly share code, notes, and snippets.

@taras
Created April 10, 2020 16:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save taras/cb6bee258da952ed0aaa4ec3257b81d6 to your computer and use it in GitHub Desktop.
Save taras/cb6bee258da952ed0aaa4ec3257b81d6 to your computer and use it in GitHub Desktop.
CustomPackageEditVisibility
visiting the package edit page with a hidden package and a hidden reason
✔ displays the correct visibility status
✔ displays the hidden/reason section
✔ disables the save button
clicking cancel
✔ goes to the package show page
toggling the visiblity field
clicking cancel
✔ shows a navigation confirmation modal
clicking save
✔ goes to the package show page
✔ displays the new visibility status
visiting the package edit page with a hidden package without a hidden reason
✔ displays the correct visibility status
✔ does not display the hidden/reason section
visiting the package edit page with a package that is not hidden
✔ displays the correct visibility status
✔ does not display hidden message
✔ disables the save button
clicking cancel
✔ goes to the package show page
toggling the visiblity field
clicking cancel
✔ shows a navigation confirmation modal
clicking save
✔ goes to the package show page
✔ displays the new visibility status
visiting the package edit page with a custom (default selected) package
✔ reflects the desired state of holding status
✔ disables the save button
CustomPackageShowSelection
visiting the package details page
✔ automatically has the custom package in my holdings
deselecting a custom package
canceling the deselection
✔ reverts back to the selected state
confirming the deselection
✔ indicates it is working to get to desired state
when the request succeeds
✔ removes package detail pane
unsuccessfully deselecting a custom package
✔ shows a confirmation dialog
confirming the deselection
✔ reflect the desired state was not set
✔ indicates it is no longer working
✔ shows the error as a toast
CustomResourceEditCustomCoverage
visiting a selected custom resource edit page without custom coverage
✔ disables the save button
✔ displays an add custom coverage button
clicking the add date range button
✔ shows a single row of inputs
clicking the add date range button
✔ adds another row of date inputs
✔ does not put any values in the new inputs
clicking the clear row button
✔ removes the new row
✔ does not display the saving will remove message
entering a valid date range
✔ shows the input as changed
clicking save
✔ goes to the resource show page
✔ displays the customcoverage section for single date
entering an invalid date range
entering an invalid begin date format
✔ indicates validation error on begin date
✔ displays messaging that date is invalid format
entering an end date before a start date
✔ indicates validation error on begin date
✔ displays messaging that end date is before start date
entering a date range outside of package coverage range
✔ indicates validation error on begin date
✔ indicates validation error on end date
✔ displays messaging that begin date is outside of package coverage range
✔ displays messaging that end date is outside of package coverage range
entering overlapping date ranges
clicking the add date range button
✔ adds another row of date inputs
entering overlapping ranges
✔ indicates validation error on begin dates
✔ has messaging that dates overlap
visiting a selected custom resource edit page with custom coverage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment