«

Data should be persisted

In order keep states of my todos As a user I want my todos to be saved and reloaded in the same state when restarting the app

  • Create a todo and ensure it is persisted

    • Given I have deleted the database
    • And I click on New Todo button
    • And I enter "test Todo" in the textbox
    • And I hit Enter
    • When I restart the application
    • Then I should have todos on the screen with
      DoneTextDue Date
      NOtest Todo02/01/2014
  • Mark a todo as done and ensure it is persisted

    • Given I have a todo database filled with
      DoneTextDue Date
      NOSample todo 102/01/2014
      NOSample todo 202/01/2014
      NOSample todo 302/01/2014
    • And I check the todo with text "Sample todo 2"
    • When I restart the application
    • Then I should have todos on the screen with
      DoneTextDue Date
      NOSample todo 102/01/2014
      YESSample todo 202/01/2014
      NOSample todo 302/01/2014