Skip to content

Instantly share code, notes, and snippets.

@tinnguyenz
Created March 18, 2011 06:55
Show Gist options
  • Save tinnguyenz/875707 to your computer and use it in GitHub Desktop.
Save tinnguyenz/875707 to your computer and use it in GitHub Desktop.
view last created projects
Feature: View last created projects in dashboard since 2 weeks
In order to view last created projects since 2 weeks
As a user in this system
I want to view last created projects since 2 weeks
################################################################################
#Background
################################################################################
Background:
Given the following users:
| email |
| user@email.com |
Scenario: View list of empty last created project
Given that system hasn't any created project
When I go to Dashboard
Then I should see a text "Pas de nouveau projet crée" at the top left screen in dashboard
Scenario: View all last created projects since 2 weeks
Given that system has following 4 created projects:
| name | type | project_sub_type | created_date |
| Alpha | PrjProject | Sub Type 1 | 11/02/2011 |
| Beta | PrsProject | Sub Type 2 | 08/03/2011 |
| Gamma | PdtProject | Sub Type 3 | 12/03/2011 |
| Delta | PdtProject | Sub Type 4 | 28/02/2011 |
When I go to dashboard
Then I should see a list of 3 last created projects below notifications:
| Beta | PrsProject | Sub Type 2 | 08/03/2011 |
| Gamma | PdtProject | Sub Type 3 | 12/03/2011 |
| Delta | PdtProject | Sub Type 4 | 28/02/2011 |
Scenario: View all last created projects since 2 weeks
Given that system has following 2 created projects
| Gamma | PdtProject | Sub Type 3 | 12/03/2011 |
| Delta | PdtProject | Sub Type 4 | 28/02/2011 |
When I go to dashboard
Then I should see a list of 2 last created projects below notifications:
| Gamma | PdtProject | Sub Type 3 | 12/03/2011 |
| Delta | PdtProject | Sub Type 4 | 28/02/2011 |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment