Pomodoro Clock: Failing Display Tests

The following tests fail even though they are fully functional in the webpage;

Content

  1. 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

  1. 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’

  2. 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’

  3. 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’

  4. 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’

  5. 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’

  6. 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’

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.