[x] When the user clicks on the Computers item in the navigation bar
[x] Then the user should see a list of all computers
[x] And each item should be a hyperlink that can be clicked to view the details
[x] Given a user is viewing all computers
[x] When the user clicks the Create New link
[x] Then the user should be presented with a form in which the following information can be entered
[x] 1. Computer manufacturer
[x] 1. Computer make
[x] 1. Purchase date
[x] Given user is viewing a single computer
[x] When the user clicks on the Delete link
[x] Then the user should be presented with a screen to verify that it should be deleted
[x] And if the user chooses Yes from that screen, the computer should be deleted only if it is has never been assigned to an employee
Testing Criteria
[x] * Your test suite must verify that the content of the responses contain all required input field, where appropriate.
[x] * Your test suite must verify that when a POST operation is performed to the corresponding URL, then a successful response is received. Status code must be 200 and the resource should exist in the database.
[x] * Your test suite must verify that when a DELETE operation is performed to the corresponding URL, then a successful response is received. Status code must be 200 and the resource should no longer exist in the database.
Acceptance Criteria
[x] Given a user wants to view all computers
[x] When the user clicks on the Computers item in the navigation bar
[x] Then the user should see a list of all computers
[x] And each item should be a hyperlink that can be clicked to view the details
[x] Given a user is viewing all computers
[x] When the user clicks the Create New link
[x] Then the user should be presented with a form in which the following information can be entered
[x] 1. Computer manufacturer
[x] 1. Computer make
[x] 1. Purchase date
[x] Given user is viewing a single computer
[x] When the user clicks on the Delete link
[x] Then the user should be presented with a screen to verify that it should be deleted
[x] And if the user chooses Yes from that screen, the computer should be deleted only if it is has never been assigned to an employee
Testing Criteria