Created
October 26, 2011 14:28
-
-
Save benmiles/1316522 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mock-article | |
@wip | |
Feature: Jobs box on article pages [JOBS-3540] | |
In order to see recently posted jobs | |
As a user | |
I want to see a standard jobs box in the right hand column of article pages | |
Scenario: Viewing jobs box | |
Given a viewable article has been syndicated | |
And more than one page of active jobs exists | |
When I go to view the new article | |
Then there should be a jobs box in the right sidebar | |
And the jobs box should contain 3 jobs | |
And I should see "Science jobs from nature jobs" | |
And I should see a link "Post a free job" which goes to the new job page | |
And I should see a link "More science jobs" which goes to the jobs index page | |
Scenario: Job details inside jobs box | |
Given a viewable article has been syndicated | |
And the following jobs with employers exist: | |
| title | employer | expired | approved | comment | | |
| First job | Employer 1 | false | true | ok for job box | | |
| Second job | Employer 2 | false | true | ok for job box | | |
| Third job | Employer 3 | false | true | ok for job box | | |
| Unapproved job | Emp | false | false | not approved | | |
| Expired job | Emp | true | true | expired | | |
When I go to view the new article | |
Then I should see a link to the job with title "First job" | |
And I should see "Employer 1" | |
And I should see a link to the job with title "Second job" | |
And I should see "Employer 2" | |
And I should see a link to the job with title "Third job" | |
And I should see "Employer 3" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment