Skip to content

Instantly share code, notes, and snippets.

@AV4TAr
Created November 25, 2014 14:47
Show Gist options
  • Save AV4TAr/f147050ead6e7733d59b to your computer and use it in GitHub Desktop.
Save AV4TAr/f147050ead6e7733d59b to your computer and use it in GitHub Desktop.
Feature: Job Offers CRUD
In order to get employees
As a job offerer
I want to manage my offers
Background:
Given I am logged in as job offerer
Scenario: Create new offer
Given I access the new offer page
When I fill the title with "Programmer vacancy"
And confirm the new offer
Then I should see "Offer created"
And I should see "Programmer vacancy" in My Offers
Scenario: Update offer
Given I have "Programmer vacancy" offer in My Offers
And I edit it
And I set title to "Programmer vacancy!!!"
And I save the modification
Then I should see "Offer updated"
And I should see "Programmer vacancy!!!" in My Offers
Scenario: Delete offer
Given I have "Programmer vacancy" offer in My Offers
Given I delete it
Then I should see "Offer deleted"
And I should not see "Programmer vacancy!!!" in My Offers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment