Skip to content

Instantly share code, notes, and snippets.

@goofballLogic
Last active March 27, 2021 09:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goofballLogic/ef0e0bb802253a872a381bcb7cf55c34 to your computer and use it in GitHub Desktop.
Save goofballLogic/ef0e0bb802253a872a381bcb7cf55c34 to your computer and use it in GitHub Desktop.
Feature: Writing a diary entry
As Doogie
I want to be able to write a new entry in my diary
So that I can round off an episode with an uplifting thought
Background: Load the app and start editing
Given I have loaded the app
When I press the space bar
Scenario: I should be able to press space bar to start writing
Then my cursor should be focused in an editable area
And the current date should be displayed beside the editable area
Scenario: I should be able to tab out of the editable area to finish writing
And I press the tab key
Then there should no longer be any editable areas
And the diary entry i just created should be saved to the database
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment