Logo: Relish

  1. Sign in

Project: Mobile

Adding a Goal

Background
Given
I am logged in as a mobile manager
And
I have Jim Bob in my downline
And
a goal period and types have been created
Scenarios
Adding a Goal
Given
I am on the Status goals page for User
And
I click on the add goal button
And
I type "The Goal" in the name field
And
I select "Performance" from the "type" dropdown
And
I type "02/25/2014" in the "Due Date" field
And
I type "description" in the "description" field
And
I click on the "Submit" button
Then
I should be on the unfinished goals page for User
And
I should see the message "Goal Created"
And
the goal list should contain the goal: The Goal
Examples:
Status User
Unfinished self
Unfinished Jim Bob
Finished self
Finished Jim Bob
Cancelling adding a goal
Given
I am on the Status goals page for User
And
I click on the add goal button
When
I type "The Goal" in the name field
And
I click on Button
Then
I should be on the Status goals page for User
And
I should not see the message "Goal Created"
And
the goal list should not contain the goal: The Goal
Examples:
Status User Button
Unfinished self the "Cancel" button
Unfinished self "the browser Back button"
Unfinished Jim Bob the "Cancel" button
Unfinished Jim Bob "the browser Back button"
Finished self the "Cancel" button
Finished self "the browser Back button"
Finished Jim Bob the "Cancel" button
Finished Jim Bob "the browser Back button"
Prevent entering a goal with an empty name and due date
When
I go to the add goal dialog
Then
the submit button should be disabled
When
I type "name" in the name field
And
I type "01/01/2075" in the "Due Date" field
Then
the submit button should be enabled

Last published about 5 years ago by Trevor Little.