Skip to content

Instantly share code, notes, and snippets.

@benmiles
Created November 8, 2011 16:31
Show Gist options
  • Save benmiles/1348269 to your computer and use it in GitHub Desktop.
Save benmiles/1348269 to your computer and use it in GitHub Desktop.
@wip
Feature: Consolidated 'My Profile' page
In order to make my profile information more accessible and usable
As a user
I want to be able to view all of my profile related info from a single page
Scenario: My profile page contains navigation tabs
Given I am logged in
When I go to my profile page
Then I should see the following tabs: "Profile | Alerts | Subscriptions | Saved Searches | NatureJobs"
And the "NatureJobs" tab should be highlighted
And I should see the following tabs: "Personal Info | My CV | Saved Job Searches"
And the "Personal Info" tab should be highlighted
Scenario: I should see the recruiter-specific tabs when I am logged in as a recruiter
Given I am logged in as a recruiter
When I go to my profile page
Then I should see the tab "My Jobs"
And I should see the tab "Orders"
Scenario: I should not see the recruiter-specific tabs when I am logged in as a normal user
Given I am logged in as a normal user
When I go to my profile page
Then I should not see the tab "My jobs"
And I should not see the tab "Orders"
Scenario Outline: Click through profile page tabs
Given I am logged in as a recruiter
When I go to my profile page
And click on <tab>
Then I should go to <page>
And the <tab> tab should be highlighted
Examples:
| tab | page |
| My CV | my CV page |
| Saved Job Searches | my saved job searches page |
| My Jobs | my jobs page |
| Orders | my order page |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment