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

Cypress: Verify that errors are displayed when API-calls fail, and that spinners show when they are slow. #923

Open
29 tasks
denektenina opened this issue Nov 30, 2021 · 0 comments

Comments

@denektenina
Copy link
Contributor

denektenina commented Nov 30, 2021

This is for routes under landing page (i.e. Dashboard, Actions and Admin). Functionality that can be tested (there might be more than mentioned here, but I think I have found most of it):

Landing Page

  • No data-component with "Could not load project" is displayed if the lookup of project by the id given in the route fails:

image

Dashboard

  • No Data-component with standard text "Unfortunately, we could not find any data for this component" under the corresponding chip on the landing page if one of the four getEvaluations-call fail:

image

  • Spinner if the call for evaluations under a chip is slow (i.e. if the call for projectEvaluations is slow when the Project Chip is open):

image

Create Evaluation Sidebar

  • Spinner in the Create Evaluation side view if the necessary data (project categories and evaluations) are not yet fetched:

image

  • No data-component in the Create Evaluations if the fetch of project categories or evaluations fail:

image

  • Spinner inside the Save-button in the Create Evaluations-view while creating a new Evaluation:

image

  • Error banner if creating evaluation fails:

image

  • Save-button is disabled if the Title or the project category fields are not filled out (because they are mandatory)

image

  • If the title or project category field are filled out and then deleted (the latter is not really possible to delete) there will be a notice that they are mandatory, and the Save-button will be disabled again:

image

  • If there has been a ErrorBanner or a notice that the fields are mandatory, and the sidebar is closed and then reopened, the notices will not be there. There will also not be any text in the input fields (the whole view is reset).

Actions tab on landing page

  • Spinner while actions and projects are being fetched:

image

  • No data-view if the fetching of actions fail:

image

Admin tab on landing page

Delete Project category

  • Spinner inside the confirmation dialog when deleting project category:

image

Create project category Sidebar

  • Spinner inside Save-button while creating project category:

image

  • Error Bar if creating project category fails:

image

  • Save-button is disabled if there is no title for project category:

image

  • Error notice on text field if a title is written and then removed:

image

Question Templates

  • Spinner while creating question

image

  • Error bar if creating question fails

image

  • Spinner while editing question

image

  • Error bar if editing question fails

image

  • Save disabled on create / edit question if mandatory field (question )is missing

image

  • Error message on mandatory field if something is written and then removed

image

Delete question

  • Spinner while deleting

image

  • Error bar on fail

image

Add / remove question to/from project category

  • Spinner while adding / removing

image

  • Error bar on fail

image

Reorder questions

  • Spinner while loading

image

  • Error bar on fail

image

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

No branches or pull requests

3 participants