Skip to content
This repository was archived by the owner on Nov 12, 2021. It is now read-only.
This repository was archived by the owner on Nov 12, 2021. It is now read-only.

React student form test enhancement  #29

@utsab

Description

@utsab
  • Delete the DB_URI test and replace with logging statements to remind developer to set the DB_URI.
  • Improve add-student-form test by testing the behavior itself instead the internal details (can we test user clicks instead of calling the open function? Can we test the relevant css changes instead of state changes?)
  • submit functionality is not completely tested. Also test the request that is sent on submit. And test whether the component properly handles an error response from server.
  • test what it renders. Right now we only test that it renders a div which is not enough.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions