The following tests fail even though they are fully functional in the webpage;
Content
- I can see an element with corresponding id=“time-left”. NOTE: Paused or running, the value in this field should always be displayed in mm:ss format (i.e. 25:00).
time-left is not formatted correctly: expected ‘25’ to equal ‘60’
AssertionError: time-left is not formatted correctly: expected ‘25’ to equal ‘60’
Timer
- When I click the element with the id of “break-decrement”, the value within id=“break-length” decrements by a value of 1, and I can see the updated value.
expected ‘5’ to equal ‘1’
AssertionError: expected ‘5’ to equal ‘1’ - When I click the element with the id of “break-increment”, the value within id=“break-length” increments by a value of 1, and I can see the updated value.
expected ‘5’ to equal ‘9’
AssertionError: expected ‘5’ to equal ‘9’ - When I click the element with the id of “session-decrement”, the value within id=“session-length” decrements by a value of 1, and I can see the updated value.
expected ‘25’ to equal ‘21’
AssertionError: expected ‘25’ to equal ‘21’ - When I click the element with the id of “session-increment”, the value within id=“session-length” increments by a value of 1, and I can see the updated value.
expected ‘25’ to equal ‘29’
AssertionError: expected ‘25’ to equal ‘29’ - I should not be able to set a session or break length to <= 0.
Value in element with id of “break-length” is less than 1.: expected ‘5’ to equal ‘1’
AssertionError: Value in element with id of “break-length” is less than 1.: expected ‘5’ to equal ‘1’ - I should not be able to set a session or break length to > 60.
Value in element with id of “break-length” is greater than 60.: expected ‘5’ to equal ‘60’
AssertionError: Value in element with id of “break-length” is greater than 60.: expected ‘5’ to equal ‘60’
Here’s the link to my code: