Skip to content

Instantly share code, notes, and snippets.

@LeonardoFassini
Last active October 18, 2020 18:12
Show Gist options
  • Save LeonardoFassini/2866896cc7b38ad3bd8fad3bf58662d6 to your computer and use it in GitHub Desktop.
Save LeonardoFassini/2866896cc7b38ad3bd8fad3bf58662d6 to your computer and use it in GitHub Desktop.
Feature: Todo
I want to be able to manage my todos
Background: Logging in
Given I am logged in
Scenario: List all todos
Given I am at the todo page
Then There should be a list of todos
Scenario: Clicking on a unchecked todo checks it
Given I am at the todo page
When I click on a unchecked todo
Then The todo should be checked
Scenario: Clicking on a checked todo unchecks it
Given I am at the todo page
When I click on a checked todo
Then The todo should be unchecked
Scenario: Add a new todo
Given I am at the todo page
When I click to add a new todo
And I type on the todo name "New todo"
And I type on the todo description "Description"
And I click to save
Then A new todo should be created
Scenario: Remove a todo
Given I am at the todo page
When I click to remove a todo
Then The todo should be removed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment