Skip to content

Instantly share code, notes, and snippets.

@rubystar
Created September 7, 2012 14:25
Show Gist options
  • Save rubystar/3666638 to your computer and use it in GitHub Desktop.
Save rubystar/3666638 to your computer and use it in GitHub Desktop.
cucumber on rails upgrade
This file has been truncated, but you can view the full file.
Using the default profile...
Sunspot server is starting...
Sunspot server is starting...
Sunspot server is starting...
Sunspot server is starting...
Sunspot server is starting...
Sunspot server is starting...
Sunspot server is starting...
Sunspot server is starting...
Sunspot server is starting...
Sunspot server is starting...
Sunspot server is starting...
Sunspot server is starting...
Sunspot server is starting...
Sunspot server is starting...
Sunspot server is starting...
Sunspot server is starting...
Sunspot server is starting...
Sunspot server is starting...
Sunspot server is starting...
Sunspot server is starting...
Sunspot server is starting...
Sunspot server is starting...
Sunspot server is starting...
Sunspot server is starting...
Sunspot server is starting...
Sunspot server is starting...
Sunspot server is starting...
Sunspot server is starting...
Sunspot server is starting...
Sunspot server is starting...
Sunspot server is starting...
Sunspot server is starting...
Sunspot server is starting...
Sunspot server is starting...
Sunspot server is starting...
Sunspot server is starting...
Sunspot server is starting...
Sunspot server is starting...
Sunspot server is starting...
Sunspot server is starting...
Sunspot server took 42.28 sec. to get up and running. Let's cuke!
Feature: Account Manager Create Campaign
Account Manager must be able to create Campaigns
Background: # features/am_campaign.feature:4
Given loaded fixtures # features/step_definitions/object_steps.rb:222
Given reportable data exists # features/step_definitions/object_steps.rb:95
Validation failed: Name this site's zone prefix is generated using the site name. An existing site 'Site 0' is already using the zone prefix 'rmm.site0'. You must use a site name that will generate a unique zone prefix., Zone prefix must be unique (ActiveRecord::RecordInvalid)
./features/step_definitions/object_steps.rb:130:in `/^reportable data exists(?: for the (.+) department)?$/'
features/am_campaign.feature:6:in `Given reportable data exists'
Given I am logged in as account_manager user bob who belongs to the Display department # features/step_definitions/user_steps.rb:59
Then I follow "Campaigns" within "#tabs" # features/step_definitions/web_steps.rb:169
Scenario: As an Account Manager, I can view Campaigns for departments to which I belong # features/am_campaign.feature:11
Then I should see "Campaign 0" # features/step_definitions/web_steps.rb:256
Then I should not see "Campaign 1" # features/step_definitions/web_steps.rb:275
@selenium
Scenario: As an Account manager I must be able to create a Campaign and create a new client # features/am_campaign.feature:17
When I follow "New" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
When I select "Display" from "campaign_department_id" # features/step_definitions/web_steps.rb:203
When I fill in "campaign_name" with "Bobs Marketing Blitz" # features/step_definitions/web_steps.rb:174
When I fill in "campaign_advertiser_id" with "Advertiser 2" # features/step_definitions/web_steps.rb:174
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "Create New" within "li.ui-menu-item" # features/step_definitions/web_steps.rb:256
When I select "Create New" from the autocomplete on "#campaign_advertiser_id" # features/step_definitions/web_steps.rb:416
And I fill in "campaign_start_date" with "2010-01-01" # features/step_definitions/web_steps.rb:174
And I fill in "campaign_end_date" with "3010-01-01" # features/step_definitions/web_steps.rb:174
And I press "Continue" # features/step_definitions/web_steps.rb:164
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "Advertiser 2" within "#breadcrumbs" # features/step_definitions/web_steps.rb:256
And I should see "Bobs Marketing Blitz" within "#mainTitle" # features/step_definitions/web_steps.rb:256
And I should see "display campaign" within "#mainTitle" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As an Account Manager, I must be able to create a Campaign and assign it to my department # features/am_campaign.feature:35
When I follow "New" # features/step_definitions/web_steps.rb:169
When I select "Display" from "campaign_department_id" # features/step_definitions/web_steps.rb:203
When I fill in "campaign_name" with "Bobs Marketing Blitz" # features/step_definitions/web_steps.rb:174
When I fill in "campaign_advertiser_id" with "adv" # features/step_definitions/web_steps.rb:174
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "Advertiser 0" within "li.ui-menu-item" # features/step_definitions/web_steps.rb:256
When I select "Advertiser 0" from the autocomplete on "#campaign_advertiser_id" # features/step_definitions/web_steps.rb:416
And I fill in "campaign_start_date" with "2010-01-01" # features/step_definitions/web_steps.rb:174
And I fill in "campaign_end_date" with "3010-01-01" # features/step_definitions/web_steps.rb:174
And I press "Continue" # features/step_definitions/web_steps.rb:164
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "Bobs Marketing Blitz" within "#mainTitle" # features/step_definitions/web_steps.rb:256
And I should see "display campaign" within "#mainTitle" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As an Account Manager, I can not create a Campaign and assign it to a different department # features/am_campaign.feature:52
When I follow "New" # features/step_definitions/web_steps.rb:169
When I should not see "SEM" within "#campaign_department_id" # features/step_definitions/web_steps.rb:275
When I select "Display" from "campaign_department_id" # features/step_definitions/web_steps.rb:203
When I fill in "campaign_name" with "Bobs Marketing Blitz" # features/step_definitions/web_steps.rb:174
When I fill in "campaign_advertiser_id" with "adv" # features/step_definitions/web_steps.rb:174
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "Advertiser 0" within "li.ui-menu-item" # features/step_definitions/web_steps.rb:256
When I select "Advertiser 0" from the autocomplete on "#campaign_advertiser_id" # features/step_definitions/web_steps.rb:416
And I fill in "campaign_start_date" with "2010-01-01" # features/step_definitions/web_steps.rb:174
And I fill in "campaign_end_date" with "3010-01-01" # features/step_definitions/web_steps.rb:174
And I press "Continue" # features/step_definitions/web_steps.rb:164
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "Bobs Marketing Blitz" within "#mainTitle" # features/step_definitions/web_steps.rb:256
And I should see "display campaign" within "#mainTitle" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As an Account Manager, I create a new campaign with a blank order name and order name gets set to default # features/am_campaign.feature:70
When I follow "New" # features/step_definitions/web_steps.rb:169
When I select "Display" from "campaign_department_id" # features/step_definitions/web_steps.rb:203
When I fill in "campaign_name" with "Bobs Marketing Blitz" # features/step_definitions/web_steps.rb:174
When I fill in "campaign_advertiser_id" with "adv" # features/step_definitions/web_steps.rb:174
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "Advertiser 0" within "li.ui-menu-item" # features/step_definitions/web_steps.rb:256
And I select "Advertiser 0" from the autocomplete on "#campaign_advertiser_id" # features/step_definitions/web_steps.rb:416
And I fill in "campaign_start_date" with "2010-09-01" # features/step_definitions/web_steps.rb:174
And I fill in "campaign_end_date" with "2010-09-30" # features/step_definitions/web_steps.rb:174
And I press "Continue" # features/step_definitions/web_steps.rb:164
Then I should see "Campaign was successfully created" within "#flash" # features/step_definitions/web_steps.rb:256
Then the "campaign_order_name" field should contain "Agency0-Advertiser0-BobsMarketingBlitz-2010-09" # features/step_definitions/web_steps.rb:337
And I check "Unknown" # features/step_definitions/web_steps.rb:208
And I check "160x600 Standard" # features/step_definitions/web_steps.rb:208
And I fill in "campaign_order_name" with "" # features/step_definitions/web_steps.rb:174
And I press "Continue" # features/step_definitions/web_steps.rb:164
Then I should see "Campaign was successfully updated" within "#flash" # features/step_definitions/web_steps.rb:256
Then I follow "Setup" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Then the "campaign_order_name" field should contain "Agency0-Advertiser0-BobsMarketingBlitz-2010-09" # features/step_definitions/web_steps.rb:337
@selenium
Scenario: As an Account Manager, I create a new campaign with a default order name and the order name should be saved # features/am_campaign.feature:93
When I follow "New" # features/step_definitions/web_steps.rb:169
When I select "Display" from "campaign_department_id" # features/step_definitions/web_steps.rb:203
When I fill in "campaign_name" with "Bobs Marketing Blitz" # features/step_definitions/web_steps.rb:174
When I fill in "campaign_advertiser_id" with "adv" # features/step_definitions/web_steps.rb:174
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "Advertiser 0" within "li.ui-menu-item" # features/step_definitions/web_steps.rb:256
And I select "Advertiser 0" from the autocomplete on "#campaign_advertiser_id" # features/step_definitions/web_steps.rb:416
And I fill in "campaign_start_date" with "2010-09-01" # features/step_definitions/web_steps.rb:174
And I fill in "campaign_end_date" with "2010-09-30" # features/step_definitions/web_steps.rb:174
And I press "Continue" # features/step_definitions/web_steps.rb:164
And I check "Unknown" # features/step_definitions/web_steps.rb:208
And I check "160x600 Standard" # features/step_definitions/web_steps.rb:208
Then the "campaign_order_name" field should contain "Agency0-Advertiser0-BobsMarketingBlitz-2010-09" # features/step_definitions/web_steps.rb:337
And I press "Continue" # features/step_definitions/web_steps.rb:164
Then I follow "Setup" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Then the "campaign_order_name" field should contain "Agency0-Advertiser0-BobsMarketingBlitz-2010-09" # features/step_definitions/web_steps.rb:337
@selenium
Scenario: As an Account Manager, I create a new campaign and enter an order name, the order name should be saved # features/am_campaign.feature:116
When I follow "New" # features/step_definitions/web_steps.rb:169
When I select "Display" from "campaign_department_id" # features/step_definitions/web_steps.rb:203
When I fill in "campaign_name" with "Bobs Marketing Blitz" # features/step_definitions/web_steps.rb:174
When I fill in "campaign_advertiser_id" with "adv" # features/step_definitions/web_steps.rb:174
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "Advertiser 0" within "li.ui-menu-item" # features/step_definitions/web_steps.rb:256
And I select "Advertiser 0" from the autocomplete on "#campaign_advertiser_id" # features/step_definitions/web_steps.rb:416
And I fill in "campaign_start_date" with "2010-09-01" # features/step_definitions/web_steps.rb:174
And I fill in "campaign_end_date" with "2010-09-30" # features/step_definitions/web_steps.rb:174
And I press "Continue" # features/step_definitions/web_steps.rb:164
Then I should see "Campaign was successfully created" within "#flash" # features/step_definitions/web_steps.rb:256
Then the "campaign_order_name" field should contain "Agency0-Advertiser0-BobsMarketingBlitz-2010-09" # features/step_definitions/web_steps.rb:337
And I fill in "campaign_order_name" with "My_Special_Order_Name" # features/step_definitions/web_steps.rb:174
And I check "Unknown" # features/step_definitions/web_steps.rb:208
And I check "160x600 Standard" # features/step_definitions/web_steps.rb:208
And I press "Continue" # features/step_definitions/web_steps.rb:164
Then I should see "Campaign was successfully updated" within "#flash" # features/step_definitions/web_steps.rb:256
Then I follow "Setup" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Then the "campaign_order_name" field should contain "My_Special_Order_Name" # features/step_definitions/web_steps.rb:337
@selenium
Scenario: As an Account Manager, I edit an existing campaign, clearing the order name and the order name gets set to the default # features/am_campaign.feature:139
When I follow "New" # features/step_definitions/web_steps.rb:169
When I select "Display" from "campaign_department_id" # features/step_definitions/web_steps.rb:203
When I fill in "campaign_name" with "Bobs Marketing Blitz" # features/step_definitions/web_steps.rb:174
When I fill in "campaign_advertiser_id" with "adv" # features/step_definitions/web_steps.rb:174
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "Advertiser 0" within "li.ui-menu-item" # features/step_definitions/web_steps.rb:256
And I select "Advertiser 0" from the autocomplete on "#campaign_advertiser_id" # features/step_definitions/web_steps.rb:416
And I fill in "campaign_start_date" with "2010-09-01" # features/step_definitions/web_steps.rb:174
And I fill in "campaign_end_date" with "2010-09-30" # features/step_definitions/web_steps.rb:174
And I press "Continue" # features/step_definitions/web_steps.rb:164
Then I should see "Campaign was successfully created" within "#flash" # features/step_definitions/web_steps.rb:256
Then the "campaign_order_name" field should contain "Agency0-Advertiser0-BobsMarketingBlitz-2010-09" # features/step_definitions/web_steps.rb:337
And I fill in "campaign_order_name" with "My_Special_Order_Name" # features/step_definitions/web_steps.rb:174
And I check "Unknown" # features/step_definitions/web_steps.rb:208
And I check "160x600 Standard" # features/step_definitions/web_steps.rb:208
And I press "Continue" # features/step_definitions/web_steps.rb:164
Then I should see "Campaign was successfully updated" within "#flash" # features/step_definitions/web_steps.rb:256
Then I follow "Setup" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Then the "campaign_order_name" field should contain "My_Special_Order_Name" # features/step_definitions/web_steps.rb:337
And I fill in "campaign_order_name" with "" # features/step_definitions/web_steps.rb:174
And I press "Continue" # features/step_definitions/web_steps.rb:164
Then I should see "Campaign was successfully updated" within "#flash" # features/step_definitions/web_steps.rb:256
Then I follow "Setup" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Then the "campaign_order_name" field should contain "Agency0-Advertiser0-BobsMarketingBlitz-2010-09" # features/step_definitions/web_steps.rb:337
@selenium
Scenario: As an Account Manager, I edit an existing campaign with an existing order name, update the order name and my new order name should be saved # features/am_campaign.feature:167
When I follow "New" # features/step_definitions/web_steps.rb:169
When I select "Display" from "campaign_department_id" # features/step_definitions/web_steps.rb:203
When I fill in "campaign_name" with "Bobs Marketing Blitz" # features/step_definitions/web_steps.rb:174
When I fill in "campaign_advertiser_id" with "adv" # features/step_definitions/web_steps.rb:174
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "Advertiser 0" within "li.ui-menu-item" # features/step_definitions/web_steps.rb:256
And I select "Advertiser 0" from the autocomplete on "#campaign_advertiser_id" # features/step_definitions/web_steps.rb:416
And I fill in "campaign_start_date" with "2010-09-01" # features/step_definitions/web_steps.rb:174
And I fill in "campaign_end_date" with "2010-09-30" # features/step_definitions/web_steps.rb:174
And I press "Continue" # features/step_definitions/web_steps.rb:164
Then I should see "Campaign was successfully created" within "#flash" # features/step_definitions/web_steps.rb:256
Then the "campaign_order_name" field should contain "Agency0-Advertiser0-BobsMarketingBlitz-2010-09" # features/step_definitions/web_steps.rb:337
And I fill in "campaign_order_name" with "My_Special_Order_Name" # features/step_definitions/web_steps.rb:174
And I check "Unknown" # features/step_definitions/web_steps.rb:208
And I check "160x600 Standard" # features/step_definitions/web_steps.rb:208
And I press "Continue" # features/step_definitions/web_steps.rb:164
Then I should see "Campaign was successfully updated" within "#flash" # features/step_definitions/web_steps.rb:256
Then I follow "Setup" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Then the "campaign_order_name" field should contain "My_Special_Order_Name" # features/step_definitions/web_steps.rb:337
And I fill in "campaign_order_name" with "My_NEW_Special_Order_Name" # features/step_definitions/web_steps.rb:174
And I press "Continue" # features/step_definitions/web_steps.rb:164
Then I should see "Campaign was successfully updated" within "#flash" # features/step_definitions/web_steps.rb:256
Then I follow "Setup" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Then the "campaign_order_name" field should contain "My_NEW_Special_Order_Name" # features/step_definitions/web_steps.rb:337
@selenium
Scenario: As an Account Manager, when defining a campaign's dimensions, I want there to be 3 custom dimensions I can add values to. # features/am_campaign.feature:196
And I have these campaigns with these site allocations: # features/step_definitions/site_allocation_steps.rb:1
| Department | Campaign Name | Site Name | Number of Zones | Number of Flights |
| Display | Campaign 3 | Site 0 | 3 | 2 |
| Display | Campaign 3 | Site 0 | 3 | 2 |
Then reindex the streams # features/step_definitions/object_steps.rb:312
Then I view the campaign titled "Campaign 3" # features/step_definitions/campaign_steps.rb:1
Then I follow "Setup" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Then I fill in "campaign_start_date" with "2010-01-01" # features/step_definitions/web_steps.rb:174
Then I fill in "add_custom_dimension_1" with "cd01" # features/step_definitions/web_steps.rb:174
And I follow "Add" within "#custom-1" # features/step_definitions/web_steps.rb:169
Then I fill in "add_custom_dimension_2" with "cd02" # features/step_definitions/web_steps.rb:174
And I follow "Add" within "#custom-2" # features/step_definitions/web_steps.rb:169
Then I fill in "add_custom_dimension_3" with "cd03" # features/step_definitions/web_steps.rb:174
And I follow "Add" within "#custom-3" # features/step_definitions/web_steps.rb:169
Then I press "Continue" # features/step_definitions/web_steps.rb:164
Then I should see "Campaign was successfully updated" # features/step_definitions/web_steps.rb:256
Then I follow "Setup" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Then I should see "cd01" within "#custom_dimension_1_tags" # features/step_definitions/web_steps.rb:256
Then I should see "cd02" within "#custom_dimension_2_tags" # features/step_definitions/web_steps.rb:256
Then I should see "cd03" within "#custom_dimension_3_tags" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As the Account Manager, when selecting existing ads to be added to the campaign, I want to specify the dimensions that ad will match # features/am_campaign.feature:220
When I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I follow "Setup" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
And I fill in "campaign_start_date" with "2010-09-01" # features/step_definitions/web_steps.rb:174
Then I press "Continue" # features/step_definitions/web_steps.rb:164
Then I follow "Ads" within "#context_menu" # features/step_definitions/web_steps.rb:169
Then I follow "Generate Ads" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Then wait for the page to load # features/step_definitions/web_steps.rb:455
Then I check "existing_ads_2_add" # features/step_definitions/web_steps.rb:208
Then I select "Medium" from "existing_ads_2_custom_dimension_1" # features/step_definitions/web_steps.rb:203
Then I select "Male" from "existing_ads_2_custom_dimension_2" # features/step_definitions/web_steps.rb:203
Then I select "Unknown" from "existing_ads_2_product_id" # features/step_definitions/web_steps.rb:203
Then I press "Continue" # features/step_definitions/web_steps.rb:164
@selenium
Scenario: As an Account Manager, I must be able to pause/unpause a Campaign # features/am_campaign.feature:236
And I have these campaigns with these site allocations: # features/step_definitions/site_allocation_steps.rb:1
| Department | Campaign Name | Site Name | Number of Zones | Number of Flights | Start Date | End Date | Active |
| Display | Campaign 0 | Site 0 | 2 | 1 | 20100801 | 20100901 | 1 |
| Display | Campaign 0 | Site 0 | 2 | 1 | 20100901 | 20101001 | 1 |
Then "Campaign 0" with "accepted" offer # features/step_definitions/campaign_steps.rb:66
When I confirm a js popup on the next step # features/step_definitions/web_steps.rb:445
Then I follow "Pause" within "#contentNav" # features/step_definitions/web_steps.rb:169
Then I should see "2 Site Allocations Paused" within "#flash" # features/step_definitions/web_steps.rb:256
Then I follow "Sites" within "#context_menu" # features/step_definitions/web_steps.rb:169
When I confirm a js popup on the next step # features/step_definitions/web_steps.rb:445
Then I follow "Unpause" within "#contentNav" # features/step_definitions/web_steps.rb:169
Then I should see "2 Site Allocations Activated" within "#flash" # features/step_definitions/web_steps.rb:256
Feature: Account Manager Campaign Ads Offers
Account Manager must be able to manage campaign ads
Background: # features/am_campaign_ads.feature:4
Given loaded fixtures # features/step_definitions/object_steps.rb:222
Given reportable data exists # features/step_definitions/object_steps.rb:95
And I am logged in as account_manager user bob who belongs to the Display department # features/step_definitions/user_steps.rb:59
@selenium
Scenario: As the Account Manager, when managing the "Generate Ads" table, I want to see the ads CMP Service Rate Fee # features/am_campaign_ads.feature:11
And all delayed jobs are run # features/step_definitions/delayed_job_steps.rb:24
When I go to the home page # features/step_definitions/web_steps.rb:161
When I follow "Campaigns" # features/step_definitions/web_steps.rb:169
Then I follow "Campaign 0" # features/step_definitions/web_steps.rb:169
Then I follow "Ads" within "#context_menu" # features/step_definitions/web_steps.rb:169
Then I follow "Generate Ads" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Then I should see "CPM Serving Fee Rate" # features/step_definitions/web_steps.rb:256
Feature: Account Manager manage budget allocations
Account Manager must be able to manage budget allocations
Background: # features/am_campaign_budget_allocations.feature:4
Given loaded fixtures # features/step_definitions/object_steps.rb:222
Given reportable data exists # features/step_definitions/object_steps.rb:95
And I am logged in as account_manager user bob who belongs to the Display department # features/step_definitions/user_steps.rb:59
@selenium
Scenario: As an Account Manager, I want to be able to see budget allocations associated with a campaign # features/am_campaign_budget_allocations.feature:11
And I have the following budget allocations for the campaign titled "Campaign 0": # features/step_definitions/budget_allocation_steps.rb:1
| Start Date | End Date | Unit | Unit Revenue | Target Quantity | Income | Gender |
| September 1 2010 | September 30 2010 | impressions | 1.00 | 200000 | Low | Male |
| September 1 2010 | September 25 2010 | clicks | 2.00 | 50000 | High | Male |
When I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I follow "Budget Allocations" within "#context_menu" # features/step_definitions/web_steps.rb:169
Then I should see a link for "Budget Allocation 0" # features/step_definitions/web_steps.rb:237
And I should see a link for "Budget Allocation 1" # features/step_definitions/web_steps.rb:237
@selenium
Scenario: As an Account Manager, I want to create a new budget allocation for the campaign. # features/am_campaign_budget_allocations.feature:24
When I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I follow "Budget Allocations" within "#context_menu" # features/step_definitions/web_steps.rb:169
Then I fill in "budget_allocation_name" with "MyNewBudgetAllocation" # features/step_definitions/web_steps.rb:174
Then I fill in "budget_allocation_start_date" with "2010-09-01" # features/step_definitions/web_steps.rb:174
Then I fill in "budget_allocation_end_date" with "2010-10-01" # features/step_definitions/web_steps.rb:174
Then I choose "Total Budget" within "#budget_allocation_calc_input" # features/step_definitions/web_steps.rb:218
Then I fill in "budget_allocation_target_quantity" with "1000000" # features/step_definitions/web_steps.rb:174
Then I fill in "budget_allocation_revenue_per_amount" with "1" # features/step_definitions/web_steps.rb:174
Then I select "cpm" from "budget_allocation_target_field" # features/step_definitions/web_steps.rb:203
Then I check "Unknown" # features/step_definitions/web_steps.rb:208
Then I check "160x600 Standard" # features/step_definitions/web_steps.rb:208
Then I check "Geo Target 0" # features/step_definitions/web_steps.rb:208
Then I check "Geo Target 1" # features/step_definitions/web_steps.rb:208
Then I check "Low" # features/step_definitions/web_steps.rb:208
Then I check "Male" # features/step_definitions/web_steps.rb:208
Then I press "Save" # features/step_definitions/web_steps.rb:164
Then I should see "Successfully created budget allocation" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As an Account Manager, when creating a budget allocation, If I do not enter a name one the date range will be used # features/am_campaign_budget_allocations.feature:62
When I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I follow "Budget Allocations" within "#context_menu" # features/step_definitions/web_steps.rb:169
Then I fill in "budget_allocation_name" with "" # features/step_definitions/web_steps.rb:174
Then I fill in "budget_allocation_start_date" with "2010-09-01" # features/step_definitions/web_steps.rb:174
Then I fill in "budget_allocation_end_date" with "2010-10-01" # features/step_definitions/web_steps.rb:174
Then I choose "Total Budget" within "#budget_allocation_calc_input" # features/step_definitions/web_steps.rb:218
Then I fill in "budget_allocation_target_quantity" with "1000000" # features/step_definitions/web_steps.rb:174
Then I fill in "budget_allocation_revenue_per_amount" with "1" # features/step_definitions/web_steps.rb:174
Then I select "cpm" from "budget_allocation_target_field" # features/step_definitions/web_steps.rb:203
Then I check "Unknown" # features/step_definitions/web_steps.rb:208
Then I check "160x600 Standard" # features/step_definitions/web_steps.rb:208
Then I check "Geo Target 0" # features/step_definitions/web_steps.rb:208
Then I check "Geo Target 1" # features/step_definitions/web_steps.rb:208
Then I check "Low" # features/step_definitions/web_steps.rb:208
Then I check "Male" # features/step_definitions/web_steps.rb:208
Then I press "Save" # features/step_definitions/web_steps.rb:164
Then I should see a link for "2010-09-01 - 2010-10-01" # features/step_definitions/web_steps.rb:237
@selenium
Scenario: As an Account Manager, when creating a budget allocation, I must set a date range for the allocation # features/am_campaign_budget_allocations.feature:84
When I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I follow "Budget Allocations" within "#context_menu" # features/step_definitions/web_steps.rb:169
Then I fill in "budget_allocation_name" with "MyNewBudgetAllocation" # features/step_definitions/web_steps.rb:174
Then I fill in "budget_allocation_start_date" with "" # features/step_definitions/web_steps.rb:174
Then I fill in "budget_allocation_end_date" with "" # features/step_definitions/web_steps.rb:174
Then I choose "Total Budget" within "#budget_allocation_calc_input" # features/step_definitions/web_steps.rb:218
Then I fill in "budget_allocation_target_quantity" with "1000000" # features/step_definitions/web_steps.rb:174
Then I fill in "budget_allocation_revenue_per_amount" with "1" # features/step_definitions/web_steps.rb:174
Then I select "cpm" from "budget_allocation_target_field" # features/step_definitions/web_steps.rb:203
Then I check "Unknown" # features/step_definitions/web_steps.rb:208
Then I check "160x600 Standard" # features/step_definitions/web_steps.rb:208
Then I check "Geo Target 0" # features/step_definitions/web_steps.rb:208
Then I check "Geo Target 1" # features/step_definitions/web_steps.rb:208
Then I check "Low" # features/step_definitions/web_steps.rb:208
Then I check "Male" # features/step_definitions/web_steps.rb:208
Then I press "Save" # features/step_definitions/web_steps.rb:164
Then I should see "3 errors" # features/step_definitions/web_steps.rb:256
Then I should see "Start date can't be blank" # features/step_definitions/web_steps.rb:256
Then I should see "End date can't be blank" # features/step_definitions/web_steps.rb:256
Then I should see "End date cannot be earlier than the start date" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As an Account Manager, when creating a budget allocation, I must specify a target quantity # features/am_campaign_budget_allocations.feature:110
When I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I follow "Budget Allocations" within "#context_menu" # features/step_definitions/web_steps.rb:169
Then I fill in "budget_allocation_name" with "MyNewBudgetAllocation" # features/step_definitions/web_steps.rb:174
Then I fill in "budget_allocation_start_date" with "2010-09-01" # features/step_definitions/web_steps.rb:174
Then I fill in "budget_allocation_end_date" with "2010-10-01" # features/step_definitions/web_steps.rb:174
Then I choose "Total Budget" within "#budget_allocation_calc_input" # features/step_definitions/web_steps.rb:218
Then I fill in "budget_allocation_target_quantity" with "" # features/step_definitions/web_steps.rb:174
Then I fill in "budget_allocation_revenue_per_amount" with "1" # features/step_definitions/web_steps.rb:174
Then I select "cpm" from "budget_allocation_target_field" # features/step_definitions/web_steps.rb:203
Then I check "Unknown" # features/step_definitions/web_steps.rb:208
Then I check "160x600 Standard" # features/step_definitions/web_steps.rb:208
Then I check "Geo Target 0" # features/step_definitions/web_steps.rb:208
Then I check "Geo Target 1" # features/step_definitions/web_steps.rb:208
Then I check "Low" # features/step_definitions/web_steps.rb:208
Then I check "Male" # features/step_definitions/web_steps.rb:208
Then I press "Save" # features/step_definitions/web_steps.rb:164
Then I should see "1 error" # features/step_definitions/web_steps.rb:256
Then I should see "Target Quantity cannot be empty" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As an Account Manager, when creating a budget allocation, I must specify a revenue rate # features/am_campaign_budget_allocations.feature:133
When I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I follow "Budget Allocations" within "#context_menu" # features/step_definitions/web_steps.rb:169
Then I fill in "budget_allocation_name" with "MyNewBudgetAllocation" # features/step_definitions/web_steps.rb:174
Then I fill in "budget_allocation_start_date" with "2010-09-01" # features/step_definitions/web_steps.rb:174
Then I fill in "budget_allocation_end_date" with "2010-10-01" # features/step_definitions/web_steps.rb:174
Then I choose "Total Budget" within "#budget_allocation_calc_input" # features/step_definitions/web_steps.rb:218
Then I fill in "budget_allocation_target_quantity" with "1000000" # features/step_definitions/web_steps.rb:174
Then I fill in "budget_allocation_revenue_per_amount" with "" # features/step_definitions/web_steps.rb:174
Then I select "cpm" from "budget_allocation_target_field" # features/step_definitions/web_steps.rb:203
Then I check "Unknown" # features/step_definitions/web_steps.rb:208
Then I check "160x600 Standard" # features/step_definitions/web_steps.rb:208
Then I check "Geo Target 0" # features/step_definitions/web_steps.rb:208
Then I check "Geo Target 1" # features/step_definitions/web_steps.rb:208
Then I check "Low" # features/step_definitions/web_steps.rb:208
Then I check "Male" # features/step_definitions/web_steps.rb:208
Then I press "Save" # features/step_definitions/web_steps.rb:164
Then I should see "1 error" # features/step_definitions/web_steps.rb:256
Then I should see "Revenue per amount Rate cannot be empty" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As an Account Manager, when creating a budget allocation, I must specify at least one product # features/am_campaign_budget_allocations.feature:156
When I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I follow "Budget Allocations" within "#context_menu" # features/step_definitions/web_steps.rb:169
Then I fill in "budget_allocation_name" with "MyNewBudgetAllocation" # features/step_definitions/web_steps.rb:174
Then I fill in "budget_allocation_start_date" with "2010-09-01" # features/step_definitions/web_steps.rb:174
Then I fill in "budget_allocation_end_date" with "2010-10-01" # features/step_definitions/web_steps.rb:174
Then I choose "Total Budget" within "#budget_allocation_calc_input" # features/step_definitions/web_steps.rb:218
Then I fill in "budget_allocation_target_quantity" with "1000000" # features/step_definitions/web_steps.rb:174
Then I fill in "budget_allocation_revenue_per_amount" with "0.50" # features/step_definitions/web_steps.rb:174
Then I select "cpm" from "budget_allocation_target_field" # features/step_definitions/web_steps.rb:203
Then I check "Geo Target 0" # features/step_definitions/web_steps.rb:208
Then I check "Geo Target 1" # features/step_definitions/web_steps.rb:208
Then I check "Low" # features/step_definitions/web_steps.rb:208
Then I check "Male" # features/step_definitions/web_steps.rb:208
Then I press "Save" # features/step_definitions/web_steps.rb:164
Then I should see "1 error" # features/step_definitions/web_steps.rb:256
Then I should see "at least one product dimension must be selected" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As an Account Manager, when creating a budget allocation, I must specify at least one geo target # features/am_campaign_budget_allocations.feature:177
When I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I follow "Budget Allocations" within "#context_menu" # features/step_definitions/web_steps.rb:169
Then I fill in "budget_allocation_name" with "MyNewBudgetAllocation" # features/step_definitions/web_steps.rb:174
Then I fill in "budget_allocation_start_date" with "2010-09-01" # features/step_definitions/web_steps.rb:174
Then I fill in "budget_allocation_end_date" with "2010-10-01" # features/step_definitions/web_steps.rb:174
Then I choose "Total Budget" within "#budget_allocation_calc_input" # features/step_definitions/web_steps.rb:218
Then I fill in "budget_allocation_target_quantity" with "1000000" # features/step_definitions/web_steps.rb:174
Then I fill in "budget_allocation_revenue_per_amount" with "0.50" # features/step_definitions/web_steps.rb:174
Then I select "cpm" from "budget_allocation_target_field" # features/step_definitions/web_steps.rb:203
Then I check "Unknown" # features/step_definitions/web_steps.rb:208
Then I check "160x600 Standard" # features/step_definitions/web_steps.rb:208
Then I check "Low" # features/step_definitions/web_steps.rb:208
Then I check "Male" # features/step_definitions/web_steps.rb:208
Then I press "Save" # features/step_definitions/web_steps.rb:164
Then I should see "1 error" # features/step_definitions/web_steps.rb:256
Then I should see "at least one geo target dimension must be selected" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As an Account Manager, when creating a budget allocation, I must specify at least one of each custom dimension # features/am_campaign_budget_allocations.feature:198
When I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I follow "Budget Allocations" within "#context_menu" # features/step_definitions/web_steps.rb:169
Then I fill in "budget_allocation_name" with "MyNewBudgetAllocation" # features/step_definitions/web_steps.rb:174
Then I fill in "budget_allocation_start_date" with "2010-09-01" # features/step_definitions/web_steps.rb:174
Then I fill in "budget_allocation_end_date" with "2010-10-01" # features/step_definitions/web_steps.rb:174
Then I choose "Total Budget" within "#budget_allocation_calc_input" # features/step_definitions/web_steps.rb:218
Then I fill in "budget_allocation_target_quantity" with "1000000" # features/step_definitions/web_steps.rb:174
Then I fill in "budget_allocation_revenue_per_amount" with "0.50" # features/step_definitions/web_steps.rb:174
Then I select "cpm" from "budget_allocation_target_field" # features/step_definitions/web_steps.rb:203
Then I check "Unknown" # features/step_definitions/web_steps.rb:208
Then I check "160x600 Standard" # features/step_definitions/web_steps.rb:208
Then I check "Geo Target 0" # features/step_definitions/web_steps.rb:208
Then I check "Geo Target 1" # features/step_definitions/web_steps.rb:208
Then I press "Save" # features/step_definitions/web_steps.rb:164
Then I should see "2 errors" # features/step_definitions/web_steps.rb:256
Then I should see "at least one Income Level dimension must be selected" # features/step_definitions/web_steps.rb:256
Then I should see "at least one Gender dimension must be selected" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As an Account Manager, when creating a budget allocation, I want to see the target revenue computed for me # features/am_campaign_budget_allocations.feature:220
When I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I follow "Budget Allocations" within "#context_menu" # features/step_definitions/web_steps.rb:169
Then I fill in "budget_allocation_name" with "MyNewBudgetAllocation" # features/step_definitions/web_steps.rb:174
Then I fill in "budget_allocation_start_date" with "2010-09-01" # features/step_definitions/web_steps.rb:174
Then I fill in "budget_allocation_end_date" with "2010-10-01" # features/step_definitions/web_steps.rb:174
Then I choose "Total Budget" within "#budget_allocation_calc_input" # features/step_definitions/web_steps.rb:218
Then I fill in "budget_allocation_target_quantity" with "1000000" # features/step_definitions/web_steps.rb:174
Then I fill in "budget_allocation_revenue_per_amount" with "1" # features/step_definitions/web_steps.rb:174
Then I select "cpm" from "budget_allocation_target_field" # features/step_definitions/web_steps.rb:203
Then I check "Unknown" # features/step_definitions/web_steps.rb:208
Then I check "160x600 Standard" # features/step_definitions/web_steps.rb:208
Then I check "Geo Target 0" # features/step_definitions/web_steps.rb:208
Then I check "Geo Target 1" # features/step_definitions/web_steps.rb:208
Then I check "Low" # features/step_definitions/web_steps.rb:208
Then I check "Male" # features/step_definitions/web_steps.rb:208
Then the "budget_allocation_total_budget" field within "#budget_allocation_total_budget_input" should contain "$1,000.00" # features/step_definitions/web_steps.rb:337
@selenium
Scenario: As an Account Manager, when creating a budget allocation, I want to enter the total budget amount and have the Rate field calculate. # features/am_campaign_budget_allocations.feature:241
When I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I follow "Budget Allocations" within "#context_menu" # features/step_definitions/web_steps.rb:169
Then I fill in "budget_allocation_name" with "MyNewBudgetAllocation" # features/step_definitions/web_steps.rb:174
Then I fill in "budget_allocation_start_date" with "2010-09-01" # features/step_definitions/web_steps.rb:174
Then I fill in "budget_allocation_end_date" with "2010-10-01" # features/step_definitions/web_steps.rb:174
Then I choose "Rate" within "#budget_allocation_calc_input" # features/step_definitions/web_steps.rb:218
Then I fill in "budget_allocation_target_quantity" with "1000000" # features/step_definitions/web_steps.rb:174
Then I fill in "budget_allocation_total_budget" with "1000" # features/step_definitions/web_steps.rb:174
Then I select "cpm" from "budget_allocation_target_field" # features/step_definitions/web_steps.rb:203
Then I check "Unknown" # features/step_definitions/web_steps.rb:208
Then I check "160x600 Standard" # features/step_definitions/web_steps.rb:208
Then I check "Geo Target 0" # features/step_definitions/web_steps.rb:208
Then I check "Geo Target 1" # features/step_definitions/web_steps.rb:208
Then I check "Low" # features/step_definitions/web_steps.rb:208
Then I check "Male" # features/step_definitions/web_steps.rb:208
Then the "budget_allocation_revenue_per_amount" field within "#budget_allocation_revenue_per_amount_input" should contain "$1.00" # features/step_definitions/web_steps.rb:337
@selenium
Scenario: As an Account Manager, when creating a budget allocation, I want to enter a zero total budget amount and have the Rate field calculate. # features/am_campaign_budget_allocations.feature:262
When I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I follow "Budget Allocations" within "#context_menu" # features/step_definitions/web_steps.rb:169
Then I fill in "budget_allocation_name" with "MyNewBudgetAllocation" # features/step_definitions/web_steps.rb:174
Then I fill in "budget_allocation_start_date" with "2010-09-01" # features/step_definitions/web_steps.rb:174
Then I fill in "budget_allocation_end_date" with "2010-10-01" # features/step_definitions/web_steps.rb:174
Then I choose "Rate" within "#budget_allocation_calc_input" # features/step_definitions/web_steps.rb:218
Then I fill in "budget_allocation_target_quantity" with "1000000" # features/step_definitions/web_steps.rb:174
Then I fill in "budget_allocation_total_budget" with "0.0" # features/step_definitions/web_steps.rb:174
Then I select "cpm" from "budget_allocation_target_field" # features/step_definitions/web_steps.rb:203
Then I check "Unknown" # features/step_definitions/web_steps.rb:208
Then I check "160x600 Standard" # features/step_definitions/web_steps.rb:208
Then I check "Geo Target 0" # features/step_definitions/web_steps.rb:208
Then I check "Geo Target 1" # features/step_definitions/web_steps.rb:208
Then I check "Low" # features/step_definitions/web_steps.rb:208
Then I check "Male" # features/step_definitions/web_steps.rb:208
Then the "budget_allocation_revenue_per_amount" field within "#budget_allocation_revenue_per_amount_input" should contain "$0.00" # features/step_definitions/web_steps.rb:337
@selenium
Scenario: As an Account Manager, when creating a budget allocation, I can pick the specific dimension values for this allocation # features/am_campaign_budget_allocations.feature:283
Given reportable data exists # features/step_definitions/object_steps.rb:95
undefined method `expects_geo_targeting?' for nil:NilClass (NoMethodError)
./features/step_definitions/object_steps.rb:104:in `/^reportable data exists(?: for the (.+) department)?$/'
features/am_campaign_budget_allocations.feature:6:in `Given reportable data exists'
When I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I follow "Budget Allocations" within "#context_menu" # features/step_definitions/web_steps.rb:169
Then I fill in "budget_allocation_name" with "MyNewBudgetAllocation" # features/step_definitions/web_steps.rb:174
Then I fill in "budget_allocation_start_date" with "2010-09-01" # features/step_definitions/web_steps.rb:174
Then I fill in "budget_allocation_end_date" with "2010-10-01" # features/step_definitions/web_steps.rb:174
Then I choose "Total Budget" within "#budget_allocation_calc_input" # features/step_definitions/web_steps.rb:218
Then I fill in "budget_allocation_target_quantity" with "1000000" # features/step_definitions/web_steps.rb:174
Then I fill in "budget_allocation_revenue_per_amount" with "1" # features/step_definitions/web_steps.rb:174
Then I select "cpm" from "budget_allocation_target_field" # features/step_definitions/web_steps.rb:203
Then I check "Unknown" # features/step_definitions/web_steps.rb:208
Then I check "160x600 Standard" # features/step_definitions/web_steps.rb:208
Then I check "Geo Target 0" # features/step_definitions/web_steps.rb:208
Then I check "Geo Target 1" # features/step_definitions/web_steps.rb:208
Then I press "Save" # features/step_definitions/web_steps.rb:164
Then I should see "2 errors" # features/step_definitions/web_steps.rb:256
Then I should see "at least one Income Level dimension must be selected" # features/step_definitions/web_steps.rb:256
Then I should see "at least one Gender dimension must be selected" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As an Account Manager,when creating/editing a budget allocation, I want a warning displayed if our rate is certain to lose us money. # features/am_campaign_budget_allocations.feature:305
When I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I follow "Budget Allocations" within "#context_menu" # features/step_definitions/web_steps.rb:169
Then I fill in "budget_allocation_name" with "MyNewBudgetAllocation" # features/step_definitions/web_steps.rb:174
Then I fill in "budget_allocation_start_date" with "2010-09-01" # features/step_definitions/web_steps.rb:174
Then I fill in "budget_allocation_end_date" with "2010-10-01" # features/step_definitions/web_steps.rb:174
Then I choose "Total Budget" within "#budget_allocation_calc_input" # features/step_definitions/web_steps.rb:218
Then I fill in "budget_allocation_target_quantity" with "1000000" # features/step_definitions/web_steps.rb:174
Then I fill in "budget_allocation_revenue_per_amount" with "0.40" # features/step_definitions/web_steps.rb:174
And I confirm a js popup on the next step # features/step_definitions/web_steps.rb:445
Then I select "cpm" from "budget_allocation_target_field" # features/step_definitions/web_steps.rb:203
Then I check "Unknown" # features/step_definitions/web_steps.rb:208
Then I check "160x600 Standard" # features/step_definitions/web_steps.rb:208
Then I check "Geo Target 0" # features/step_definitions/web_steps.rb:208
Then I check "Geo Target 1" # features/step_definitions/web_steps.rb:208
Then I check "Low" # features/step_definitions/web_steps.rb:208
Then I check "Male" # features/step_definitions/web_steps.rb:208
Then I press "Save" # features/step_definitions/web_steps.rb:164
Then I should see "Successfully created budget allocation" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As an Account Manager,when creating/editing a budget allocation, I want the system to prevent me from making over-lapping budget allocations. # features/am_campaign_budget_allocations.feature:328
And I have the following budget allocations for the campaign titled "Campaign 0": # features/step_definitions/budget_allocation_steps.rb:1
| Start Date | End Date | Unit | Unit Revenue | Target Quantity | Income | Gender |
| September 1 2010 | September 30 2010 | impressions | 1.00 | 200000 | Low | Male |
| October 1 2010 | October 30 2010 | impressions | 1.00 | 200000 | Low | Male |
When I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I follow "Budget Allocations" within "#context_menu" # features/step_definitions/web_steps.rb:169
Then I follow "New" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Then I fill in "budget_allocation_name" with "Budget Allocation 3" # features/step_definitions/web_steps.rb:174
Then I fill in "budget_allocation_start_date" with "2010-09-15" # features/step_definitions/web_steps.rb:174
Then I fill in "budget_allocation_end_date" with "2010-10-15" # features/step_definitions/web_steps.rb:174
Then I choose "Total Budget" within "#budget_allocation_calc_input" # features/step_definitions/web_steps.rb:218
Then I fill in "budget_allocation_target_quantity" with "1000000" # features/step_definitions/web_steps.rb:174
Then I fill in "budget_allocation_revenue_per_amount" with "1" # features/step_definitions/web_steps.rb:174
Then I select "cpm" from "budget_allocation_target_field" # features/step_definitions/web_steps.rb:203
Then I check "Unknown" # features/step_definitions/web_steps.rb:208
Then I check "160x600 Standard" # features/step_definitions/web_steps.rb:208
Then I check "Geo Target 0" # features/step_definitions/web_steps.rb:208
Then I check "Geo Target 1" # features/step_definitions/web_steps.rb:208
Then I check "Low" # features/step_definitions/web_steps.rb:208
Then I check "Male" # features/step_definitions/web_steps.rb:208
Then I press "Save" # features/step_definitions/web_steps.rb:164
Then I should see "1 error" # features/step_definitions/web_steps.rb:256
Then I should see "Must not overlap with other budget_allocations in the campaign. (Budget Allocation 0, Budget Allocation 1)" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As an Account Manager, I want a dynamically updated notice informing me how many ads and site allocations will belong to the budget allocation # features/am_campaign_budget_allocations.feature:355
Given reportable data exists # features/step_definitions/object_steps.rb:95
undefined method `name' for nil:NilClass (NoMethodError)
./app/models/campaign.rb:111:in `block (2 levels) in <class:Campaign>'
./app/models/ad.rb:501:in `update_campaign_dates'
./features/step_definitions/object_steps.rb:173:in `/^reportable data exists(?: for the (.+) department)?$/'
features/am_campaign_budget_allocations.feature:6:in `Given reportable data exists'
And I have the following budget allocations for the campaign titled "Campaign 0": # features/step_definitions/budget_allocation_steps.rb:1
| Start Date | End Date | Unit | Unit Revenue | Target Quantity | Income | Gender |
| September 1 2010 | September 30 2010 | impressions | 1.00 | 200000 | Low | Male |
| September 1 2010 | September 25 2010 | clicks | 2.00 | 50000 | High | Male |
When I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I follow "Budget Allocations" within "#context_menu" # features/step_definitions/web_steps.rb:169
Feature: Account Manager View Campaign Dashboard
Account managers must be able to access the campaign dashboard
Background: # features/am_campaign_dashboard.feature:4
Given loaded fixtures # features/step_definitions/object_steps.rb:222
And I am logged in as account_manager user bob who belongs to the Display department # features/step_definitions/user_steps.rb:59
@selenium
Scenario: As the user, I want to view a campaign dashboard. # features/am_campaign_dashboard.feature:10
Given I have the campaign titled "Campaign 0" for the "Display" department # features/step_definitions/campaign_steps.rb:24
And I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I should see "Campaign 0" within "#mainTitle" # features/step_definitions/web_steps.rb:256
And I should see "Site Status" within ".bodytext" # features/step_definitions/web_steps.rb:256
And I should see the element ".site_status_graph" # features/step_definitions/web_steps.rb:465
And I should see the element "#active_site_performance_table" # features/step_definitions/web_steps.rb:465
@selenium
Scenario: As the user, when viewing the campaign dashboard, I want to see a link to the campaign sites page # features/am_campaign_dashboard.feature:20
Given I have the campaign titled "Campaign 0" for the "Display" department # features/step_definitions/campaign_steps.rb:24
And I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I should see a link for "Sites" within "#context_menu" # features/step_definitions/web_steps.rb:237
@selenium
Scenario: As the user, when viewing the campaign dashboard, I want to view a summary of the campaign's core values # features/am_campaign_dashboard.feature:27
Given loaded fixtures # features/step_definitions/object_steps.rb:222
undefined method `slug' for nil:NilClass (NoMethodError)
./app/models/product.rb:142:in `canonicalize_goal_type_slugs'
./app/models/product.rb:57:in `lookup!'
./app/models/product.rb:38:in `block in seed!'
./app/models/product.rb:38:in `each'
./app/models/product.rb:38:in `seed!'
./features/step_definitions/object_steps.rb:233:in `/^loaded fixtures$/'
features/am_campaign_dashboard.feature:5:in `Given loaded fixtures'
Given I have the advertiser named "Advertiser 0" # features/step_definitions/advertiser_steps.rb:1
And I have the campaign titled "Campaign 0" for the "Display" department for the advertiser named "Advertiser 0" with the start date "August 1 2010" and end date "August 30 2010" # features/step_definitions/campaign_steps.rb:24
And I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I should see "Campaign 0" within "#mainTitle h1" # features/step_definitions/web_steps.rb:256
And I should see "premium display campaign" within "#mainTitle h1 span" # features/step_definitions/web_steps.rb:256
And I should see a link for "Advertiser 0" within "#core_details" # features/step_definitions/web_steps.rb:237
And I should see "08/01/2010 - 08/30/2010" within "#core_details" # features/step_definitions/web_steps.rb:256
And I should see "Inactive" within "#core_details" # features/step_definitions/web_steps.rb:256
And I should see a link for "0 ads" within "#core_details" # features/step_definitions/web_steps.rb:237
And I should see "0 zones generated" within "#core_details" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As the user, when viewing the campaign dashboard, I want to see a summary of all budget allocations # features/am_campaign_dashboard.feature:41
Given I have the campaign titled "Campaign 0" for the "Display" department with the start date "September 1 2010" and end date "September 30 2010" # features/step_definitions/campaign_steps.rb:24
And I have the following budget allocations for the campaign titled "Campaign 0": # features/step_definitions/budget_allocation_steps.rb:1
| Start Date | End Date | Unit | Unit Revenue | Target Quantity | Income | Gender |
| September 1 2010 | September 30 2010 | impressions | 1.00 | 200000 | Low | Male |
| September 1 2010 | September 25 2010 | clicks | 2.00 | 50000 | High | Male |
And I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
expected there to be content "Campaign 0" in "Wiki Support My Account Log out\nCampaigns\nSites\nAdmin\nCampaigns\nAdvertisers\nNew Campaign\nCampaigns\nCampaigns\nNEW" (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/web_steps.rb:259:in `block (2 levels) in <top (required)>'
./features/step_definitions/web_steps.rb:153:in `with_scope'
./features/step_definitions/web_steps.rb:257:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
features/am_campaign_dashboard.feature:47:in `And I view the campaign titled "Campaign 0"'
Then I should see "Budget Allocations" within "#budget_allocations h2" # features/step_definitions/web_steps.rb:256
And I should see a link for "Budget Allocation 0" within "#budget_allocations #budget_allocation_row_1" # features/step_definitions/web_steps.rb:237
And I should see "impressions" within "#budget_allocations #budget_allocation_row_1" # features/step_definitions/web_steps.rb:256
And I should see "$1.00" within "#budget_allocations #budget_allocation_row_1" # features/step_definitions/web_steps.rb:256
And I should see "200,000" within "#budget_allocations #budget_allocation_row_1" # features/step_definitions/web_steps.rb:256
And I should see the element ".bar_chart" within "#budget_allocations #budget_allocation_row_1" # features/step_definitions/web_steps.rb:465
And I should see a link for "Edit budget allocation" within "#budget_allocations #budget_allocation_row_1" # features/step_definitions/web_steps.rb:237
And I should see a link for "Budget Allocation 1" within "#budget_allocations #budget_allocation_row_2" # features/step_definitions/web_steps.rb:237
And I should see "clicks" within "#budget_allocations #budget_allocation_row_2" # features/step_definitions/web_steps.rb:256
And I should see "$2.00" within "#budget_allocations #budget_allocation_row_2" # features/step_definitions/web_steps.rb:256
And I should see "50,000" within "#budget_allocations #budget_allocation_row_2" # features/step_definitions/web_steps.rb:256
And I should see the element ".bar_chart" within "#budget_allocations #budget_allocation_row_2" # features/step_definitions/web_steps.rb:465
And I should see a link for "Edit budget allocation" within "#budget_allocations #budget_allocation_row_2" # features/step_definitions/web_steps.rb:237
And I should see "2 budget allocations, Total: $0.00 of $0.00" within "#budget_allocations tfoot tr" # features/step_definitions/web_steps.rb:256
And I should see the element ".bar_chart" within "#budget_allocations tfoot tr" # features/step_definitions/web_steps.rb:465
@selenium
Scenario: As the user, when viewing the campaign dashboard, I want to see links to the advertiser summary report # features/am_campaign_dashboard.feature:72
Given reportable data exists # features/step_definitions/object_steps.rb:95
And I have the following budget allocations for the campaign titled "Campaign 0": # features/step_definitions/budget_allocation_steps.rb:1
| Start Date | End Date | Unit | Unit Revenue | Target Quantity | Income | Gender |
| September 1 2010 | September 30 2010 | impressions | 1.00 | 200000 | Low | Male |
| September 1 2010 | September 25 2010 | clicks | 2.00 | 50000 | High | Male |
And I have the following deliveries: # features/step_definitions/delivery_steps.rb:1
| Campaign | Product | Unit | Quantity | Date | Revenue | Cost | Overhead |
| Campaign 0 | Unknown | cpm | 1000 | September 1 2010 | 1 | .1 | .1 |
| Campaign 0 | Unknown | cpm | 5000 | September 2 2010 | 1 | .1 | .1 |
| Campaign 0 | Unknown | cpm | 3000 | September 3 2010 | 1 | .1 | .1 |
| Campaign 0 | Unknown | cpm | 4000 | September 4 2010 | 1 | .1 | .1 |
| Campaign 0 | Unknown | cpm | 6000 | September 5 2010 | 1 | .1 | .1 |
| Campaign 0 | Unknown | cpm | 5000 | September 6 2010 | 1 | .1 | .1 |
| Campaign 0 | Unknown | cpm | 4000 | September 7 2010 | 1 | .1 | .1 |
And I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
expected there to be content "Campaign 0" in "Wiki Support My Account Log out\nCampaigns\nSites\nAdmin\nCampaigns\nAdvertisers\nNew Campaign\nCampaigns\nCampaigns\nNEW" (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/web_steps.rb:259:in `block (2 levels) in <top (required)>'
./features/step_definitions/web_steps.rb:153:in `with_scope'
./features/step_definitions/web_steps.rb:257:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
features/am_campaign_dashboard.feature:87:in `And I view the campaign titled "Campaign 0"'
Then I should see a link for "Overall" within ".chart_links" # features/step_definitions/web_steps.rb:237
Then I follow "Overall" within ".chart_links" # features/step_definitions/web_steps.rb:169
@selenium
Scenario: As the user, when viewing the campaign dashboard, I want to see links to the advertiser daily report # features/am_campaign_dashboard.feature:94
Given loaded fixtures # features/step_definitions/object_steps.rb:222
undefined method `slug' for nil:NilClass (NoMethodError)
./app/models/product.rb:142:in `canonicalize_goal_type_slugs'
./app/models/product.rb:57:in `lookup!'
./app/models/product.rb:38:in `block in seed!'
./app/models/product.rb:38:in `each'
./app/models/product.rb:38:in `seed!'
./features/step_definitions/object_steps.rb:233:in `/^loaded fixtures$/'
features/am_campaign_dashboard.feature:5:in `Given loaded fixtures'
Given reportable data exists # features/step_definitions/object_steps.rb:95
And I have the following budget allocations for the campaign titled "Campaign 0": # features/step_definitions/budget_allocation_steps.rb:1
| Start Date | End Date | Unit | Unit Revenue | Target Quantity | Income | Gender |
| September 1 2010 | September 30 2010 | impressions | 1.00 | 200000 | Low | Male |
| September 1 2010 | September 25 2010 | clicks | 2.00 | 50000 | High | Male |
And I have the following deliveries: # features/step_definitions/delivery_steps.rb:1
| Campaign | Product | Unit | Quantity | Date | Revenue | Cost | Overhead |
| Campaign 0 | Unknown | cpm | 1000 | September 1 2010 | 1 | .1 | .1 |
| Campaign 0 | Unknown | cpm | 5000 | September 2 2010 | 1 | .1 | .1 |
| Campaign 0 | Unknown | cpm | 3000 | September 3 2010 | 1 | .1 | .1 |
| Campaign 0 | Unknown | cpm | 4000 | September 4 2010 | 1 | .1 | .1 |
| Campaign 0 | Unknown | cpm | 6000 | September 5 2010 | 1 | .1 | .1 |
| Campaign 0 | Unknown | cpm | 5000 | September 6 2010 | 1 | .1 | .1 |
| Campaign 0 | Unknown | cpm | 4000 | September 7 2010 | 1 | .1 | .1 |
And I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I should see a link for "Per Day" within ".chart_links" # features/step_definitions/web_steps.rb:237
Then I follow "Per Day" within ".chart_links" # features/step_definitions/web_steps.rb:169
Feature: Account Manager View Campaign Sites
Account managers must be able to view and manage campaign sites
Background: # features/am_campaign_sites.feature:4
Given loaded fixtures # features/step_definitions/object_steps.rb:222
Given reportable data exists # features/step_definitions/object_steps.rb:95
And I am logged in as account_manager user bob who belongs to the Display department # features/step_definitions/user_steps.rb:59
And I have these campaigns with these site allocations: # features/step_definitions/site_allocation_steps.rb:1
[1]
[1]
[1]
| Department | Campaign Name | Site Name | Number of Zones | Number of Flights | Start Date | End Date | Active |
| Display | Campaign 0 | Site 0 | 2 | 1 | 20100801 | 20100901 | 1 |
| Display | Campaign 0 | Site 1 | 2 | 1 | 20100901 | 20101001 | 1 |
| Display | Campaign 0 | Site 3 | 2 | 1 | 20101101 | 20101201 | 1 |
And I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
And I follow "Sites" within "#context_menu" # features/step_definitions/web_steps.rb:169
@selenium @manual
Scenario: As an Account Manager, when viewing the campaign sites page, I want to see whether or not site allocations are still active # features/am_campaign_sites.feature:17
Feature: Accounting User creating and managing commissions
As an accounting user i must be able to create and manage commissions
Background: # features/au_commissions.feature:4
Given loaded fixtures # features/step_definitions/object_steps.rb:222
Given reportable data exists for the Display department # features/step_definitions/object_steps.rb:95
Given an active user named am # features/step_definitions/user_steps.rb:1
Given user am belongs to the account_manager user role # features/step_definitions/user_steps.rb:71
Given I have these markets: # features/step_definitions/market_steps.rb:1
| Call Sign |
| Market 1 |
| Market 2 |
| Market 3 |
Given I have these companies: # features/step_definitions/company_steps.rb:1
| Name | Internal |
| RMM | true |
| LIN | true |
| Petry | true |
Given I have these sales reps: # features/step_definitions/sales_rep_steps.rb:2
| Company | Name | Initials | Email | Phone | Manager |
| RMM | Sales Rep 1 | SR1 | [email protected] | 512-123-1234 | [email protected] |
| LIN | Sales Rep 2 | SR2 | [email protected] | 512-123-1235 | [email protected] |
| Petry | Sales Rep 3 | SR3 | [email protected] | 512-123-1236 | [email protected] |
And I am logged in as accountant user bob who belongs to the Display department # features/step_definitions/user_steps.rb:59
Given user bob belongs to the accountant_admin user role # features/step_definitions/user_steps.rb:71
Then I follow "Accounting" within "#tabs" # features/step_definitions/web_steps.rb:169
Then I follow "Commissions" within "#subnav" # features/step_definitions/web_steps.rb:169
@selenium
Scenario: As a Accounting User, I can view a commission report # features/au_commissions.feature:31
Then I should see "Commission Report For" # features/step_definitions/web_steps.rb:256
Then I should see "Sales Rep 1" # features/step_definitions/web_steps.rb:256
Then I should see "Sales Rep 2" # features/step_definitions/web_steps.rb:256
Then I should see "Sales Rep 3" # features/step_definitions/web_steps.rb:256
Feature: Accounting User creating and managing insertion orders
As an accounting user i must be able to create and manage insertion orders
Background: # features/au_insertion_orders.feature:4
Given loaded fixtures # features/step_definitions/object_steps.rb:222
undefined method `slug' for nil:NilClass (NoMethodError)
./app/models/product.rb:142:in `canonicalize_goal_type_slugs'
./app/models/product.rb:57:in `lookup!'
./app/models/product.rb:38:in `block in seed!'
./app/models/product.rb:38:in `each'
./app/models/product.rb:38:in `seed!'
./features/step_definitions/object_steps.rb:233:in `/^loaded fixtures$/'
features/au_insertion_orders.feature:5:in `Given loaded fixtures'
Given reportable data exists for the Display department # features/step_definitions/object_steps.rb:95
And I am logged in as super user bob who belongs to the Display department # features/step_definitions/user_steps.rb:59
Then I follow "Campaigns" within "#tabs" # features/step_definitions/web_steps.rb:169
Then I follow "Advertisers" within "#subnav" # features/step_definitions/web_steps.rb:169
Then I follow "Advertiser 0" within "#mainContent" # features/step_definitions/web_steps.rb:169
Then I follow "IOs" within "#context_menu" # features/step_definitions/web_steps.rb:169
@selenium
Scenario: As an accountant I can create an Insertion Order # features/au_insertion_orders.feature:15
When I follow "New" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Then I fill in "insertion_order_name" with "New Insertion Order" # features/step_definitions/web_steps.rb:174
Then I fill in "insertion_order_reference_number" with "123456789" # features/step_definitions/web_steps.rb:174
Then I fill in "insertion_order_start_date" with "2011-01-01" # features/step_definitions/web_steps.rb:174
Then I fill in "insertion_order_end_date" with "2011-01-31" # features/step_definitions/web_steps.rb:174
Then I uncheck "Creative Production" # features/step_definitions/web_steps.rb:213
Then I uncheck "Display" # features/step_definitions/web_steps.rb:213
Then I uncheck "Email" # features/step_definitions/web_steps.rb:213
Then I uncheck "List Management" # features/step_definitions/web_steps.rb:213
Then I uncheck "Mobile" # features/step_definitions/web_steps.rb:213
Then I uncheck "Online Publishing" # features/step_definitions/web_steps.rb:213
Then I uncheck "PPC" # features/step_definitions/web_steps.rb:213
Then I uncheck "Remnant Banners" # features/step_definitions/web_steps.rb:213
Then I uncheck "SEM" # features/step_definitions/web_steps.rb:213
Then I uncheck "SEO" # features/step_definitions/web_steps.rb:213
Then I uncheck "Social Media" # features/step_definitions/web_steps.rb:213
Then I uncheck "Video Network" # features/step_definitions/web_steps.rb:213
Then I uncheck "Web Design" # features/step_definitions/web_steps.rb:213
Then I press "Continue" # features/step_definitions/web_steps.rb:164
Then I should see "IO was successfully created" within "#flash" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As an accountant when creating an Insertion Order i must provide a name # features/au_insertion_orders.feature:40
When I follow "New" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Then I fill in "insertion_order_name" with "" # features/step_definitions/web_steps.rb:174
Then I fill in "insertion_order_reference_number" with "123456789" # features/step_definitions/web_steps.rb:174
Then I fill in "insertion_order_start_date" with "2011-01-01" # features/step_definitions/web_steps.rb:174
Then I fill in "insertion_order_end_date" with "2011-01-31" # features/step_definitions/web_steps.rb:174
Then I uncheck "Creative Production" # features/step_definitions/web_steps.rb:213
Then I uncheck "Display" # features/step_definitions/web_steps.rb:213
Then I uncheck "Email" # features/step_definitions/web_steps.rb:213
Then I uncheck "List Management" # features/step_definitions/web_steps.rb:213
Then I uncheck "Mobile" # features/step_definitions/web_steps.rb:213
Then I uncheck "Online Publishing" # features/step_definitions/web_steps.rb:213
Then I uncheck "PPC" # features/step_definitions/web_steps.rb:213
Then I uncheck "Remnant Banners" # features/step_definitions/web_steps.rb:213
Then I uncheck "SEM" # features/step_definitions/web_steps.rb:213
Then I uncheck "SEO" # features/step_definitions/web_steps.rb:213
Then I uncheck "Social Media" # features/step_definitions/web_steps.rb:213
Then I uncheck "Video Network" # features/step_definitions/web_steps.rb:213
Then I uncheck "Web Design" # features/step_definitions/web_steps.rb:213
Then I press "Continue" # features/step_definitions/web_steps.rb:164
Then I should see "1 error" # features/step_definitions/web_steps.rb:256
And I should see "Name can't be blank" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As an accountant I want to be allowed to edit and IOs IO Number # features/au_insertion_orders.feature:65
When I follow "New" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Then I fill in "insertion_order_name" with "New Insertion Order" # features/step_definitions/web_steps.rb:174
Then I fill in "insertion_order_reference_number" with "123456789" # features/step_definitions/web_steps.rb:174
Then I fill in "insertion_order_start_date" with "2011-01-01" # features/step_definitions/web_steps.rb:174
Then I fill in "insertion_order_end_date" with "2011-01-31" # features/step_definitions/web_steps.rb:174
Then I uncheck "Creative Production" # features/step_definitions/web_steps.rb:213
Then I uncheck "Display" # features/step_definitions/web_steps.rb:213
Then I uncheck "Email" # features/step_definitions/web_steps.rb:213
Then I uncheck "List Management" # features/step_definitions/web_steps.rb:213
Then I uncheck "Mobile" # features/step_definitions/web_steps.rb:213
Then I uncheck "Online Publishing" # features/step_definitions/web_steps.rb:213
Then I uncheck "PPC" # features/step_definitions/web_steps.rb:213
Then I uncheck "Remnant Banners" # features/step_definitions/web_steps.rb:213
Then I uncheck "SEM" # features/step_definitions/web_steps.rb:213
Then I uncheck "SEO" # features/step_definitions/web_steps.rb:213
Then I uncheck "Social Media" # features/step_definitions/web_steps.rb:213
Then I uncheck "Video Network" # features/step_definitions/web_steps.rb:213
Then I uncheck "Web Design" # features/step_definitions/web_steps.rb:213
Then I press "Continue" # features/step_definitions/web_steps.rb:164
Then I should see "IO was successfully created" within "#flash" # features/step_definitions/web_steps.rb:256
And I should see "New Insertion Order" within "#mainTitle" # features/step_definitions/web_steps.rb:256
And I should see "123456789" within "#mainTitle" # features/step_definitions/web_steps.rb:256
Then I follow "Edit Insertion Order" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Then I fill in "insertion_order_reference_number" with "987654321" # features/step_definitions/web_steps.rb:174
Then I press "Continue" # features/step_definitions/web_steps.rb:164
Then I should see "Successfully updated IO" within "#flash" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As an accountant, I want to specify an invoice heading template for an IO # features/au_insertion_orders.feature:95
When I follow "New" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Then I fill in "insertion_order_name" with "New Insertion Order" # features/step_definitions/web_steps.rb:174
Then I fill in "insertion_order_reference_number" with "123456789" # features/step_definitions/web_steps.rb:174
Then I fill in "insertion_order_start_date" with "2011-01-01" # features/step_definitions/web_steps.rb:174
Then I fill in "insertion_order_end_date" with "2011-01-31" # features/step_definitions/web_steps.rb:174
Then I fill in "insertion_order_header" with "Bobs : {bobs}" # features/step_definitions/web_steps.rb:174
Then I uncheck "Creative Production" # features/step_definitions/web_steps.rb:213
Then I uncheck "Display" # features/step_definitions/web_steps.rb:213
Then I uncheck "Email" # features/step_definitions/web_steps.rb:213
Then I uncheck "List Management" # features/step_definitions/web_steps.rb:213
Then I uncheck "Mobile" # features/step_definitions/web_steps.rb:213
Then I uncheck "Online Publishing" # features/step_definitions/web_steps.rb:213
Then I uncheck "PPC" # features/step_definitions/web_steps.rb:213
Then I uncheck "Remnant Banners" # features/step_definitions/web_steps.rb:213
Then I uncheck "SEM" # features/step_definitions/web_steps.rb:213
Then I uncheck "SEO" # features/step_definitions/web_steps.rb:213
Then I uncheck "Social Media" # features/step_definitions/web_steps.rb:213
Then I uncheck "Video Network" # features/step_definitions/web_steps.rb:213
Then I uncheck "Web Design" # features/step_definitions/web_steps.rb:213
Then I press "Continue" # features/step_definitions/web_steps.rb:164
Then I should see "IO was successfully created" within "#flash" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As an accountant, when creating an IO, I want to select which departments will be associated with it # features/au_insertion_orders.feature:120
When I follow "New" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Then I fill in "insertion_order_name" with "New Insertion Order" # features/step_definitions/web_steps.rb:174
Then I fill in "insertion_order_reference_number" with "123456789" # features/step_definitions/web_steps.rb:174
Then I fill in "insertion_order_start_date" with "2011-01-01" # features/step_definitions/web_steps.rb:174
Then I fill in "insertion_order_end_date" with "2011-01-31" # features/step_definitions/web_steps.rb:174
Then I uncheck "Creative Production" # features/step_definitions/web_steps.rb:213
Then I uncheck "Display" # features/step_definitions/web_steps.rb:213
Then I uncheck "Email" # features/step_definitions/web_steps.rb:213
Then I uncheck "List Management" # features/step_definitions/web_steps.rb:213
Then I uncheck "Mobile" # features/step_definitions/web_steps.rb:213
Then I uncheck "Online Publishing" # features/step_definitions/web_steps.rb:213
Then I uncheck "PPC" # features/step_definitions/web_steps.rb:213
Then I uncheck "Remnant Banners" # features/step_definitions/web_steps.rb:213
Then I uncheck "SEM" # features/step_definitions/web_steps.rb:213
Then I uncheck "SEO" # features/step_definitions/web_steps.rb:213
Then I uncheck "Social Media" # features/step_definitions/web_steps.rb:213
Then I uncheck "Video Network" # features/step_definitions/web_steps.rb:213
Then I uncheck "Web Design" # features/step_definitions/web_steps.rb:213
Then I check "Display" # features/step_definitions/web_steps.rb:208
Then I check "Remnant Banners" # features/step_definitions/web_steps.rb:208
Then I press "Continue" # features/step_definitions/web_steps.rb:164
And I should see "New Invoice Template" within "#mainTitle" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As an accountant, when creating an IO, I want to specify the invoice template for each department selected. # features/au_insertion_orders.feature:147
Given I have these departments with these invoice templates: # features/step_definitions/invoice_template_steps.rb:1
| Department | Template Name |
| Display | Display Template 2 |
| Display | Display Template 1 |
| Remnant | Remnant Template 2 |
| Remnant | Remnant Template 1 |
When I follow "New" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Then I fill in "insertion_order_name" with "New Insertion Order" # features/step_definitions/web_steps.rb:174
Then I fill in "insertion_order_reference_number" with "123456789" # features/step_definitions/web_steps.rb:174
Then I fill in "insertion_order_start_date" with "2011-01-01" # features/step_definitions/web_steps.rb:174
Then I fill in "insertion_order_end_date" with "2011-01-31" # features/step_definitions/web_steps.rb:174
Then I uncheck "Creative Production" # features/step_definitions/web_steps.rb:213
Then I uncheck "Display" # features/step_definitions/web_steps.rb:213
Then I uncheck "Email" # features/step_definitions/web_steps.rb:213
Then I uncheck "List Management" # features/step_definitions/web_steps.rb:213
Then I uncheck "Mobile" # features/step_definitions/web_steps.rb:213
Then I uncheck "Online Publishing" # features/step_definitions/web_steps.rb:213
Then I uncheck "PPC" # features/step_definitions/web_steps.rb:213
Then I uncheck "Remnant Banners" # features/step_definitions/web_steps.rb:213
Then I uncheck "SEM" # features/step_definitions/web_steps.rb:213
Then I uncheck "SEO" # features/step_definitions/web_steps.rb:213
Then I uncheck "Social Media" # features/step_definitions/web_steps.rb:213
Then I uncheck "Video Network" # features/step_definitions/web_steps.rb:213
Then I uncheck "Web Design" # features/step_definitions/web_steps.rb:213
Then I check "Display" # features/step_definitions/web_steps.rb:208
Then I check "Remnant Banners" # features/step_definitions/web_steps.rb:208
And I select "Display Template 2" from "insertion_order_insertion_order_departments_attributes_1_invoice_template_id" # features/step_definitions/web_steps.rb:203
And I select "Remnant Template 2" from "insertion_order_insertion_order_departments_attributes_7_invoice_template_id" # features/step_definitions/web_steps.rb:203
Then I press "Continue" # features/step_definitions/web_steps.rb:164
Then I should see "IO was successfully created" within "#flash" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As an accountant, I want to specify what level to use when breaking an IO into invoices each month # features/au_insertion_orders.feature:181
When I follow "New" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Then I fill in "insertion_order_name" with "New Insertion Order" # features/step_definitions/web_steps.rb:174
Then I fill in "insertion_order_reference_number" with "123456789" # features/step_definitions/web_steps.rb:174
Then I fill in "insertion_order_start_date" with "2011-01-01" # features/step_definitions/web_steps.rb:174
Then I fill in "insertion_order_end_date" with "2011-01-31" # features/step_definitions/web_steps.rb:174
Then I uncheck "Creative Production" # features/step_definitions/web_steps.rb:213
Then I uncheck "Display" # features/step_definitions/web_steps.rb:213
Then I uncheck "Email" # features/step_definitions/web_steps.rb:213
Then I uncheck "List Management" # features/step_definitions/web_steps.rb:213
Then I uncheck "Mobile" # features/step_definitions/web_steps.rb:213
Then I uncheck "Online Publishing" # features/step_definitions/web_steps.rb:213
Then I uncheck "PPC" # features/step_definitions/web_steps.rb:213
Then I uncheck "Remnant Banners" # features/step_definitions/web_steps.rb:213
Then I uncheck "SEM" # features/step_definitions/web_steps.rb:213
Then I uncheck "SEO" # features/step_definitions/web_steps.rb:213
Then I uncheck "Social Media" # features/step_definitions/web_steps.rb:213
Then I uncheck "Video Network" # features/step_definitions/web_steps.rb:213
Then I uncheck "Web Design" # features/step_definitions/web_steps.rb:213
And I select "Department" from "insertion_order_invoice_grouping" # features/step_definitions/web_steps.rb:203
Then I press "Continue" # features/step_definitions/web_steps.rb:164
Then I should see "IO was successfully created" within "#flash" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As an accountant, when creating an IO for a department without an invoice template I want to define that template # features/au_insertion_orders.feature:206
When I follow "New" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Then I fill in "insertion_order_name" with "New Insertion Order" # features/step_definitions/web_steps.rb:174
Then I fill in "insertion_order_reference_number" with "123456789" # features/step_definitions/web_steps.rb:174
Then I fill in "insertion_order_start_date" with "2011-01-01" # features/step_definitions/web_steps.rb:174
Then I fill in "insertion_order_end_date" with "2011-01-31" # features/step_definitions/web_steps.rb:174
Then I uncheck "Creative Production" # features/step_definitions/web_steps.rb:213
Then I uncheck "Display" # features/step_definitions/web_steps.rb:213
Then I uncheck "Email" # features/step_definitions/web_steps.rb:213
Then I uncheck "List Management" # features/step_definitions/web_steps.rb:213
Then I uncheck "Mobile" # features/step_definitions/web_steps.rb:213
Then I uncheck "Online Publishing" # features/step_definitions/web_steps.rb:213
Then I uncheck "PPC" # features/step_definitions/web_steps.rb:213
Then I uncheck "Remnant Banners" # features/step_definitions/web_steps.rb:213
Then I uncheck "SEM" # features/step_definitions/web_steps.rb:213
Then I uncheck "SEO" # features/step_definitions/web_steps.rb:213
Then I uncheck "Social Media" # features/step_definitions/web_steps.rb:213
Then I uncheck "Video Network" # features/step_definitions/web_steps.rb:213
Then I uncheck "Web Design" # features/step_definitions/web_steps.rb:213
Then I check "Display" # features/step_definitions/web_steps.rb:208
Then I press "Continue" # features/step_definitions/web_steps.rb:164
And I should see "New Invoice Template" within "#mainTitle" # features/step_definitions/web_steps.rb:256
Then I fill in "invoice_template_name" with "MyShinyTemplate" # features/step_definitions/web_steps.rb:174
And I choose "Any Advertiser or Agency" # features/step_definitions/web_steps.rb:218
And I check "Ad" within "#invoice_template_dimension_fields_input" # features/step_definitions/web_steps.rb:208
And I check "Agency" within "#invoice_template_dimension_fields_input" # features/step_definitions/web_steps.rb:208
And I check "Acquisitions" within "#invoice_template_fact_fields_input" # features/step_definitions/web_steps.rb:208
And I check "Clicks" within "#invoice_template_fact_fields_input" # features/step_definitions/web_steps.rb:208
Then I press "Continue" # features/step_definitions/web_steps.rb:164
@selenium
Scenario: As an accountant, when creating an IO and a custom invoice template, I want to specify the scope that the template is usable for # features/au_insertion_orders.feature:238
When I follow "New" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Then I fill in "insertion_order_name" with "New Insertion Order" # features/step_definitions/web_steps.rb:174
Then I fill in "insertion_order_reference_number" with "123456789" # features/step_definitions/web_steps.rb:174
Then I fill in "insertion_order_start_date" with "2011-01-01" # features/step_definitions/web_steps.rb:174
Then I fill in "insertion_order_end_date" with "2011-01-31" # features/step_definitions/web_steps.rb:174
Then I uncheck "Creative Production" # features/step_definitions/web_steps.rb:213
Then I uncheck "Display" # features/step_definitions/web_steps.rb:213
Then I uncheck "Email" # features/step_definitions/web_steps.rb:213
Then I uncheck "List Management" # features/step_definitions/web_steps.rb:213
Then I uncheck "Mobile" # features/step_definitions/web_steps.rb:213
Then I uncheck "Online Publishing" # features/step_definitions/web_steps.rb:213
Then I uncheck "PPC" # features/step_definitions/web_steps.rb:213
Then I uncheck "Remnant Banners" # features/step_definitions/web_steps.rb:213
Then I uncheck "SEM" # features/step_definitions/web_steps.rb:213
Then I uncheck "SEO" # features/step_definitions/web_steps.rb:213
Then I uncheck "Social Media" # features/step_definitions/web_steps.rb:213
Then I uncheck "Video Network" # features/step_definitions/web_steps.rb:213
Then I uncheck "Web Design" # features/step_definitions/web_steps.rb:213
Then I check "Display" # features/step_definitions/web_steps.rb:208
Then I press "Continue" # features/step_definitions/web_steps.rb:164
And I should see "New Invoice Template" within "#mainTitle" # features/step_definitions/web_steps.rb:256
Then I fill in "invoice_template_name" with "MyShinyTemplate" # features/step_definitions/web_steps.rb:174
And I choose "Any Advertiser or Agency" # features/step_definitions/web_steps.rb:218
And I choose "Just Agency 0" # features/step_definitions/web_steps.rb:218
And I choose "Just Advertiser 0" # features/step_definitions/web_steps.rb:218
And I choose "Just New Insertion Order" # features/step_definitions/web_steps.rb:218
And I check "Ad" within "#invoice_template_dimension_fields_input" # features/step_definitions/web_steps.rb:208
And I check "Agency" within "#invoice_template_dimension_fields_input" # features/step_definitions/web_steps.rb:208
And I check "Acquisitions" within "#invoice_template_fact_fields_input" # features/step_definitions/web_steps.rb:208
And I check "Clicks" within "#invoice_template_fact_fields_input" # features/step_definitions/web_steps.rb:208
Then I press "Continue" # features/step_definitions/web_steps.rb:164
And I should see "New Insertion Order" within "#mainTitle" # features/step_definitions/web_steps.rb:256
And I should see "123456789" within "#mainTitle" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As an accountant, when creating an IO for multiple departments without invoice templates I want to define templates for each department selected # features/au_insertion_orders.feature:275
When I follow "New" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Then I fill in "insertion_order_name" with "New Insertion Order" # features/step_definitions/web_steps.rb:174
Then I fill in "insertion_order_reference_number" with "123456789" # features/step_definitions/web_steps.rb:174
Then I fill in "insertion_order_start_date" with "2011-01-01" # features/step_definitions/web_steps.rb:174
Then I fill in "insertion_order_end_date" with "2011-01-31" # features/step_definitions/web_steps.rb:174
Then I uncheck "Creative Production" # features/step_definitions/web_steps.rb:213
Then I uncheck "Display" # features/step_definitions/web_steps.rb:213
Then I uncheck "Email" # features/step_definitions/web_steps.rb:213
Then I uncheck "List Management" # features/step_definitions/web_steps.rb:213
Then I uncheck "Mobile" # features/step_definitions/web_steps.rb:213
Then I uncheck "Online Publishing" # features/step_definitions/web_steps.rb:213
Then I uncheck "PPC" # features/step_definitions/web_steps.rb:213
Then I uncheck "Remnant Banners" # features/step_definitions/web_steps.rb:213
Then I uncheck "SEM" # features/step_definitions/web_steps.rb:213
Then I uncheck "SEO" # features/step_definitions/web_steps.rb:213
Then I uncheck "Social Media" # features/step_definitions/web_steps.rb:213
Then I uncheck "Video Network" # features/step_definitions/web_steps.rb:213
Then I uncheck "Web Design" # features/step_definitions/web_steps.rb:213
Then I check "Display" # features/step_definitions/web_steps.rb:208
Then I check "Remnant Banners" # features/step_definitions/web_steps.rb:208
Then I press "Continue" # features/step_definitions/web_steps.rb:164
And I should see "New Invoice Template" within "#mainTitle" # features/step_definitions/web_steps.rb:256
And I should see "Display" # features/step_definitions/web_steps.rb:256
Then I fill in "invoice_template_name" with "MyShinyTemplate" # features/step_definitions/web_steps.rb:174
And I choose "Any Advertiser or Agency" # features/step_definitions/web_steps.rb:218
And I check "Ad" within "#invoice_template_dimension_fields_input" # features/step_definitions/web_steps.rb:208
And I check "Agency" within "#invoice_template_dimension_fields_input" # features/step_definitions/web_steps.rb:208
And I check "Acquisitions" within "#invoice_template_fact_fields_input" # features/step_definitions/web_steps.rb:208
And I check "Clicks" within "#invoice_template_fact_fields_input" # features/step_definitions/web_steps.rb:208
Then I press "Continue" # features/step_definitions/web_steps.rb:164
And I should see "New Invoice Template" within "#mainTitle" # features/step_definitions/web_steps.rb:256
And I should see "Remnant Banners" # features/step_definitions/web_steps.rb:256
Then I fill in "invoice_template_name" with "MyShinyTemplate" # features/step_definitions/web_steps.rb:174
And I choose "Any Advertiser or Agency" # features/step_definitions/web_steps.rb:218
And I check "Ad" within "#invoice_template_dimension_fields_input" # features/step_definitions/web_steps.rb:208
And I check "Agency" within "#invoice_template_dimension_fields_input" # features/step_definitions/web_steps.rb:208
And I check "Acquisitions" within "#invoice_template_fact_fields_input" # features/step_definitions/web_steps.rb:208
And I check "Clicks" within "#invoice_template_fact_fields_input" # features/step_definitions/web_steps.rb:208
Then I press "Continue" # features/step_definitions/web_steps.rb:164
And I should see "New Insertion Order" within "#mainTitle" # features/step_definitions/web_steps.rb:256
And I should see "123456789" within "#mainTitle" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As an accountant, I want to see a preview of the heading template with example data, as I type # features/au_insertion_orders.feature:320
When I follow "New" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Then I fill in "insertion_order_name" with "New Insertion Order" # features/step_definitions/web_steps.rb:174
Then I fill in "insertion_order_reference_number" with "123456789" # features/step_definitions/web_steps.rb:174
Then I fill in "insertion_order_start_date" with "2011-01-01" # features/step_definitions/web_steps.rb:174
Then I fill in "insertion_order_end_date" with "2011-01-31" # features/step_definitions/web_steps.rb:174
Then I uncheck "Creative Production" # features/step_definitions/web_steps.rb:213
Then I uncheck "Display" # features/step_definitions/web_steps.rb:213
Then I uncheck "Email" # features/step_definitions/web_steps.rb:213
Then I uncheck "List Management" # features/step_definitions/web_steps.rb:213
Then I uncheck "Mobile" # features/step_definitions/web_steps.rb:213
Then I uncheck "Online Publishing" # features/step_definitions/web_steps.rb:213
Then I uncheck "PPC" # features/step_definitions/web_steps.rb:213
Then I uncheck "Remnant Banners" # features/step_definitions/web_steps.rb:213
Then I uncheck "SEM" # features/step_definitions/web_steps.rb:213
Then I uncheck "SEO" # features/step_definitions/web_steps.rb:213
Then I uncheck "Social Media" # features/step_definitions/web_steps.rb:213
Then I uncheck "Video Network" # features/step_definitions/web_steps.rb:213
Then I uncheck "Web Design" # features/step_definitions/web_steps.rb:213
Then I check "Display" # features/step_definitions/web_steps.rb:208
Then I press "Continue" # features/step_definitions/web_steps.rb:164
And I should see "New Invoice Template" within "#mainTitle" # features/step_definitions/web_steps.rb:256
Then I fill in "invoice_template_name" with "MyShinyTemplate" # features/step_definitions/web_steps.rb:174
And I choose "Any Advertiser or Agency" # features/step_definitions/web_steps.rb:218
And I choose "Just Agency 0" # features/step_definitions/web_steps.rb:218
And I choose "Just Advertiser 0" # features/step_definitions/web_steps.rb:218
And I choose "Just New Insertion Order" # features/step_definitions/web_steps.rb:218
And I check "Ad" within "#invoice_template_dimension_fields_input" # features/step_definitions/web_steps.rb:208
And I check "Agency" within "#invoice_template_dimension_fields_input" # features/step_definitions/web_steps.rb:208
And I check "Acquisitions" within "#invoice_template_fact_fields_input" # features/step_definitions/web_steps.rb:208
And I check "Clicks" within "#invoice_template_fact_fields_input" # features/step_definitions/web_steps.rb:208
And the "invoice_template_column_headers_0" field should contain "Agency::Ad" # features/step_definitions/web_steps.rb:337
@selenium
Scenario: As an accountant, when creating a new IO, I want the IO number to default to YYYY-MM-SEQ. # features/au_insertion_orders.feature:355
When I follow "New" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Then I fill in "insertion_order_name" with "New Insertion Order" # features/step_definitions/web_steps.rb:174
Then I fill in "insertion_order_start_date" with "2011-01-01" # features/step_definitions/web_steps.rb:174
Then I fill in "insertion_order_end_date" with "2011-01-31" # features/step_definitions/web_steps.rb:174
Then I uncheck "Creative Production" # features/step_definitions/web_steps.rb:213
Then I uncheck "Display" # features/step_definitions/web_steps.rb:213
Then I uncheck "Email" # features/step_definitions/web_steps.rb:213
Then I uncheck "List Management" # features/step_definitions/web_steps.rb:213
Then I uncheck "Mobile" # features/step_definitions/web_steps.rb:213
Then I uncheck "Online Publishing" # features/step_definitions/web_steps.rb:213
Then I uncheck "PPC" # features/step_definitions/web_steps.rb:213
Then I uncheck "Remnant Banners" # features/step_definitions/web_steps.rb:213
Then I uncheck "SEM" # features/step_definitions/web_steps.rb:213
Then I uncheck "SEO" # features/step_definitions/web_steps.rb:213
Then I uncheck "Social Media" # features/step_definitions/web_steps.rb:213
Then I uncheck "Video Network" # features/step_definitions/web_steps.rb:213
Then I uncheck "Web Design" # features/step_definitions/web_steps.rb:213
Then I press "Continue" # features/step_definitions/web_steps.rb:164
Then I should see "IO was successfully created" within "#flash" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As an accountant, when creating a new IO, I should not be allowed to create overlapping IOs # features/au_insertion_orders.feature:378
And I have the following insertion orders: # features/step_definitions/insertion_order_steps.rb:1
| Advertiser | Name | Start Date | End Date | Departments | Template | Campaigns |
| Advertiser 0 | IO 1 | September 1 2010 | September 30 2010 | Display | Display Template 1 | Campaign 0 |
Then I follow "Campaigns" within "#tabs" # features/step_definitions/web_steps.rb:169
Then I follow "Advertisers" within "#subnav" # features/step_definitions/web_steps.rb:169
Then I follow "Advertiser 0" within "#mainContent" # features/step_definitions/web_steps.rb:169
Then I follow "IOs" within "#context_menu" # features/step_definitions/web_steps.rb:169
When I follow "New" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Then I fill in "insertion_order_name" with "Overlapping Insertion Order" # features/step_definitions/web_steps.rb:174
Then I fill in "insertion_order_reference_number" with "123456790" # features/step_definitions/web_steps.rb:174
Then I fill in "insertion_order_start_date" with "2010-09-21" # features/step_definitions/web_steps.rb:174
Then I fill in "insertion_order_end_date" with "2010-10-21" # features/step_definitions/web_steps.rb:174
Then I check "Advertiser 0 - Campaign 0" within "#insertion_order_campaigns_input" # features/step_definitions/web_steps.rb:208
Then I uncheck "Creative Production" # features/step_definitions/web_steps.rb:213
Then I uncheck "Display" # features/step_definitions/web_steps.rb:213
Then I uncheck "Email" # features/step_definitions/web_steps.rb:213
Then I uncheck "List Management" # features/step_definitions/web_steps.rb:213
Then I uncheck "Mobile" # features/step_definitions/web_steps.rb:213
Then I uncheck "Online Publishing" # features/step_definitions/web_steps.rb:213
Then I uncheck "PPC" # features/step_definitions/web_steps.rb:213
Then I uncheck "Remnant Banners" # features/step_definitions/web_steps.rb:213
Then I uncheck "SEM" # features/step_definitions/web_steps.rb:213
Then I uncheck "SEO" # features/step_definitions/web_steps.rb:213
Then I uncheck "Social Media" # features/step_definitions/web_steps.rb:213
Then I uncheck "Video Network" # features/step_definitions/web_steps.rb:213
Then I uncheck "Web Design" # features/step_definitions/web_steps.rb:213
Then I check "Display" # features/step_definitions/web_steps.rb:208
Then I press "Continue" # features/step_definitions/web_steps.rb:164
Then I should see "Must not overlap with other insertion orders. (io 1)" # features/step_definitions/web_steps.rb:256
Feature: Accounting User creating and managing invoice templates
As an accounting user i must be able to create and manage invoice templates
Background: # features/au_invoice_templates.feature:4
Given loaded fixtures # features/step_definitions/object_steps.rb:222
Given reportable data exists for the Display department # features/step_definitions/object_steps.rb:95
And I am logged in as accountant user bob who belongs to the Display department # features/step_definitions/user_steps.rb:59
Then I follow "Accounting" within "#tabs" # features/step_definitions/web_steps.rb:169
Then I follow "Invoice Templates" within "#subnav" # features/step_definitions/web_steps.rb:169
@selenium
Scenario: As an accountant I can create an Invoice Template # features/au_invoice_templates.feature:13
When I follow "New" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
And I select "Display" from "invoice_template_department_id" # features/step_definitions/web_steps.rb:203
And I check "Ad" within "#invoice_template_dimension_fields_input" # features/step_definitions/web_steps.rb:208
And I check "Clicks" within "#invoice_template_fact_fields_input" # features/step_definitions/web_steps.rb:208
Then I press "Continue" # features/step_definitions/web_steps.rb:164
Then I should see "Successfully Created Invoice Template" within "#flash" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As an accountant, when editing a custom invoice template, I want to select data fields I want to reference in the template # features/au_invoice_templates.feature:23
When I follow "New" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
And I select "Display" from "invoice_template_department_id" # features/step_definitions/web_steps.rb:203
And I check "Ad" within "#invoice_template_dimension_fields_input" # features/step_definitions/web_steps.rb:208
And I check "Agency" within "#invoice_template_dimension_fields_input" # features/step_definitions/web_steps.rb:208
And I check "Campaign" within "#invoice_template_dimension_fields_input" # features/step_definitions/web_steps.rb:208
And I check "Client" within "#invoice_template_dimension_fields_input" # features/step_definitions/web_steps.rb:208
And I check "Demographic" within "#invoice_template_dimension_fields_input" # features/step_definitions/web_steps.rb:208
And I check "Department" within "#invoice_template_dimension_fields_input" # features/step_definitions/web_steps.rb:208
And I check "Geo" within "#invoice_template_dimension_fields_input" # features/step_definitions/web_steps.rb:208
And I check "Product" within "#invoice_template_dimension_fields_input" # features/step_definitions/web_steps.rb:208
And I check "Rate" within "#invoice_template_dimension_fields_input" # features/step_definitions/web_steps.rb:208
And I check "Acquisitions" within "#invoice_template_fact_fields_input" # features/step_definitions/web_steps.rb:208
And I check "Clicks" within "#invoice_template_fact_fields_input" # features/step_definitions/web_steps.rb:208
And I check "Gross Rate" within "#invoice_template_fact_fields_input" # features/step_definitions/web_steps.rb:208
And I check "Impressions" within "#invoice_template_fact_fields_input" # features/step_definitions/web_steps.rb:208
And I check "Net Rate" within "#invoice_template_fact_fields_input" # features/step_definitions/web_steps.rb:208
Then I press "Continue" # features/step_definitions/web_steps.rb:164
Then I should see "Successfully Created Invoice Template" within "#flash" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As an accountant, when editing a custom invoice template, I want to be able to specify a "group by" dimension. # features/au_invoice_templates.feature:45
When I follow "New" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
And I select "Display" from "invoice_template_department_id" # features/step_definitions/web_steps.rb:203
And I check "Ad" within "#invoice_template_dimension_fields_input" # features/step_definitions/web_steps.rb:208
And I check "Acquisitions" within "#invoice_template_fact_fields_input" # features/step_definitions/web_steps.rb:208
And I select "Ad" from "invoice_template_group_by" # features/step_definitions/web_steps.rb:203
Then I press "Continue" # features/step_definitions/web_steps.rb:164
Then I should see "Successfully Created Invoice Template" within "#flash" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As an accountant, when editing a custom invoice template, I want to be able to edit a format textbox for section headings, if and only if the template has a "group by" dimension. # features/au_invoice_templates.feature:57
When I follow "New" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
And I select "Display" from "invoice_template_department_id" # features/step_definitions/web_steps.rb:203
And I check "Ad" within "#invoice_template_dimension_fields_input" # features/step_definitions/web_steps.rb:208
And I check "Acquisitions" within "#invoice_template_fact_fields_input" # features/step_definitions/web_steps.rb:208
And I select "Ad" from "invoice_template_group_by" # features/step_definitions/web_steps.rb:203
And I fill in "invoice_template_section_header" with "Ad: {ad}" # features/step_definitions/web_steps.rb:174
Then I press "Continue" # features/step_definitions/web_steps.rb:164
Then I should see "Successfully Created Invoice Template" within "#flash" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As an accountant, when editing a custom invoice template, I want the section heading format textbox to default to a reasonable value based on the template's "group by" dimension. # features/au_invoice_templates.feature:69
When I follow "New" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
And I select "Display" from "invoice_template_department_id" # features/step_definitions/web_steps.rb:203
And I check "Ad" within "#invoice_template_dimension_fields_input" # features/step_definitions/web_steps.rb:208
And I check "Acquisitions" within "#invoice_template_fact_fields_input" # features/step_definitions/web_steps.rb:208
And I select "Ad" from "invoice_template_group_by" # features/step_definitions/web_steps.rb:203
Then I press "Continue" # features/step_definitions/web_steps.rb:164
Then I should see "Successfully Created Invoice Template" within "#flash" # features/step_definitions/web_steps.rb:256
Then I follow "Edit Invoice Template" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Then the "invoice_template_section_header" field within "#invoice_template_section_header_input" should contain "Ad: {ad}" # features/step_definitions/web_steps.rb:337
@selenium
Scenario: As an accountant, when editing a custom invoice template, I want to select data fields I want to reference in the template # features/au_invoice_templates.feature:82
Given reportable data exists for the Display department # features/step_definitions/object_steps.rb:95
Couldn't find Campaign with id=1 (ActiveRecord::RecordNotFound)
./app/models/dimension.rb:205:in `inferences'
./app/models/delivery.rb:588:in `block in verify_data_integrity'
./app/models/delivery.rb:596:in `call'
./app/models/delivery.rb:596:in `block in verify_data_integrity'
./app/models/delivery.rb:595:in `each'
./app/models/delivery.rb:595:in `verify_data_integrity'
./app/models/meta_delivery.rb:300:in `create_single_day_delivery'
./app/models/meta_delivery.rb:270:in `regenerate_deliveries'
./features/step_definitions/object_steps.rb:192:in `/^reportable data exists(?: for the (.+) department)?$/'
features/au_invoice_templates.feature:6:in `Given reportable data exists for the Display department'
When I follow "New" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
And I select "Display" from "invoice_template_department_id" # features/step_definitions/web_steps.rb:203
And I check "Ad" within "#invoice_template_dimension_fields_input" # features/step_definitions/web_steps.rb:208
And I check "Client" within "#invoice_template_dimension_fields_input" # features/step_definitions/web_steps.rb:208
And I check "Rate" within "#invoice_template_dimension_fields_input" # features/step_definitions/web_steps.rb:208
And I check "Acquisitions" within "#invoice_template_fact_fields_input" # features/step_definitions/web_steps.rb:208
And I select "Ad" from "invoice_template_group_by" # features/step_definitions/web_steps.rb:203
Then I press "Continue" # features/step_definitions/web_steps.rb:164
Then I should see "Successfully Created Invoice Template" within "#flash" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As an accountant, when editing a custom invoice template, I want to be able to remove columns # features/au_invoice_templates.feature:95
Given loaded fixtures # features/step_definitions/object_steps.rb:222
Mysql2::Error: Duplicate entry 'display' for key 'departments_slug_idx': INSERT INTO `departments` (`assistant_id`, `created_at`, `department_type_id`, `email`, `external_data_sources`, `mpr_format`, `mpr_required_fields`, `name`, `position`, `premium_quick_books_item_id`, `premium_volume`, `senior_buyer_id`, `senior_planner_id`, `slug`, `updated_at`, `volume_quick_books_item_id`, `vp_id`) VALUES (NULL, '2012-09-07 13:39:42', 1, '[email protected]', NULL, 'display', '---\n- notes\n- flight_start\n- client_rate_type\n- budget_estimate_rate_type\n- budget\n', 'Display', 1, NULL, 'premium', NULL, NULL, 'display', '2012-09-07 13:39:42', NULL, NULL) (ActiveRecord::RecordNotUnique)
./config/initializers/mysql.rb:7:in `execute'
./app/models/department.rb:199:in `lookup!'
./app/models/department.rb:186:in `lookup'
./app/models/product.rb:162:in `attributes_for'
./app/models/product.rb:51:in `lookup!'
./app/models/product.rb:38:in `block in seed!'
./app/models/product.rb:38:in `each'
./app/models/product.rb:38:in `seed!'
./features/step_definitions/object_steps.rb:233:in `/^loaded fixtures$/'
features/au_invoice_templates.feature:5:in `Given loaded fixtures'
When I follow "New" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
And I select "Display" from "invoice_template_department_id" # features/step_definitions/web_steps.rb:203
And I fill in "invoice_template_name" with "NewInvoiceTemplate" # features/step_definitions/web_steps.rb:174
And I check "Ad" within "#invoice_template_dimension_fields_input" # features/step_definitions/web_steps.rb:208
And I check "Client" within "#invoice_template_dimension_fields_input" # features/step_definitions/web_steps.rb:208
And I check "Rate" within "#invoice_template_dimension_fields_input" # features/step_definitions/web_steps.rb:208
And I check "Acquisitions" within "#invoice_template_fact_fields_input" # features/step_definitions/web_steps.rb:208
And I select "Ad" from "invoice_template_group_by" # features/step_definitions/web_steps.rb:203
Then I press "Continue" # features/step_definitions/web_steps.rb:164
Then I should see "Successfully Created Invoice Template" within "#flash" # features/step_definitions/web_steps.rb:256
Then I follow "Edit Invoice Template" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
And I uncheck "Client" within "#invoice_template_dimension_fields_input" # features/step_definitions/web_steps.rb:213
And I uncheck "Rate" within "#invoice_template_dimension_fields_input" # features/step_definitions/web_steps.rb:213
Then I press "Continue" # features/step_definitions/web_steps.rb:164
Then I should see "Successfully Created Invoice Template" within "#flash" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As an accountant, when editing a custom invoice template, I want to be able to display subtotals for groupings # features/au_invoice_templates.feature:114
When I follow "New" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
And I select "Display" from "invoice_template_department_id" # features/step_definitions/web_steps.rb:203
And I check "Ad" within "#invoice_template_dimension_fields_input" # features/step_definitions/web_steps.rb:208
And I select "Ad" from "invoice_template_group_by" # features/step_definitions/web_steps.rb:203
And I check "Show Subtotals for groupings?" # features/step_definitions/web_steps.rb:208
Then I should see "Subtotal footer" within "#invoice_template_subtotal_footer_input" # features/step_definitions/web_steps.rb:256
Then I press "Continue" # features/step_definitions/web_steps.rb:164
Then I should see "Successfully Created Invoice Template" within "#flash" # features/step_definitions/web_steps.rb:256
Feature: Accounting User creating and managing invoices
As an accounting user i must be able to create and manage invoices
Background: # features/au_invoices.feature:4
Given loaded fixtures # features/step_definitions/object_steps.rb:222
undefined method `slug' for nil:NilClass (NoMethodError)
./app/models/product.rb:142:in `canonicalize_goal_type_slugs'
./app/models/product.rb:57:in `lookup!'
./app/models/product.rb:38:in `block in seed!'
./app/models/product.rb:38:in `each'
./app/models/product.rb:38:in `seed!'
./features/step_definitions/object_steps.rb:233:in `/^loaded fixtures$/'
features/au_invoices.feature:5:in `Given loaded fixtures'
Given reportable data exists for the Display department # features/step_definitions/object_steps.rb:95
Given reportable data exists for the SEM department # features/step_definitions/object_steps.rb:95
And I have these departments with these invoice templates: # features/step_definitions/invoice_template_steps.rb:1
| Department | Template Name |
| Display | Display Template 2 |
| Display | Display Template 1 |
And I have the following insertion orders: # features/step_definitions/insertion_order_steps.rb:1
| Advertiser | Name | Start Date | End Date | Departments | Template | Campaigns |
| Advertiser 0 | IO 1 | September 1 2010 | September 30 2010 | Display | Display Template 1 | Campaign 0 |
And I have the following deliveries: # features/step_definitions/delivery_steps.rb:1
| Campaign | Product | Unit | Quantity | Date | Revenue | Cost | Overhead |
| Campaign 0 | Unknown | cpm | 1000 | September 1 2010 | 1 | .1 | .1 |
| Campaign 0 | 160x600 Standard | cpm | 10000 | September 2 2010 | 1 | .1 | .1 |
And I am logged in as accountant user bob who belongs to the Display department # features/step_definitions/user_steps.rb:59
Then I follow "Accounting" within "#tabs" # features/step_definitions/web_steps.rb:169
Then I follow "Invoices" within "#subnav" # features/step_definitions/web_steps.rb:169
@selenium
Scenario: As an accountant I can create Invoices for all advertisers within a selected month # features/au_invoices.feature:27
When I follow "New Set" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Then wait for the page to load # features/step_definitions/web_steps.rb:455
Then I select "September 2010" from "date_range" # features/step_definitions/web_steps.rb:203
And there are no delayed jobs # features/step_definitions/delayed_job_steps.rb:1
And I press "Generate" # features/step_definitions/web_steps.rb:164
Then 1 delayed job objects should exist # features/step_definitions/delayed_job_steps.rb:15
Then I should see "Generating invoices for 1 IO" within "#flash" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As an accountant I can create Invoices for a single advertisers within a selected month # features/au_invoices.feature:39
Then I follow "Campaigns" within "#tabs" # features/step_definitions/web_steps.rb:169
Then I follow "Advertisers" within "#subnav" # features/step_definitions/web_steps.rb:169
Then I follow "Advertiser 0" # features/step_definitions/web_steps.rb:169
Then I follow "Invoices" within "#context_menu" # features/step_definitions/web_steps.rb:169
When I follow "New" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Then I select "September 2010" from "date_range" # features/step_definitions/web_steps.rb:203
And there are no delayed jobs # features/step_definitions/delayed_job_steps.rb:1
And I press "Generate" # features/step_definitions/web_steps.rb:164
Then 1 delayed job objects should exist # features/step_definitions/delayed_job_steps.rb:15
Then I should see "Generating invoices for 1 IO" within "#flash" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As an accountant, I want to be able to preview the generated invoices before syncing to QB # features/au_invoices.feature:53
When I follow "New Set" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Then I select "September 2010" from "date_range" # features/step_definitions/web_steps.rb:203
And there are no delayed jobs # features/step_definitions/delayed_job_steps.rb:1
And I press "Generate" # features/step_definitions/web_steps.rb:164
Then 1 delayed job objects should exist # features/step_definitions/delayed_job_steps.rb:15
Then I should see "Generating invoices for 1 IO" within "#flash" # features/step_definitions/web_steps.rb:256
Then show me the delayed jobs # features/step_definitions/delayed_job_steps.rb:5
Then all delayed jobs are run # features/step_definitions/delayed_job_steps.rb:24
Then 0 delayed job objects should exist # features/step_definitions/delayed_job_steps.rb:15
And I follow "Invoices" within "#subnav" # features/step_definitions/web_steps.rb:169
Then I should see a link for "September 2010" # features/step_definitions/web_steps.rb:237
When I follow "September 2010" # features/step_definitions/web_steps.rb:169
Then I should see "TOTAL 11,000 impressions $1.00 cpm" # features/step_definitions/web_steps.rb:256
And I should see "Total: $11.00" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As an accountant, I want to release a set of generated invoices to QB for sync # features/au_invoices.feature:73
When "Advertiser 0" has been released to quickbooks # features/step_definitions/receivable_steps.rb:1
When I follow "New Set" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Then I select "September 2010" from "date_range" # features/step_definitions/web_steps.rb:203
And there are no delayed jobs # features/step_definitions/delayed_job_steps.rb:1
And I press "Generate" # features/step_definitions/web_steps.rb:164
Then 1 delayed job objects should exist # features/step_definitions/delayed_job_steps.rb:15
Then I should see "Generating invoices for 1 IO" within "#flash" # features/step_definitions/web_steps.rb:256
Then all delayed jobs are run # features/step_definitions/delayed_job_steps.rb:24
Then 0 delayed job objects should exist # features/step_definitions/delayed_job_steps.rb:15
And I follow "Invoices" within "#subnav" # features/step_definitions/web_steps.rb:169
Then I should see a link for "September 2010" # features/step_definitions/web_steps.rb:237
When I follow "September 2010" # features/step_definitions/web_steps.rb:169
When I follow "Release" # features/step_definitions/web_steps.rb:169
Then I should see "September 2010 Invoice released." within "#flash" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As an accountant, If the advertiser has not been released I cannot release the invoice # features/au_invoices.feature:91
When "Advertiser 0" has not been released to quickbooks # features/step_definitions/receivable_steps.rb:6
When I follow "New Set" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Then I select "September 2010" from "date_range" # features/step_definitions/web_steps.rb:203
And there are no delayed jobs # features/step_definitions/delayed_job_steps.rb:1
And I press "Generate" # features/step_definitions/web_steps.rb:164
Then 1 delayed job objects should exist # features/step_definitions/delayed_job_steps.rb:15
Then I should see "Generating invoices for 1 IO" within "#flash" # features/step_definitions/web_steps.rb:256
Then all delayed jobs are run # features/step_definitions/delayed_job_steps.rb:24
Then 0 delayed job objects should exist # features/step_definitions/delayed_job_steps.rb:15
And I follow "Invoices" within "#subnav" # features/step_definitions/web_steps.rb:169
Then I should see a link for "September 2010" # features/step_definitions/web_steps.rb:237
When I follow "September 2010" # features/step_definitions/web_steps.rb:169
When I should not see a link for "Release" # features/step_definitions/web_steps.rb:246
@selenium
Scenario: As an accountant, I want to be able to preview the generated invoices before syncing to QB # features/au_invoices.feature:108
Given the current day and time is "November 1 2010 @ 3pm" # features/step_definitions/object_steps.rb:91
And I have these campaigns: # features/step_definitions/campaign_steps.rb:35
| Department | Campaign Name | Advertiser | Start Date | End Date |
| SEM | Campaign 3 | Advertiser 0 | October 1 2010 | October 30 2010 |
| Display | Campaign 4 | Advertiser 0 | October 1 2010 | October 30 2010 |
And I have these departments with these invoice templates: # features/step_definitions/invoice_template_steps.rb:1
| Department | Template Name |
| SEM | SEM Template 2 |
| SEM | SEM Template 1 |
And I have the following insertion orders: # features/step_definitions/insertion_order_steps.rb:1
| Advertiser | Name | Start Date | End Date | Departments | Template | Campaigns | Group By |
| Advertiser 0 | IO 2 | October 1 2010 | October 30 2010 | Display, SEM | Display Template 1, SEM Template 1 | Campaign 0,Campaign 3,Campaign 4 | InsertionOrder |
And I have the following deliveries: # features/step_definitions/delivery_steps.rb:1
| Campaign | Product | Unit | Quantity | Date | Revenue | Cost | Overhead |
| Campaign 0 | Unknown | cpm | 1000 | October 1 2010 | 1 | .1 | .1 |
| Campaign 0 | 160x600 Standard | cpm | 10000 | October 2 2010 | 1 | .1 | .1 |
| Campaign 3 | Unknown | cpm | 1000 | October 1 2010 | 1 | .1 | .1 |
| Campaign 4 | Unknown | cpm | 1000 | October 1 2010 | 1 | .1 | .1 |
| Campaign 4 | 160x600 Standard | cpm | 10000 | October 2 2010 | 1 | .1 | .1 |
And I am logged in as accountant user bob who belongs to the Display department # features/step_definitions/user_steps.rb:59
Then I follow "Accounting" within "#tabs" # features/step_definitions/web_steps.rb:169
Then I follow "Invoices" within "#subnav" # features/step_definitions/web_steps.rb:169
When I follow "New Set" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Then I select "October 2010" from "date_range" # features/step_definitions/web_steps.rb:203
And there are no delayed jobs # features/step_definitions/delayed_job_steps.rb:1
And I press "Generate" # features/step_definitions/web_steps.rb:164
Then 1 delayed job objects should exist # features/step_definitions/delayed_job_steps.rb:15
Then I should see "Generating invoices for 1 IO" within "#flash" # features/step_definitions/web_steps.rb:256
Then all delayed jobs are run # features/step_definitions/delayed_job_steps.rb:24
Then 0 delayed job objects should exist # features/step_definitions/delayed_job_steps.rb:15
And I follow "Invoices" within "#subnav" # features/step_definitions/web_steps.rb:169
Then I should see a link for "October 2010" # features/step_definitions/web_steps.rb:237
When I follow "October 2010" # features/step_definitions/web_steps.rb:169
Then I should see "TOTAL 11,000 impressions $1.00 cpm" # features/step_definitions/web_steps.rb:256
And I should see "Total: $23.00" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As an accountant, I want to be able to regenerate invoices before syncing to QB # features/au_invoices.feature:152
Given the current day and time is "November 1 2010 @ 3pm" # features/step_definitions/object_steps.rb:91
And I have these campaigns: # features/step_definitions/campaign_steps.rb:35
| Department | Campaign Name | Advertiser | Start Date | End Date |
| SEM | Campaign 3 | Advertiser 0 | October 1 2010 | October 30 2010 |
| Display | Campaign 4 | Advertiser 0 | October 1 2010 | October 30 2010 |
And I have these departments with these invoice templates: # features/step_definitions/invoice_template_steps.rb:1
| Department | Template Name |
| SEM | SEM Template 2 |
| SEM | SEM Template 1 |
And I have the following insertion orders: # features/step_definitions/insertion_order_steps.rb:1
| Advertiser | Name | Start Date | End Date | Departments | Template | Campaigns | Group By |
| Advertiser 0 | IO 2 | October 1 2010 | October 30 2010 | Display, SEM | Display Template 1, SEM Template 1 | Campaign 0,Campaign 3,Campaign 4 | InsertionOrder |
And I have the following deliveries: # features/step_definitions/delivery_steps.rb:1
| Campaign | Product | Unit | Quantity | Date | Revenue | Cost | Overhead |
| Campaign 0 | Unknown | cpm | 1000 | October 1 2010 | 1 | .1 | .1 |
| Campaign 0 | 160x600 Standard | cpm | 10000 | October 2 2010 | 1 | .1 | .1 |
| Campaign 3 | Unknown | cpm | 1000 | October 1 2010 | 1 | .1 | .1 |
| Campaign 4 | Unknown | cpm | 1000 | October 1 2010 | 1 | .1 | .1 |
| Campaign 4 | 160x600 Standard | cpm | 10000 | October 2 2010 | 1 | .1 | .1 |
And I am logged in as accountant user bob who belongs to the Display department # features/step_definitions/user_steps.rb:59
Then I follow "Accounting" within "#tabs" # features/step_definitions/web_steps.rb:169
Then I follow "Invoices" within "#subnav" # features/step_definitions/web_steps.rb:169
When I follow "New Set" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Then I select "October 2010" from "date_range" # features/step_definitions/web_steps.rb:203
And there are no delayed jobs # features/step_definitions/delayed_job_steps.rb:1
And I press "Generate" # features/step_definitions/web_steps.rb:164
Then 1 delayed job objects should exist # features/step_definitions/delayed_job_steps.rb:15
Then I should see "Generating invoices for 1 IO" within "#flash" # features/step_definitions/web_steps.rb:256
Then all delayed jobs are run # features/step_definitions/delayed_job_steps.rb:24
Then show me the delayed jobs # features/step_definitions/delayed_job_steps.rb:5
Then 0 delayed job objects should exist # features/step_definitions/delayed_job_steps.rb:15
And I follow "Invoices" within "#subnav" # features/step_definitions/web_steps.rb:169
Then I should see a link for "October 2010" # features/step_definitions/web_steps.rb:237
When I follow "October 2010" # features/step_definitions/web_steps.rb:169
Then I should see "TOTAL 11,000 impressions $1.00 cpm" # features/step_definitions/web_steps.rb:256
And I should see "Total: $23.00" # features/step_definitions/web_steps.rb:256
Then I follow "Regenerate All for IO" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Feature: Accounting User managing notices
As an accounting user i must be able to manage notices
Background: # features/au_notices.feature:4
Given loaded fixtures # features/step_definitions/object_steps.rb:222
Mysql2::Error: Duplicate entry 'mobile_unknown' for key 'products_slug_idx': INSERT INTO `products` (`abbr`, `created_at`, `department_id`, `goal_type_slugs`, `height`, `name`, `position`, `product_group`, `product_type`, `quick_books_item_id`, `slug`, `updated_at`, `width`) VALUES ('unknown', '2012-09-07 13:41:22', 5, '---\n- acquisitions\n- activities\n- clicks\n- conversions\n- dollars\n- drops\n- eachs\n- expansions\n- hours\n- impressions\n- leads\n- messages\n- months\n', NULL, 'Unknown', 5, 'unknown', 'unknown', NULL, 'mobile_unknown', '2012-09-07 13:41:22', NULL) (ActiveRecord::RecordNotUnique)
./config/initializers/mysql.rb:7:in `execute'
./app/models/product.rb:57:in `lookup!'
./app/models/product.rb:38:in `block in seed!'
./app/models/product.rb:38:in `each'
./app/models/product.rb:38:in `seed!'
./features/step_definitions/object_steps.rb:233:in `/^loaded fixtures$/'
features/au_notices.feature:5:in `Given loaded fixtures'
Given reportable data exists for the Display department # features/step_definitions/object_steps.rb:95
Given I have these notifications: # features/step_definitions/notification_steps.rb:1
| Type | Severity | Message |
| | SEVERE | quickbooks message one |
| | WARNING | quickbooks message two |
| | INFO | quickbooks message three |
| | TRIVIA | quickbooks message four |
And I am logged in as accountant user bob who belongs to the Display department # features/step_definitions/user_steps.rb:59
@selenium
Scenario: As an accountant I can view recent Notices # features/au_notices.feature:17
Then I follow "Accounting" within "#tabs" # features/step_definitions/web_steps.rb:169
Then I should see "quickbooks message one" within "#notification_1" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As an accountant I can dismiss Notices # features/au_notices.feature:23
Then I follow "Accounting" within "#tabs" # features/step_definitions/web_steps.rb:169
When I confirm a js popup on the next step # features/step_definitions/web_steps.rb:445
When I follow "Dismiss" within "#notification_1" # features/step_definitions/web_steps.rb:169
And wait for the page to load # features/step_definitions/web_steps.rb:455
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then show me the page # features/step_definitions/web_steps.rb:436
Then I should not see "quickbooks message one" within "#notifications" # features/step_definitions/web_steps.rb:275
Feature: Departments
System must be able to separate campaigns by departments
Background: # features/department.feature:4
Given loaded fixtures # features/step_definitions/object_steps.rb:222
Given reportable data exists # features/step_definitions/object_steps.rb:95
And I am logged in as super user bob who belongs to the SEM department # features/step_definitions/user_steps.rb:59
Feature: Department Campaigns
System must be able to separate campaigns by departments
Background: # features/department_campaign.feature:4
Given loaded fixtures # features/step_definitions/object_steps.rb:222
Given reportable data exists for the SEM department # features/step_definitions/object_steps.rb:95
And I am logged in as account_manager user bob who belongs to the SEM department # features/step_definitions/user_steps.rb:59
When I go to the home page # features/step_definitions/web_steps.rb:161
Then I should be on the home page # features/step_definitions/web_steps.rb:394
When I follow "Campaigns" # features/step_definitions/web_steps.rb:169
@selenium
Scenario: As a SEM Department Manager I can create a campaign for SEM department and specify a fixed cpc rate # features/department_campaign.feature:14
When I follow "New" # features/step_definitions/web_steps.rb:169
When I select "SEM" from "campaign_department_id" # features/step_definitions/web_steps.rb:203
When I fill in "campaign_advertiser_id" with "adv" # features/step_definitions/web_steps.rb:174
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "Advertiser 0" within "li.ui-menu-item" # features/step_definitions/web_steps.rb:256
expected there to be content "Advertiser 0" in "Create New" (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/web_steps.rb:259:in `block (2 levels) in <top (required)>'
./features/step_definitions/web_steps.rb:153:in `block in with_scope'
./features/step_definitions/web_steps.rb:153:in `with_scope'
./features/step_definitions/web_steps.rb:257:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
features/department_campaign.feature:19:in `And I should see "Advertiser 0" within "li.ui-menu-item"'
When I select "Advertiser 0" from the autocomplete on "#campaign_advertiser_id" # features/step_definitions/web_steps.rb:416
When I fill in "campaign_name" with "Bobs Marketing Blitz" # features/step_definitions/web_steps.rb:174
And I fill in "campaign_start_date" with "2010-01-01" # features/step_definitions/web_steps.rb:174
And I fill in "campaign_end_date" with "3010-01-01" # features/step_definitions/web_steps.rb:174
And I press "Continue" # features/step_definitions/web_steps.rb:164
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I check "Unknown" within "#campaign_products_input" # features/step_definitions/web_steps.rb:208
And I fill in "campaign_campaign_revenue_rates_attributes_0_effective_date" with "2010-01-01" # features/step_definitions/web_steps.rb:174
And I choose "campaign_campaign_revenue_rates_attributes_0_rate_type_revenue_per_unit" # features/step_definitions/web_steps.rb:218
And I fill in "campaign_campaign_revenue_rates_attributes_0_rate" with "10" # features/step_definitions/web_steps.rb:174
And I press "Continue" # features/step_definitions/web_steps.rb:164
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "Campaign was successfully updated" within "#flash" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a SEM Department Manager I can create a campaign for SEM department and specify a percent profit margin # features/department_campaign.feature:36
When I follow "New" # features/step_definitions/web_steps.rb:169
Then I should be on the new campaign page # features/step_definitions/web_steps.rb:394
When I select "SEM" from "campaign_department_id" # features/step_definitions/web_steps.rb:203
When I fill in "campaign_name" with "Bobs Marketing Blitz" # features/step_definitions/web_steps.rb:174
And I fill in "campaign_start_date" with "2010-01-01" # features/step_definitions/web_steps.rb:174
And I fill in "campaign_end_date" with "3010-01-01" # features/step_definitions/web_steps.rb:174
And I fill in "campaign_advertiser_id" with "adv" # features/step_definitions/web_steps.rb:174
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "Advertiser 0" within "li.ui-menu-item" # features/step_definitions/web_steps.rb:256
expected there to be content "Advertiser 0" in "Create New" (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/web_steps.rb:259:in `block (2 levels) in <top (required)>'
./features/step_definitions/web_steps.rb:153:in `block in with_scope'
./features/step_definitions/web_steps.rb:153:in `with_scope'
./features/step_definitions/web_steps.rb:257:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
features/department_campaign.feature:45:in `And I should see "Advertiser 0" within "li.ui-menu-item"'
When I select "Advertiser 0" from the autocomplete on "#campaign_advertiser_id" # features/step_definitions/web_steps.rb:416
And I press "Continue" # features/step_definitions/web_steps.rb:164
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I check "Unknown" within "#campaign_products_input" # features/step_definitions/web_steps.rb:208
And I fill in "campaign_campaign_revenue_rates_attributes_0_effective_date" with "2010-01-01" # features/step_definitions/web_steps.rb:174
And I choose "campaign_campaign_revenue_rates_attributes_0_rate_type_margin" # features/step_definitions/web_steps.rb:218
And I fill in "campaign_campaign_revenue_rates_attributes_0_rate" with "10" # features/step_definitions/web_steps.rb:174
And I press "Continue" # features/step_definitions/web_steps.rb:164
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "Campaign was successfully updated" within "#flash" # features/step_definitions/web_steps.rb:256
Feature: Department Manager User Create Campaign Budget Allocations
Department Manager must be able to create Campaigns Budget Allocations
Background: # features/department_campaign_budget_allocations.feature:4
Given loaded fixtures # features/step_definitions/object_steps.rb:222
@selenium
Scenario: As a SEO Department Manager I can enter budget allocations for a campaign # features/department_campaign_budget_allocations.feature:8
Given reportable data exists for the SEO department # features/step_definitions/object_steps.rb:95
And I am logged in as department_manager user bob who belongs to the SEO department # features/step_definitions/user_steps.rb:59
When I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I follow "Budget Allocations" # features/step_definitions/web_steps.rb:169
And I fill in "budget_allocation_name" with "allocation_1qtr" # features/step_definitions/web_steps.rb:174
And I fill in "budget_allocation_start_date" with "2010-07-01" # features/step_definitions/web_steps.rb:174
And I fill in "budget_allocation_end_date" with "2010-07-02" # features/step_definitions/web_steps.rb:174
And I choose "Total Budget" # features/step_definitions/web_steps.rb:218
Then wait for the page to load # features/step_definitions/web_steps.rb:455
And I fill in "budget_allocation_revenue_per_amount" with "1000" # features/step_definitions/web_steps.rb:174
And I select "/hr" from "budget_allocation_target_field" # features/step_definitions/web_steps.rb:203
And I fill in "budget_allocation_target_quantity" with "1000" # features/step_definitions/web_steps.rb:174
And I fill in "budget_allocation_note" with "notey note note" # features/step_definitions/web_steps.rb:174
Then I check "Unknown" # features/step_definitions/web_steps.rb:208
Then I check "Fixed fee" # features/step_definitions/web_steps.rb:208
Then I check "Low" # features/step_definitions/web_steps.rb:208
Then I check "Male" # features/step_definitions/web_steps.rb:208
Then I press "Save" # features/step_definitions/web_steps.rb:164
Then I should see "Successfully created budget allocation" # features/step_definitions/web_steps.rb:256
When I follow "Campaigns" # features/step_definitions/web_steps.rb:169
Then I follow "Campaign 0" # features/step_definitions/web_steps.rb:169
Then I follow "Budget Allocations" # features/step_definitions/web_steps.rb:169
Then I should see a link for "allocation_1qtr" # features/step_definitions/web_steps.rb:237
@selenium
Scenario: As a Web Department Manager I can enter budget allocations for a campaign # features/department_campaign_budget_allocations.feature:37
Given reportable data exists for the Web Design department # features/step_definitions/object_steps.rb:95
And I am logged in as department_manager user bob who belongs to the Web Design department # features/step_definitions/user_steps.rb:59
When I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I follow "Budget Allocations" # features/step_definitions/web_steps.rb:169
And I fill in "budget_allocation_name" with "allocation_1qtr" # features/step_definitions/web_steps.rb:174
And I fill in "budget_allocation_start_date" with "2010-07-01" # features/step_definitions/web_steps.rb:174
And I fill in "budget_allocation_end_date" with "2010-07-02" # features/step_definitions/web_steps.rb:174
And I choose "Total Budget" # features/step_definitions/web_steps.rb:218
Then wait for the page to load # features/step_definitions/web_steps.rb:455
And I fill in "budget_allocation_revenue_per_amount" with "1000" # features/step_definitions/web_steps.rb:174
And I select "/ea" from "budget_allocation_target_field" # features/step_definitions/web_steps.rb:203
And I fill in "budget_allocation_target_quantity" with "1000" # features/step_definitions/web_steps.rb:174
And I fill in "budget_allocation_note" with "notey note note" # features/step_definitions/web_steps.rb:174
Then I check "Unknown" # features/step_definitions/web_steps.rb:208
Then I check "Design/Development" # features/step_definitions/web_steps.rb:208
Then I check "Low" # features/step_definitions/web_steps.rb:208
Then I check "Male" # features/step_definitions/web_steps.rb:208
Then I press "Save" # features/step_definitions/web_steps.rb:164
Then I should see "Successfully created budget allocation" # features/step_definitions/web_steps.rb:256
When I follow "Campaigns" # features/step_definitions/web_steps.rb:169
Then I follow "Campaign 0" # features/step_definitions/web_steps.rb:169
Then I follow "Budget Allocations" # features/step_definitions/web_steps.rb:169
Then I should see a link for "allocation_1qtr" # features/step_definitions/web_steps.rb:237
@selenium
Scenario: As a Social Media Department Manager I can enter budget allocations for a campaign # features/department_campaign_budget_allocations.feature:66
Given reportable data exists for the Social Media department # features/step_definitions/object_steps.rb:95
And user god belongs to the super user role # features/step_definitions/user_steps.rb:71
And I am logged in as department_manager user bob who belongs to the Social Media department # features/step_definitions/user_steps.rb:59
When I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I follow "Budget Allocations" # features/step_definitions/web_steps.rb:169
And I fill in "budget_allocation_name" with "allocation_1qtr" # features/step_definitions/web_steps.rb:174
And I fill in "budget_allocation_start_date" with "2010-07-01" # features/step_definitions/web_steps.rb:174
And I fill in "budget_allocation_end_date" with "2010-07-02" # features/step_definitions/web_steps.rb:174
And I choose "Total Budget" # features/step_definitions/web_steps.rb:218
Then wait for the page to load # features/step_definitions/web_steps.rb:455
And I fill in "budget_allocation_revenue_per_amount" with "1000" # features/step_definitions/web_steps.rb:174
And I select "/hr" from "budget_allocation_target_field" # features/step_definitions/web_steps.rb:203
And I fill in "budget_allocation_target_quantity" with "1000" # features/step_definitions/web_steps.rb:174
And I fill in "budget_allocation_note" with "notey note note" # features/step_definitions/web_steps.rb:174
Then I check "Unknown" # features/step_definitions/web_steps.rb:208
Then I check "Account creation" # features/step_definitions/web_steps.rb:208
Then I check "Low" # features/step_definitions/web_steps.rb:208
Then I check "Male" # features/step_definitions/web_steps.rb:208
Then I press "Save" # features/step_definitions/web_steps.rb:164
Then I should see "Successfully created budget allocation" # features/step_definitions/web_steps.rb:256
When I follow "Campaigns" # features/step_definitions/web_steps.rb:169
Then I follow "Campaign 0" # features/step_definitions/web_steps.rb:169
Then I follow "Budget Allocations" # features/step_definitions/web_steps.rb:169
Then I should see a link for "allocation_1qtr" # features/step_definitions/web_steps.rb:237
@selenium
Scenario: As a Creative Production Department Manager I can enter budget allocations for a campaign # features/department_campaign_budget_allocations.feature:95
Given reportable data exists for the Creative Production department # features/step_definitions/object_steps.rb:95
And user god belongs to the super user role # features/step_definitions/user_steps.rb:71
And I am logged in as department_manager user bob who belongs to the Creative Production department # features/step_definitions/user_steps.rb:59
When I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I follow "Budget Allocations" # features/step_definitions/web_steps.rb:169
And I fill in "budget_allocation_name" with "allocation_1qtr" # features/step_definitions/web_steps.rb:174
And I fill in "budget_allocation_start_date" with "2010-07-01" # features/step_definitions/web_steps.rb:174
And I fill in "budget_allocation_end_date" with "2010-07-02" # features/step_definitions/web_steps.rb:174
And I choose "Total Budget" # features/step_definitions/web_steps.rb:218
Then wait for the page to load # features/step_definitions/web_steps.rb:455
And I fill in "budget_allocation_revenue_per_amount" with "1000" # features/step_definitions/web_steps.rb:174
And I select "/hr" from "budget_allocation_target_field" # features/step_definitions/web_steps.rb:203
And I fill in "budget_allocation_target_quantity" with "1000" # features/step_definitions/web_steps.rb:174
And I fill in "budget_allocation_note" with "notey note note" # features/step_definitions/web_steps.rb:174
Then I check "Unknown" # features/step_definitions/web_steps.rb:208
Then I check "Banner creation" # features/step_definitions/web_steps.rb:208
Then I check "Low" # features/step_definitions/web_steps.rb:208
Then I check "Male" # features/step_definitions/web_steps.rb:208
Then I press "Save" # features/step_definitions/web_steps.rb:164
Then I should see "Successfully created budget allocation" # features/step_definitions/web_steps.rb:256
When I follow "Campaigns" # features/step_definitions/web_steps.rb:169
Then I follow "Campaign 0" # features/step_definitions/web_steps.rb:169
Then I follow "Budget Allocations" # features/step_definitions/web_steps.rb:169
Then I should see a link for "allocation_1qtr" # features/step_definitions/web_steps.rb:237
@selenium
Scenario: As a Mobile Department Manager I can enter budget allocations for a campaign # features/department_campaign_budget_allocations.feature:124
Given reportable data exists for the Mobile department # features/step_definitions/object_steps.rb:95
And user god belongs to the super user role # features/step_definitions/user_steps.rb:71
And I am logged in as department_manager user bob who belongs to the Mobile department # features/step_definitions/user_steps.rb:59
When I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I follow "Budget Allocations" # features/step_definitions/web_steps.rb:169
And I fill in "budget_allocation_name" with "allocation_1qtr" # features/step_definitions/web_steps.rb:174
And I fill in "budget_allocation_start_date" with "2010-07-01" # features/step_definitions/web_steps.rb:174
And I fill in "budget_allocation_end_date" with "2010-07-02" # features/step_definitions/web_steps.rb:174
And I choose "Total Budget" # features/step_definitions/web_steps.rb:218
Then wait for the page to load # features/step_definitions/web_steps.rb:455
And I fill in "budget_allocation_revenue_per_amount" with "1000" # features/step_definitions/web_steps.rb:174
And I select "/mo" from "budget_allocation_target_field" # features/step_definitions/web_steps.rb:203
And I fill in "budget_allocation_target_quantity" with "1000" # features/step_definitions/web_steps.rb:174
And I fill in "budget_allocation_note" with "notey note note" # features/step_definitions/web_steps.rb:174
Then I check "Unknown" # features/step_definitions/web_steps.rb:208
Then I check "Mobile Alerts" # features/step_definitions/web_steps.rb:208
Then I check "Low" # features/step_definitions/web_steps.rb:208
Then I check "Male" # features/step_definitions/web_steps.rb:208
Then I press "Save" # features/step_definitions/web_steps.rb:164
Then I should see "Successfully created budget allocation" # features/step_definitions/web_steps.rb:256
When I follow "Campaigns" # features/step_definitions/web_steps.rb:169
Then I follow "Campaign 0" # features/step_definitions/web_steps.rb:169
Then I follow "Budget Allocations" # features/step_definitions/web_steps.rb:169
Then I should see a link for "allocation_1qtr" # features/step_definitions/web_steps.rb:237
@selenium
Scenario: As a Email Department Manager I can enter budget allocations for a campaign # features/department_campaign_budget_allocations.feature:153
Given reportable data exists for the Email department # features/step_definitions/object_steps.rb:95
And user god belongs to the super user role # features/step_definitions/user_steps.rb:71
And I am logged in as department_manager user bob who belongs to the Email department # features/step_definitions/user_steps.rb:59
When I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I follow "Budget Allocations" # features/step_definitions/web_steps.rb:169
And I fill in "budget_allocation_name" with "allocation_1qtr" # features/step_definitions/web_steps.rb:174
And I fill in "budget_allocation_start_date" with "2010-07-01" # features/step_definitions/web_steps.rb:174
And I fill in "budget_allocation_end_date" with "2010-07-02" # features/step_definitions/web_steps.rb:174
And I choose "Total Budget" # features/step_definitions/web_steps.rb:218
Then wait for the page to load # features/step_definitions/web_steps.rb:455
And I fill in "budget_allocation_revenue_per_amount" with "1000" # features/step_definitions/web_steps.rb:174
And I select "drops" from "budget_allocation_target_field" # features/step_definitions/web_steps.rb:203
And I fill in "budget_allocation_target_quantity" with "1000" # features/step_definitions/web_steps.rb:174
And I fill in "budget_allocation_note" with "notey note note" # features/step_definitions/web_steps.rb:174
Then I check "Unknown" # features/step_definitions/web_steps.rb:208
Then I check "Email campaign" # features/step_definitions/web_steps.rb:208
Then I check "Low" # features/step_definitions/web_steps.rb:208
Then I check "Male" # features/step_definitions/web_steps.rb:208
Then I press "Save" # features/step_definitions/web_steps.rb:164
Then I should see "Successfully created budget allocation" # features/step_definitions/web_steps.rb:256
When I follow "Campaigns" # features/step_definitions/web_steps.rb:169
Then I follow "Campaign 0" # features/step_definitions/web_steps.rb:169
Then I follow "Budget Allocations" # features/step_definitions/web_steps.rb:169
Then I should see a link for "allocation_1qtr" # features/step_definitions/web_steps.rb:237
@selenium
Scenario: As a Online Publishing Department Manager I can enter budget allocations for a campaign # features/department_campaign_budget_allocations.feature:182
Given reportable data exists for the Online Publishing department # features/step_definitions/object_steps.rb:95
And user god belongs to the super user role # features/step_definitions/user_steps.rb:71
And I am logged in as department_manager user bob who belongs to the Online Publishing department # features/step_definitions/user_steps.rb:59
When I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I follow "Budget Allocations" # features/step_definitions/web_steps.rb:169
And I fill in "budget_allocation_name" with "allocation_1qtr" # features/step_definitions/web_steps.rb:174
And I fill in "budget_allocation_start_date" with "2010-07-01" # features/step_definitions/web_steps.rb:174
And I fill in "budget_allocation_end_date" with "2010-07-02" # features/step_definitions/web_steps.rb:174
And I choose "Total Budget" # features/step_definitions/web_steps.rb:218
Then wait for the page to load # features/step_definitions/web_steps.rb:455
And I fill in "budget_allocation_revenue_per_amount" with "1000" # features/step_definitions/web_steps.rb:174
And I select "cpm" from "budget_allocation_target_field" # features/step_definitions/web_steps.rb:203
And I fill in "budget_allocation_target_quantity" with "1000" # features/step_definitions/web_steps.rb:174
And I fill in "budget_allocation_note" with "notey note note" # features/step_definitions/web_steps.rb:174
Then I check "Unknown" # features/step_definitions/web_steps.rb:208
Then I check "BeyondTheDow.com - 160x600 standard" # features/step_definitions/web_steps.rb:208
Then I check "Low" # features/step_definitions/web_steps.rb:208
Then I check "Male" # features/step_definitions/web_steps.rb:208
Then I press "Save" # features/step_definitions/web_steps.rb:164
Then I should see "Successfully created budget allocation" # features/step_definitions/web_steps.rb:256
When I follow "Campaigns" # features/step_definitions/web_steps.rb:169
Then I follow "Campaign 0" # features/step_definitions/web_steps.rb:169
Then I follow "Budget Allocations" # features/step_definitions/web_steps.rb:169
Then I should see a link for "allocation_1qtr" # features/step_definitions/web_steps.rb:237
@selenium
Scenario: As a Video Department Manager I can enter budget allocations for a campaign # features/department_campaign_budget_allocations.feature:211
Given reportable data exists for the Video Network department # features/step_definitions/object_steps.rb:95
And user god belongs to the super user role # features/step_definitions/user_steps.rb:71
And I am logged in as department_manager user bob who belongs to the Video Network department # features/step_definitions/user_steps.rb:59
When I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I follow "Budget Allocations" # features/step_definitions/web_steps.rb:169
And I fill in "budget_allocation_name" with "allocation_1qtr" # features/step_definitions/web_steps.rb:174
And I fill in "budget_allocation_start_date" with "2010-07-01" # features/step_definitions/web_steps.rb:174
And I fill in "budget_allocation_end_date" with "2010-07-02" # features/step_definitions/web_steps.rb:174
And I choose "Total Budget" # features/step_definitions/web_steps.rb:218
Then wait for the page to load # features/step_definitions/web_steps.rb:455
And I fill in "budget_allocation_revenue_per_amount" with "1000" # features/step_definitions/web_steps.rb:174
And I select "cpc" from "budget_allocation_target_field" # features/step_definitions/web_steps.rb:203
And I fill in "budget_allocation_target_quantity" with "1000" # features/step_definitions/web_steps.rb:174
And I fill in "budget_allocation_note" with "notey note note" # features/step_definitions/web_steps.rb:174
Then I check "Unknown" # features/step_definitions/web_steps.rb:208
Then I check "Video Content" # features/step_definitions/web_steps.rb:208
Then I check "Geo Target 0" # features/step_definitions/web_steps.rb:208
Then I check "Low" # features/step_definitions/web_steps.rb:208
Then I check "Male" # features/step_definitions/web_steps.rb:208
Then I press "Save" # features/step_definitions/web_steps.rb:164
Then I should see "Successfully created budget allocation" # features/step_definitions/web_steps.rb:256
When I follow "Campaigns" # features/step_definitions/web_steps.rb:169
Then I follow "Campaign 0" # features/step_definitions/web_steps.rb:169
Then I follow "Budget Allocations" # features/step_definitions/web_steps.rb:169
Then I should see a link for "allocation_1qtr" # features/step_definitions/web_steps.rb:237
@selenium
Scenario: As a SEM Department Manager I can enter budget allocations for a campaign # features/department_campaign_budget_allocations.feature:240
Given reportable data exists for the SEM department # features/step_definitions/object_steps.rb:95
And user god belongs to the super user role # features/step_definitions/user_steps.rb:71
And I am logged in as department_manager user bob who belongs to the SEM department # features/step_definitions/user_steps.rb:59
When I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I follow "Budget Allocations" # features/step_definitions/web_steps.rb:169
And I fill in "budget_allocation_name" with "allocation_1qtr" # features/step_definitions/web_steps.rb:174
And I fill in "budget_allocation_start_date" with "2010-07-01" # features/step_definitions/web_steps.rb:174
And I fill in "budget_allocation_end_date" with "2010-07-02" # features/step_definitions/web_steps.rb:174
And I choose "Total Budget" # features/step_definitions/web_steps.rb:218
Then wait for the page to load # features/step_definitions/web_steps.rb:455
And I fill in "budget_allocation_revenue_per_amount" with "1000" # features/step_definitions/web_steps.rb:174
And I select "cpm" from "budget_allocation_target_field" # features/step_definitions/web_steps.rb:203
And I fill in "budget_allocation_target_quantity" with "1000" # features/step_definitions/web_steps.rb:174
And I fill in "budget_allocation_note" with "notey note note" # features/step_definitions/web_steps.rb:174
Then I check "Unknown" # features/step_definitions/web_steps.rb:208
Then I check "Google advertising" # features/step_definitions/web_steps.rb:208
Then I check "Low" # features/step_definitions/web_steps.rb:208
Then I check "Male" # features/step_definitions/web_steps.rb:208
Then I press "Save" # features/step_definitions/web_steps.rb:164
Then I should see "Successfully created budget allocation" # features/step_definitions/web_steps.rb:256
When I follow "Campaigns" # features/step_definitions/web_steps.rb:169
Then I follow "Campaign 0" # features/step_definitions/web_steps.rb:169
Then I follow "Budget Allocations" # features/step_definitions/web_steps.rb:169
Then I should see a link for "allocation_1qtr" # features/step_definitions/web_steps.rb:237
@selenium
Scenario: As a Remnant Banners Department Manager I can enter budget allocations for a campaign # features/department_campaign_budget_allocations.feature:269
Given reportable data exists for the Remnant Banners department # features/step_definitions/object_steps.rb:95
And user god belongs to the super user role # features/step_definitions/user_steps.rb:71
And I am logged in as department_manager user bob who belongs to the Remnant Banners department # features/step_definitions/user_steps.rb:59
When I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I follow "Budget Allocations" # features/step_definitions/web_steps.rb:169
And I fill in "budget_allocation_name" with "allocation_1qtr" # features/step_definitions/web_steps.rb:174
And I fill in "budget_allocation_start_date" with "2010-07-01" # features/step_definitions/web_steps.rb:174
And I fill in "budget_allocation_end_date" with "2010-07-02" # features/step_definitions/web_steps.rb:174
And I choose "Total Budget" # features/step_definitions/web_steps.rb:218
Then wait for the page to load # features/step_definitions/web_steps.rb:455
And I fill in "budget_allocation_revenue_per_amount" with "1000" # features/step_definitions/web_steps.rb:174
And I select "cpm" from "budget_allocation_target_field" # features/step_definitions/web_steps.rb:203
And I fill in "budget_allocation_target_quantity" with "1000" # features/step_definitions/web_steps.rb:174
And I fill in "budget_allocation_note" with "notey note note" # features/step_definitions/web_steps.rb:174
Then I check "Unknown" # features/step_definitions/web_steps.rb:208
Then I check "160x600 Standard" # features/step_definitions/web_steps.rb:208
Then I check "Low" # features/step_definitions/web_steps.rb:208
Then I check "Male" # features/step_definitions/web_steps.rb:208
Then I press "Save" # features/step_definitions/web_steps.rb:164
Then I should see "Successfully created budget allocation" # features/step_definitions/web_steps.rb:256
When I follow "Campaigns" # features/step_definitions/web_steps.rb:169
Then I follow "Campaign 0" # features/step_definitions/web_steps.rb:169
Then I follow "Budget Allocations" # features/step_definitions/web_steps.rb:169
Then I should see a link for "allocation_1qtr" # features/step_definitions/web_steps.rb:237
Feature: Department Manager User Create Campaign Deliveries
Department Manager must be able to create Campaigns deliveries
Background: # features/department_campaign_deliveries.feature:4
Given loaded fixtures # features/step_definitions/object_steps.rb:222
@selenium
Scenario: As a SEO Department Media Buyer I can not see campaigns for Web Design Department # features/department_campaign_deliveries.feature:9
Given reportable data exists for the Web Design department # features/step_definitions/object_steps.rb:95
And I am logged in as media_buyer user bob who belongs to the SEO department # features/step_definitions/user_steps.rb:59
When I follow "Campaigns" within "#tabs" # features/step_definitions/web_steps.rb:169
Then should not see a link for "Campaign 0" # features/step_definitions/web_steps.rb:246
@selenium
Scenario: As a SEO Department Media Buyer I can not see delivery records for a campaign # features/department_campaign_deliveries.feature:16
Given reportable data exists for the SEO department # features/step_definitions/object_steps.rb:95
And I am logged in as media_buyer user bob # features/step_definitions/user_steps.rb:53
And user bob belongs to the SEO department # features/step_definitions/user_steps.rb:85
When I follow "Campaigns" within "#tabs" # features/step_definitions/web_steps.rb:169
Then I follow "Campaign 0" # features/step_definitions/web_steps.rb:169
Then should not see a link for "Deliveries" # features/step_definitions/web_steps.rb:246
@selenium
Scenario: As a SEO Department Manager I can enter delivery records for a campaign # features/department_campaign_deliveries.feature:25
Given reportable data exists for the SEO department # features/step_definitions/object_steps.rb:95
And I am logged in as department_manager user bob who belongs to the SEO department # features/step_definitions/user_steps.rb:59
When I follow "Campaigns" within "#tabs" # features/step_definitions/web_steps.rb:169
Then I follow "Campaign 0" # features/step_definitions/web_steps.rb:169
Then I follow "Deliveries" # features/step_definitions/web_steps.rb:169
Then I follow "New Delivery" # features/step_definitions/web_steps.rb:169
And I fill in "meta_delivery_start_date" with "2010-07-01" # features/step_definitions/web_steps.rb:174
And I fill in "meta_delivery_end_date" with "2010-07-01" # features/step_definitions/web_steps.rb:174
And I fill in "meta_delivery_cost" with "1000" # features/step_definitions/web_steps.rb:174
And I fill in "meta_delivery_revenue" with "10000" # features/step_definitions/web_steps.rb:174
And I fill in "meta_delivery_overhead" with "1000" # features/step_definitions/web_steps.rb:174
And I select "Fixed fee" from "meta_delivery_product_id" # features/step_definitions/web_steps.rb:203
And I select "unknown units" from "meta_delivery_unit_id" # features/step_definitions/web_steps.rb:203
And I fill in "meta_delivery_quantity" with "10k" # features/step_definitions/web_steps.rb:174
And I select "Low" from "meta_delivery_custom_dimension_1" # features/step_definitions/web_steps.rb:203
And I select "Male" from "meta_delivery_custom_dimension_2" # features/step_definitions/web_steps.rb:203
Then I press "Save" # features/step_definitions/web_steps.rb:164
Then I should see "Successfully created delivery" # features/step_definitions/web_steps.rb:256
When I follow "Deliveries" # features/step_definitions/web_steps.rb:169
Then I should see "2010-07-01" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a Web Design Department Media Buyer I can not see campaigns for SEO Department # features/department_campaign_deliveries.feature:49
Given reportable data exists for the SEO department # features/step_definitions/object_steps.rb:95
And I am logged in as media_buyer user bob who belongs to the Web Design department # features/step_definitions/user_steps.rb:59
When I follow "Campaigns" within "#tabs" # features/step_definitions/web_steps.rb:169
Then should not see a link for "Campaign 0" # features/step_definitions/web_steps.rb:246
@selenium
Scenario: As a Web Design Department Media Buyer I can not see delivery records for a campaign # features/department_campaign_deliveries.feature:56
Given reportable data exists for the Web Design department # features/step_definitions/object_steps.rb:95
And I am logged in as media_buyer user bob who belongs to the Web Design department # features/step_definitions/user_steps.rb:59
When I follow "Campaigns" within "#tabs" # features/step_definitions/web_steps.rb:169
Then I follow "Campaign 0" # features/step_definitions/web_steps.rb:169
Then should not see a link for "Deliveries" # features/step_definitions/web_steps.rb:246
@selenium
Scenario: As a Web Design Department Manager I can enter delivery records for a campaign # features/department_campaign_deliveries.feature:64
Given reportable data exists for the Web Design department # features/step_definitions/object_steps.rb:95
And I am logged in as department_manager user bob who belongs to the Web Design department # features/step_definitions/user_steps.rb:59
When I follow "Campaigns" within "#tabs" # features/step_definitions/web_steps.rb:169
Then I follow "Campaign 0" # features/step_definitions/web_steps.rb:169
Then I follow "Deliveries" # features/step_definitions/web_steps.rb:169
Then I follow "New Delivery" # features/step_definitions/web_steps.rb:169
And I fill in "meta_delivery_start_date" with "2010-07-01" # features/step_definitions/web_steps.rb:174
And I fill in "meta_delivery_end_date" with "2010-07-01" # features/step_definitions/web_steps.rb:174
And I fill in "meta_delivery_cost" with "1000" # features/step_definitions/web_steps.rb:174
And I fill in "meta_delivery_revenue" with "10000" # features/step_definitions/web_steps.rb:174
And I fill in "meta_delivery_overhead" with "1000" # features/step_definitions/web_steps.rb:174
And I select "Design/Development" from "meta_delivery_product_id" # features/step_definitions/web_steps.rb:203
And I select "hours" from "meta_delivery_unit_id" # features/step_definitions/web_steps.rb:203
And I fill in "meta_delivery_quantity" with "10k" # features/step_definitions/web_steps.rb:174
And I select "Low" from "meta_delivery_custom_dimension_1" # features/step_definitions/web_steps.rb:203
And I select "Male" from "meta_delivery_custom_dimension_2" # features/step_definitions/web_steps.rb:203
Then I press "Save" # features/step_definitions/web_steps.rb:164
Then I should see "Successfully created delivery" # features/step_definitions/web_steps.rb:256
When I follow "Deliveries" # features/step_definitions/web_steps.rb:169
Then I should see "2010-07-01" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a Social Media Department Media Buyer I can not see campaigns for SEO Department # features/department_campaign_deliveries.feature:88
Given reportable data exists for the SEO department # features/step_definitions/object_steps.rb:95
And I am logged in as media_buyer user bob who belongs to the Social Media department # features/step_definitions/user_steps.rb:59
When I follow "Campaigns" within "#tabs" # features/step_definitions/web_steps.rb:169
Then should not see a link for "Campaign 0" # features/step_definitions/web_steps.rb:246
@selenium
Scenario: As a Social Media Department Media Buyer I can not see delivery records for a campaign # features/department_campaign_deliveries.feature:95
Given reportable data exists for the Social Media department # features/step_definitions/object_steps.rb:95
And I am logged in as media_buyer user bob who belongs to the Social Media department # features/step_definitions/user_steps.rb:59
When I follow "Campaigns" within "#tabs" # features/step_definitions/web_steps.rb:169
Then I follow "Campaign 0" # features/step_definitions/web_steps.rb:169
Then should not see a link for "Deliveries" # features/step_definitions/web_steps.rb:246
@selenium
Scenario: As a Social Media Department Manager I can enter delivery records for a campaign # features/department_campaign_deliveries.feature:103
Given reportable data exists for the Social Media department # features/step_definitions/object_steps.rb:95
And I am logged in as department_manager user bob who belongs to the Social Media department # features/step_definitions/user_steps.rb:59
When I follow "Campaigns" within "#tabs" # features/step_definitions/web_steps.rb:169
Then I follow "Campaign 0" # features/step_definitions/web_steps.rb:169
Then I follow "Deliveries" # features/step_definitions/web_steps.rb:169
Then I follow "New Delivery" # features/step_definitions/web_steps.rb:169
And I fill in "meta_delivery_start_date" with "2010-07-01" # features/step_definitions/web_steps.rb:174
And I fill in "meta_delivery_end_date" with "2010-07-01" # features/step_definitions/web_steps.rb:174
And I fill in "meta_delivery_cost" with "1000" # features/step_definitions/web_steps.rb:174
And I fill in "meta_delivery_revenue" with "10000" # features/step_definitions/web_steps.rb:174
And I fill in "meta_delivery_overhead" with "1000" # features/step_definitions/web_steps.rb:174
And I select "Account creation" from "meta_delivery_product_id" # features/step_definitions/web_steps.rb:203
And I select "hours" from "meta_delivery_unit_id" # features/step_definitions/web_steps.rb:203
And I fill in "meta_delivery_quantity" with "10k" # features/step_definitions/web_steps.rb:174
And I select "Low" from "meta_delivery_custom_dimension_1" # features/step_definitions/web_steps.rb:203
And I select "Male" from "meta_delivery_custom_dimension_2" # features/step_definitions/web_steps.rb:203
Then I press "Save" # features/step_definitions/web_steps.rb:164
Then I should see "Successfully created delivery" # features/step_definitions/web_steps.rb:256
When I follow "Deliveries" # features/step_definitions/web_steps.rb:169
Then I should see "2010-07-01" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a Creative Production Department Media Buyer I can not see campaigns for SEO Department # features/department_campaign_deliveries.feature:127
Given reportable data exists for the SEO department # features/step_definitions/object_steps.rb:95
And I am logged in as media_buyer user bob who belongs to the Creative Production department # features/step_definitions/user_steps.rb:59
When I follow "Campaigns" within "#tabs" # features/step_definitions/web_steps.rb:169
Then should not see a link for "Campaign 0" # features/step_definitions/web_steps.rb:246
@selenium
Scenario: As a Creative Production Department Media Buyer I can not see delivery records for a campaign # features/department_campaign_deliveries.feature:134
Given reportable data exists for the Creative Production department # features/step_definitions/object_steps.rb:95
And I am logged in as media_buyer user bob who belongs to the Creative Production department # features/step_definitions/user_steps.rb:59
When I follow "Campaigns" within "#tabs" # features/step_definitions/web_steps.rb:169
Then I follow "Campaign 0" # features/step_definitions/web_steps.rb:169
Then should not see a link for "Deliveries" # features/step_definitions/web_steps.rb:246
@selenium
Scenario: As a Creative Production Department Manager I can enter delivery records for a campaign # features/department_campaign_deliveries.feature:142
Given reportable data exists for the Creative Production department # features/step_definitions/object_steps.rb:95
And I am logged in as department_manager user bob who belongs to the Creative Production department # features/step_definitions/user_steps.rb:59
When I follow "Campaigns" within "#tabs" # features/step_definitions/web_steps.rb:169
Then I follow "Campaign 0" # features/step_definitions/web_steps.rb:169
Then I follow "Deliveries" # features/step_definitions/web_steps.rb:169
Then I follow "New Delivery" # features/step_definitions/web_steps.rb:169
And I fill in "meta_delivery_start_date" with "2010-07-01" # features/step_definitions/web_steps.rb:174
And I fill in "meta_delivery_end_date" with "2010-07-01" # features/step_definitions/web_steps.rb:174
And I fill in "meta_delivery_cost" with "1000" # features/step_definitions/web_steps.rb:174
And I fill in "meta_delivery_revenue" with "10000" # features/step_definitions/web_steps.rb:174
And I fill in "meta_delivery_overhead" with "1000" # features/step_definitions/web_steps.rb:174
And I select "Banner creation" from "meta_delivery_product_id" # features/step_definitions/web_steps.rb:203
And I select "hours" from "meta_delivery_unit_id" # features/step_definitions/web_steps.rb:203
And I fill in "meta_delivery_quantity" with "10k" # features/step_definitions/web_steps.rb:174
And I select "Low" from "meta_delivery_custom_dimension_1" # features/step_definitions/web_steps.rb:203
And I select "Male" from "meta_delivery_custom_dimension_2" # features/step_definitions/web_steps.rb:203
Then I press "Save" # features/step_definitions/web_steps.rb:164
Then I should see "Successfully created delivery" # features/step_definitions/web_steps.rb:256
When I follow "Deliveries" # features/step_definitions/web_steps.rb:169
Then I should see "2010-07-01" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a Mobile Department Media Buyer I can not see campaigns for SEO Department # features/department_campaign_deliveries.feature:166
Given reportable data exists for the SEO department # features/step_definitions/object_steps.rb:95
And I am logged in as media_buyer user bob who belongs to the Mobile department # features/step_definitions/user_steps.rb:59
When I follow "Campaigns" within "#tabs" # features/step_definitions/web_steps.rb:169
Then should not see a link for "Campaign 0" # features/step_definitions/web_steps.rb:246
@selenium
Scenario: As a Mobile Department Media Buyer I can not see delivery records for a campaign # features/department_campaign_deliveries.feature:173
Given reportable data exists for the Mobile department # features/step_definitions/object_steps.rb:95
And I am logged in as media_buyer user bob who belongs to the Mobile department # features/step_definitions/user_steps.rb:59
When I follow "Campaigns" within "#tabs" # features/step_definitions/web_steps.rb:169
Then I follow "Campaign 0" # features/step_definitions/web_steps.rb:169
Then should not see a link for "Deliveries" # features/step_definitions/web_steps.rb:246
@selenium
Scenario: As a Mobile Department Manager I can enter delivery records for a campaign # features/department_campaign_deliveries.feature:181
Given reportable data exists for the Mobile department # features/step_definitions/object_steps.rb:95
And I am logged in as department_manager user bob who belongs to the Mobile department # features/step_definitions/user_steps.rb:59
When I follow "Campaigns" within "#tabs" # features/step_definitions/web_steps.rb:169
Then I follow "Campaign 0" # features/step_definitions/web_steps.rb:169
Then I follow "Deliveries" # features/step_definitions/web_steps.rb:169
Then I follow "New Delivery" # features/step_definitions/web_steps.rb:169
And I fill in "meta_delivery_start_date" with "2010-07-01" # features/step_definitions/web_steps.rb:174
And I fill in "meta_delivery_end_date" with "2010-07-01" # features/step_definitions/web_steps.rb:174
And I fill in "meta_delivery_cost" with "1000" # features/step_definitions/web_steps.rb:174
And I fill in "meta_delivery_revenue" with "10000" # features/step_definitions/web_steps.rb:174
And I fill in "meta_delivery_overhead" with "1000" # features/step_definitions/web_steps.rb:174
And I select "Mobile Alerts" from "meta_delivery_product_id" # features/step_definitions/web_steps.rb:203
And I select "unknown units" from "meta_delivery_unit_id" # features/step_definitions/web_steps.rb:203
And I fill in "meta_delivery_quantity" with "10k" # features/step_definitions/web_steps.rb:174
And I select "Low" from "meta_delivery_custom_dimension_1" # features/step_definitions/web_steps.rb:203
And I select "Male" from "meta_delivery_custom_dimension_2" # features/step_definitions/web_steps.rb:203
Then I press "Save" # features/step_definitions/web_steps.rb:164
Then I should see "Successfully created delivery" # features/step_definitions/web_steps.rb:256
When I follow "Deliveries" # features/step_definitions/web_steps.rb:169
Then I should see "2010-07-01" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a Email Department Media Buyer I can not see campaigns for SEO Department # features/department_campaign_deliveries.feature:205
Given reportable data exists for the SEO department # features/step_definitions/object_steps.rb:95
And I am logged in as media_buyer user bob who belongs to the Email department # features/step_definitions/user_steps.rb:59
When I follow "Campaigns" within "#tabs" # features/step_definitions/web_steps.rb:169
Then should not see a link for "Campaign 0" # features/step_definitions/web_steps.rb:246
@selenium
Scenario: As a Email Department Media Buyer I can not see delivery records for a campaign # features/department_campaign_deliveries.feature:212
Given reportable data exists for the Email department # features/step_definitions/object_steps.rb:95
And I am logged in as media_buyer user bob who belongs to the Email department # features/step_definitions/user_steps.rb:59
When I follow "Campaigns" within "#tabs" # features/step_definitions/web_steps.rb:169
Then I follow "Campaign 0" # features/step_definitions/web_steps.rb:169
Then should not see a link for "Deliveries" # features/step_definitions/web_steps.rb:246
@selenium
Scenario: As a Email Department Manager I can enter delivery records for a campaign # features/department_campaign_deliveries.feature:220
Given reportable data exists for the Email department # features/step_definitions/object_steps.rb:95
And I am logged in as department_manager user bob who belongs to the Email department # features/step_definitions/user_steps.rb:59
When I follow "Campaigns" within "#tabs" # features/step_definitions/web_steps.rb:169
Then I follow "Campaign 0" # features/step_definitions/web_steps.rb:169
Then I follow "Deliveries" # features/step_definitions/web_steps.rb:169
Then I follow "New Delivery" # features/step_definitions/web_steps.rb:169
And I fill in "meta_delivery_start_date" with "2010-07-01" # features/step_definitions/web_steps.rb:174
And I fill in "meta_delivery_end_date" with "2010-07-01" # features/step_definitions/web_steps.rb:174
And I fill in "meta_delivery_cost" with "1000" # features/step_definitions/web_steps.rb:174
And I fill in "meta_delivery_revenue" with "10000" # features/step_definitions/web_steps.rb:174
And I fill in "meta_delivery_overhead" with "1000" # features/step_definitions/web_steps.rb:174
And I select "Email campaign" from "meta_delivery_product_id" # features/step_definitions/web_steps.rb:203
And I select "drops" from "meta_delivery_unit_id" # features/step_definitions/web_steps.rb:203
And I fill in "meta_delivery_quantity" with "10k" # features/step_definitions/web_steps.rb:174
And I select "Low" from "meta_delivery_custom_dimension_1" # features/step_definitions/web_steps.rb:203
And I select "Male" from "meta_delivery_custom_dimension_2" # features/step_definitions/web_steps.rb:203
Then I press "Save" # features/step_definitions/web_steps.rb:164
Then I should see "Successfully created delivery" # features/step_definitions/web_steps.rb:256
When I follow "Deliveries" # features/step_definitions/web_steps.rb:169
Then I should see "2010-07-01" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a Online Publishing Department Media Buyer I can not see campaigns for SEO Department # features/department_campaign_deliveries.feature:244
Given reportable data exists for the SEO department # features/step_definitions/object_steps.rb:95
And I am logged in as media_buyer user bob who belongs to the Online Publishing department # features/step_definitions/user_steps.rb:59
When I follow "Campaigns" within "#tabs" # features/step_definitions/web_steps.rb:169
Then should not see a link for "Campaign 0" # features/step_definitions/web_steps.rb:246
@selenium
Scenario: As a Online Publishing Department Media Buyer I can not see delivery records for a campaign # features/department_campaign_deliveries.feature:251
Given reportable data exists for the Online Publishing department # features/step_definitions/object_steps.rb:95
And I am logged in as media_buyer user bob who belongs to the Online Publishing department # features/step_definitions/user_steps.rb:59
When I follow "Campaigns" within "#tabs" # features/step_definitions/web_steps.rb:169
Then I follow "Campaign 0" # features/step_definitions/web_steps.rb:169
Then should not see a link for "Deliveries" # features/step_definitions/web_steps.rb:246
@selenium
Scenario: As a Online Publishing Department Manager I can enter delivery records for a campaign # features/department_campaign_deliveries.feature:259
Given reportable data exists for the Online Publishing department # features/step_definitions/object_steps.rb:95
And I am logged in as department_manager user bob who belongs to the Online Publishing department # features/step_definitions/user_steps.rb:59
When I follow "Campaigns" within "#tabs" # features/step_definitions/web_steps.rb:169
Then I follow "Campaign 0" # features/step_definitions/web_steps.rb:169
Then I follow "Deliveries" # features/step_definitions/web_steps.rb:169
Then I follow "New Delivery" # features/step_definitions/web_steps.rb:169
And I fill in "meta_delivery_start_date" with "2010-07-01" # features/step_definitions/web_steps.rb:174
And I fill in "meta_delivery_end_date" with "2010-07-01" # features/step_definitions/web_steps.rb:174
And I fill in "meta_delivery_cost" with "1000" # features/step_definitions/web_steps.rb:174
And I fill in "meta_delivery_revenue" with "10000" # features/step_definitions/web_steps.rb:174
And I fill in "meta_delivery_overhead" with "1000" # features/step_definitions/web_steps.rb:174
And I select "BeyondTheDow.com - 160x600 standard" from "meta_delivery_product_id" # features/step_definitions/web_steps.rb:203
And I select "impressions" from "meta_delivery_unit_id" # features/step_definitions/web_steps.rb:203
And I fill in "meta_delivery_quantity" with "10k" # features/step_definitions/web_steps.rb:174
And I select "Low" from "meta_delivery_custom_dimension_1" # features/step_definitions/web_steps.rb:203
And I select "Male" from "meta_delivery_custom_dimension_2" # features/step_definitions/web_steps.rb:203
Then I press "Save" # features/step_definitions/web_steps.rb:164
Then I should see "Successfully created delivery" # features/step_definitions/web_steps.rb:256
When I follow "Deliveries" # features/step_definitions/web_steps.rb:169
Then I should see "2010-07-01" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a Video Network Department Media Buyer I can not see campaigns for SEO Department # features/department_campaign_deliveries.feature:283
Given reportable data exists for the SEO department # features/step_definitions/object_steps.rb:95
And I am logged in as media_buyer user bob who belongs to the Video Network department # features/step_definitions/user_steps.rb:59
When I follow "Campaigns" within "#tabs" # features/step_definitions/web_steps.rb:169
Then should not see a link for "Campaign 0" # features/step_definitions/web_steps.rb:246
@selenium
Scenario: As a Video Network Department Media Buyer I can not see delivery records for a campaign # features/department_campaign_deliveries.feature:290
Given reportable data exists for the Video Network department # features/step_definitions/object_steps.rb:95
And I am logged in as media_buyer user bob who belongs to the Video Network department # features/step_definitions/user_steps.rb:59
When I follow "Campaigns" within "#tabs" # features/step_definitions/web_steps.rb:169
Then I follow "Campaign 0" # features/step_definitions/web_steps.rb:169
Then should not see a link for "Deliveries" # features/step_definitions/web_steps.rb:246
@selenium
Scenario: As a Video Network Department Manager I can enter delivery records for a campaign # features/department_campaign_deliveries.feature:298
Given reportable data exists for the Video Network department # features/step_definitions/object_steps.rb:95
And I am logged in as department_manager user bob who belongs to the Video Network department # features/step_definitions/user_steps.rb:59
When I follow "Campaigns" within "#tabs" # features/step_definitions/web_steps.rb:169
Then I follow "Campaign 0" # features/step_definitions/web_steps.rb:169
Then I follow "Deliveries" # features/step_definitions/web_steps.rb:169
Then I follow "New Delivery" # features/step_definitions/web_steps.rb:169
And I fill in "meta_delivery_start_date" with "2010-07-01" # features/step_definitions/web_steps.rb:174
And I fill in "meta_delivery_end_date" with "2010-07-01" # features/step_definitions/web_steps.rb:174
And I fill in "meta_delivery_cost" with "1000" # features/step_definitions/web_steps.rb:174
And I fill in "meta_delivery_revenue" with "10000" # features/step_definitions/web_steps.rb:174
And I fill in "meta_delivery_overhead" with "1000" # features/step_definitions/web_steps.rb:174
And I select "Video Content" from "meta_delivery_product_id" # features/step_definitions/web_steps.rb:203
And I select "impressions" from "meta_delivery_unit_id" # features/step_definitions/web_steps.rb:203
And I fill in "meta_delivery_quantity" with "10k" # features/step_definitions/web_steps.rb:174
And I select "Geo Target 0" from "meta_delivery_geo_target_id" # features/step_definitions/web_steps.rb:203
And I select "Low" from "meta_delivery_custom_dimension_1" # features/step_definitions/web_steps.rb:203
And I select "Male" from "meta_delivery_custom_dimension_2" # features/step_definitions/web_steps.rb:203
Then I press "Save" # features/step_definitions/web_steps.rb:164
Then I should see "Successfully created delivery" # features/step_definitions/web_steps.rb:256
When I follow "Deliveries" # features/step_definitions/web_steps.rb:169
Then I should see "2010-07-01" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a SEM Department Media Buyer I can not see campaigns for SEO Department # features/department_campaign_deliveries.feature:323
Given reportable data exists for the SEO department # features/step_definitions/object_steps.rb:95
And I am logged in as media_buyer user bob who belongs to the SEM department # features/step_definitions/user_steps.rb:59
When I follow "Campaigns" within "#tabs" # features/step_definitions/web_steps.rb:169
Then should not see a link for "Campaign 0" # features/step_definitions/web_steps.rb:246
@selenium
Scenario: As a SEM Department Media Buyer I can not see delivery records for a campaign # features/department_campaign_deliveries.feature:330
Given reportable data exists for the SEM department # features/step_definitions/object_steps.rb:95
And I am logged in as media_buyer user bob who belongs to the SEM department # features/step_definitions/user_steps.rb:59
When I follow "Campaigns" within "#tabs" # features/step_definitions/web_steps.rb:169
Then I follow "Campaign 0" # features/step_definitions/web_steps.rb:169
Then should not see a link for "Deliveries" # features/step_definitions/web_steps.rb:246
@selenium
Scenario: As a SEM Department Manager I can enter delivery records for a campaign # features/department_campaign_deliveries.feature:338
Given reportable data exists for the SEM department # features/step_definitions/object_steps.rb:95
And I am logged in as department_manager user bob who belongs to the SEM department # features/step_definitions/user_steps.rb:59
When I follow "Campaigns" within "#tabs" # features/step_definitions/web_steps.rb:169
Then I follow "Campaign 0" # features/step_definitions/web_steps.rb:169
Then I follow "Deliveries" # features/step_definitions/web_steps.rb:169
Then I follow "New Delivery" # features/step_definitions/web_steps.rb:169
And I fill in "meta_delivery_start_date" with "2010-07-01" # features/step_definitions/web_steps.rb:174
And I fill in "meta_delivery_end_date" with "2010-07-01" # features/step_definitions/web_steps.rb:174
And I fill in "meta_delivery_cost" with "1000" # features/step_definitions/web_steps.rb:174
And I fill in "meta_delivery_revenue" with "10000" # features/step_definitions/web_steps.rb:174
And I fill in "meta_delivery_overhead" with "1000" # features/step_definitions/web_steps.rb:174
And I select "Google advertising" from "meta_delivery_product_id" # features/step_definitions/web_steps.rb:203
And I select "impressions" from "meta_delivery_unit_id" # features/step_definitions/web_steps.rb:203
And I fill in "meta_delivery_quantity" with "10k" # features/step_definitions/web_steps.rb:174
And I select "Low" from "meta_delivery_custom_dimension_1" # features/step_definitions/web_steps.rb:203
And I select "Male" from "meta_delivery_custom_dimension_2" # features/step_definitions/web_steps.rb:203
Then I press "Save" # features/step_definitions/web_steps.rb:164
Then I should see "Successfully created delivery" # features/step_definitions/web_steps.rb:256
When I follow "Deliveries" # features/step_definitions/web_steps.rb:169
Then I should see "2010-07-01" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a Remnant Banners Department Media Buyer I can not see campaigns for SEO Department # features/department_campaign_deliveries.feature:362
Given reportable data exists for the SEO department # features/step_definitions/object_steps.rb:95
And I am logged in as media_buyer user bob who belongs to the Remnant Banners department # features/step_definitions/user_steps.rb:59
When I follow "Campaigns" within "#tabs" # features/step_definitions/web_steps.rb:169
Then should not see a link for "Campaign 0" # features/step_definitions/web_steps.rb:246
@selenium
Scenario: As a Remnant Banners Department Media Buyer I can not see delivery records for a campaign # features/department_campaign_deliveries.feature:369
Given reportable data exists for the Remnant Banners department # features/step_definitions/object_steps.rb:95
And I am logged in as media_buyer user bob who belongs to the Remnant Banners department # features/step_definitions/user_steps.rb:59
When I follow "Campaigns" within "#tabs" # features/step_definitions/web_steps.rb:169
Then I follow "Campaign 0" # features/step_definitions/web_steps.rb:169
Then should not see a link for "Deliveries" # features/step_definitions/web_steps.rb:246
@selenium
Scenario: As a Remnant Banners Department Manager I can enter delivery records for a campaign # features/department_campaign_deliveries.feature:377
Given reportable data exists for the Remnant Banners department # features/step_definitions/object_steps.rb:95
And I am logged in as department_manager user bob who belongs to the Remnant Banners department # features/step_definitions/user_steps.rb:59
When I follow "Campaigns" within "#tabs" # features/step_definitions/web_steps.rb:169
Then I follow "Campaign 0" # features/step_definitions/web_steps.rb:169
Then I follow "Deliveries" # features/step_definitions/web_steps.rb:169
Then I follow "New Delivery" # features/step_definitions/web_steps.rb:169
And I fill in "meta_delivery_start_date" with "2010-07-01" # features/step_definitions/web_steps.rb:174
And I fill in "meta_delivery_end_date" with "2010-07-01" # features/step_definitions/web_steps.rb:174
And I fill in "meta_delivery_cost" with "1000" # features/step_definitions/web_steps.rb:174
And I fill in "meta_delivery_revenue" with "10000" # features/step_definitions/web_steps.rb:174
And I fill in "meta_delivery_overhead" with "1000" # features/step_definitions/web_steps.rb:174
And I select "160x600 Standard" from "meta_delivery_product_id" # features/step_definitions/web_steps.rb:203
And I select "impressions" from "meta_delivery_unit_id" # features/step_definitions/web_steps.rb:203
And I fill in "meta_delivery_quantity" with "10k" # features/step_definitions/web_steps.rb:174
And I select "Low" from "meta_delivery_custom_dimension_1" # features/step_definitions/web_steps.rb:203
And I select "Male" from "meta_delivery_custom_dimension_2" # features/step_definitions/web_steps.rb:203
Then I press "Save" # features/step_definitions/web_steps.rb:164
Then I should see "Successfully created delivery" # features/step_definitions/web_steps.rb:256
When I follow "Deliveries" # features/step_definitions/web_steps.rb:169
Then I should see "2010-07-01" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a Display Department Manager I can enter delivery records for a campaign # features/department_campaign_deliveries.feature:401
Given reportable data exists for the Display department # features/step_definitions/object_steps.rb:95
And I am logged in as department_manager user bob who belongs to the Display department # features/step_definitions/user_steps.rb:59
When I follow "Campaigns" within "#tabs" # features/step_definitions/web_steps.rb:169
Then I follow "Campaign 0" # features/step_definitions/web_steps.rb:169
Then I follow "Deliveries" # features/step_definitions/web_steps.rb:169
Then I follow "New Delivery" # features/step_definitions/web_steps.rb:169
And I fill in "meta_delivery_start_date" with "2010-07-01" # features/step_definitions/web_steps.rb:174
And I fill in "meta_delivery_end_date" with "2010-07-01" # features/step_definitions/web_steps.rb:174
And I fill in "meta_delivery_cost" with "1000" # features/step_definitions/web_steps.rb:174
And I fill in "meta_delivery_revenue" with "10000" # features/step_definitions/web_steps.rb:174
And I fill in "meta_delivery_overhead" with "1000" # features/step_definitions/web_steps.rb:174
And I select "160x600 Standard" from "meta_delivery_product_id" # features/step_definitions/web_steps.rb:203
And I select "impressions" from "meta_delivery_unit_id" # features/step_definitions/web_steps.rb:203
And I fill in "meta_delivery_quantity" with "10k" # features/step_definitions/web_steps.rb:174
And I select "Low" from "meta_delivery_custom_dimension_1" # features/step_definitions/web_steps.rb:203
And I select "Male" from "meta_delivery_custom_dimension_2" # features/step_definitions/web_steps.rb:203
And I select "Geo Target 0" from "meta_delivery_geo_target_id" # features/step_definitions/web_steps.rb:203
Then I press "Save" # features/step_definitions/web_steps.rb:164
Then I should see "Successfully created delivery" # features/step_definitions/web_steps.rb:256
When I follow "Deliveries" # features/step_definitions/web_steps.rb:169
Then I should see "2010-07-01" # features/step_definitions/web_steps.rb:256
Feature: HR User managing users hourly rates
As a HR User I must be able to view and manage users hourly rates
Background: # features/hr_user_hourly_rates.feature:4
Given loaded fixtures # features/step_definitions/object_steps.rb:222
Given an active user named manager # features/step_definitions/user_steps.rb:1
And user manager belongs to the manager user role # features/step_definitions/user_steps.rb:71
Given I am logged in as human_resources user bob # features/step_definitions/user_steps.rb:53
And user bob belongs to the internal_user_admin user role # features/step_definitions/user_steps.rb:71
When I go to the admin page # features/step_definitions/web_steps.rb:161
Then I should be on the users page # features/step_definitions/web_steps.rb:394
@selenium
Scenario: HR User may create a user with hourly rates and manager # features/hr_user_hourly_rates.feature:15
When I follow "New" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
And I should see "Human Resources" within ".inputs" # features/step_definitions/web_steps.rb:256
And I fill in "user_email" with "[email protected]" # features/step_definitions/web_steps.rb:174
And I fill in "user_first_name" with "Bilbo" # features/step_definitions/web_steps.rb:174
And I fill in "user_last_name" with "Baggins" # features/step_definitions/web_steps.rb:174
And I fill in "user_password" with "p@s5w0rd" # features/step_definitions/web_steps.rb:174
And I fill in "user_password_confirmation" with "p@s5w0rd" # features/step_definitions/web_steps.rb:174
And I check "user_roles_list_internal" # features/step_definitions/web_steps.rb:208
And I fill in "user_hourly_rate" with "24.95" # features/step_definitions/web_steps.rb:174
And I select "manager Foo" from "user_manager_id" # features/step_definitions/web_steps.rb:203
And I confirm a js popup on the next step # features/step_definitions/web_steps.rb:445
And I press "Save" # features/step_definitions/web_steps.rb:164
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "Hourly Rate:" within ".bodytext" # features/step_definitions/web_steps.rb:256
And I should see "24.95" within ".bodytext" # features/step_definitions/web_steps.rb:256
And I should see "Manager:" within ".bodytext" # features/step_definitions/web_steps.rb:256
And I should see "manager Foo" within ".bodytext" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: HR User may view a users hourly rates and manager # features/hr_user_hourly_rates.feature:36
When I follow "New" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
And I should see "Human Resources" within ".inputs" # features/step_definitions/web_steps.rb:256
And I fill in "user_email" with "[email protected]" # features/step_definitions/web_steps.rb:174
And I fill in "user_first_name" with "Bilbo" # features/step_definitions/web_steps.rb:174
And I fill in "user_last_name" with "Baggins" # features/step_definitions/web_steps.rb:174
And I fill in "user_password" with "p@s5w0rd" # features/step_definitions/web_steps.rb:174
And I fill in "user_password_confirmation" with "p@s5w0rd" # features/step_definitions/web_steps.rb:174
And I check "user_roles_list_internal" # features/step_definitions/web_steps.rb:208
And I fill in "user_hourly_rate" with "24.95" # features/step_definitions/web_steps.rb:174
And I select "manager Foo" from "user_manager_id" # features/step_definitions/web_steps.rb:203
And I confirm a js popup on the next step # features/step_definitions/web_steps.rb:445
And I press "Save" # features/step_definitions/web_steps.rb:164
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "Hourly Rate:" within ".bodytext" # features/step_definitions/web_steps.rb:256
And I should see "24.95" within ".bodytext" # features/step_definitions/web_steps.rb:256
And I should see "Manager:" within ".bodytext" # features/step_definitions/web_steps.rb:256
And I should see "manager Foo" within ".bodytext" # features/step_definitions/web_steps.rb:256
When I go to the admin page # features/step_definitions/web_steps.rb:161
Then I should be on the users page # features/step_definitions/web_steps.rb:394
Then I should see a link for "Bilbo Baggins" # features/step_definitions/web_steps.rb:237
When I follow "Bilbo Baggins" # features/step_definitions/web_steps.rb:169
Then I should see "Hourly Rate:" within ".bodytext" # features/step_definitions/web_steps.rb:256
And I should see "24.95" within ".bodytext" # features/step_definitions/web_steps.rb:256
And I should see "Manager:" within ".bodytext" # features/step_definitions/web_steps.rb:256
And I should see "manager Foo" within ".bodytext" # features/step_definitions/web_steps.rb:256
Feature: Media Buyer view Campaign
Media Buyer must be able to view Campaigns
Background: # features/mb_campaign.feature:4
Given loaded fixtures # features/step_definitions/object_steps.rb:222
Given reportable data exists # features/step_definitions/object_steps.rb:95
Given I am logged in as media_buyer user bob who belongs to the Display department # features/step_definitions/user_steps.rb:59
When I follow "Campaigns" within "#tabs" # features/step_definitions/web_steps.rb:169
Then I follow "Campaigns" within "#subnav" # features/step_definitions/web_steps.rb:169
Scenario: Media Buyer viewing Campaigns # features/mb_campaign.feature:12
Then I should see a link for "Campaign 0" # features/step_definitions/web_steps.rb:237
Then I should not see a link for "Campaign 1" # features/step_definitions/web_steps.rb:246
When I follow "Campaign 0" # features/step_definitions/web_steps.rb:169
Then I should see "Campaign 0" within "#mainTitle" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a Media Buyer I must be able to create a Campaign and assign it to a department # features/mb_campaign.feature:20
When I follow "New" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
When I select "Display" from "campaign_department_id" # features/step_definitions/web_steps.rb:203
When I fill in "campaign_name" with "Bobs Marketing Blitz" # features/step_definitions/web_steps.rb:174
When I fill in "campaign_advertiser_id" with "adv" # features/step_definitions/web_steps.rb:174
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "Advertiser 0" within "li.ui-menu-item" # features/step_definitions/web_steps.rb:256
Unable to find css "li.ui-menu-item" (Capybara::ElementNotFound)
(eval):2:in `find'
./features/step_definitions/web_steps.rb:153:in `with_scope'
./features/step_definitions/web_steps.rb:257:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
features/mb_campaign.feature:26:in `And I should see "Advertiser 0" within "li.ui-menu-item"'
When I select "Advertiser 0" from the autocomplete on "#campaign_advertiser_id" # features/step_definitions/web_steps.rb:416
And I fill in "campaign_start_date" with "2010-01-01" # features/step_definitions/web_steps.rb:174
And I fill in "campaign_end_date" with "3010-01-01" # features/step_definitions/web_steps.rb:174
And I press "Continue" # features/step_definitions/web_steps.rb:164
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "Bobs Marketing Blitz" # features/step_definitions/web_steps.rb:256
And I should see "display campaign" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a Media Buyer when creating a campaign I want to be able to edit the order name # features/mb_campaign.feature:37
When I follow "New" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Then I should be on the new campaign page # features/step_definitions/web_steps.rb:394
When I select "Display" from "campaign_department_id" # features/step_definitions/web_steps.rb:203
When I fill in "campaign_name" with "Bobs Marketing Blitz" # features/step_definitions/web_steps.rb:174
When I fill in "campaign_advertiser_id" with "adv" # features/step_definitions/web_steps.rb:174
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "Advertiser 0" within "li.ui-menu-item" # features/step_definitions/web_steps.rb:256
Unable to find css "li.ui-menu-item" (Capybara::ElementNotFound)
(eval):2:in `find'
./features/step_definitions/web_steps.rb:153:in `with_scope'
./features/step_definitions/web_steps.rb:257:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
features/mb_campaign.feature:44:in `And I should see "Advertiser 0" within "li.ui-menu-item"'
When I select "Advertiser 0" from the autocomplete on "#campaign_advertiser_id" # features/step_definitions/web_steps.rb:416
And I fill in "campaign_start_date" with "2010-01-01" # features/step_definitions/web_steps.rb:174
And I fill in "campaign_end_date" with "3010-01-01" # features/step_definitions/web_steps.rb:174
And I press "Continue" # features/step_definitions/web_steps.rb:164
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "Campaign was successfully created" within "#flash" # features/step_definitions/web_steps.rb:256
And I should see "Bobs Marketing Blitz" # features/step_definitions/web_steps.rb:256
And I should see "display campaign" # features/step_definitions/web_steps.rb:256
And I fill in "campaign_order_name" with "EditedOrderName" # features/step_definitions/web_steps.rb:174
And I check "Unknown" # features/step_definitions/web_steps.rb:208
And I check "160x600 Standard" # features/step_definitions/web_steps.rb:208
And I press "Continue" # features/step_definitions/web_steps.rb:164
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "Campaign was successfully updated" within "#flash" # features/step_definitions/web_steps.rb:256
Then I follow "Setup" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
@selenium
Scenario: As a Media Buyer when creating a campaign I want to choose a start & end date for the campaign # features/mb_campaign.feature:63
When I follow "New" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Then I should be on the new campaign page # features/step_definitions/web_steps.rb:394
When I select "Display" from "campaign_department_id" # features/step_definitions/web_steps.rb:203
When I fill in "campaign_name" with "Bobs Marketing Blitz" # features/step_definitions/web_steps.rb:174
When I fill in "campaign_advertiser_id" with "adv" # features/step_definitions/web_steps.rb:174
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "Advertiser 0" within "li.ui-menu-item" # features/step_definitions/web_steps.rb:256
Unable to find css "li.ui-menu-item" (Capybara::ElementNotFound)
(eval):2:in `find'
./features/step_definitions/web_steps.rb:153:in `with_scope'
./features/step_definitions/web_steps.rb:257:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
features/mb_campaign.feature:70:in `And I should see "Advertiser 0" within "li.ui-menu-item"'
When I select "Advertiser 0" from the autocomplete on "#campaign_advertiser_id" # features/step_definitions/web_steps.rb:416
And I fill in "campaign_start_date" with "2010-01-01" # features/step_definitions/web_steps.rb:174
And I fill in "campaign_end_date" with "3010-01-01" # features/step_definitions/web_steps.rb:174
And I press "Continue" # features/step_definitions/web_steps.rb:164
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "Campaign was successfully created." # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a Media Buyer when creating a campaign with geo-targets, I want to be able to specify whether or not ads will be geo-targeted in DART. # features/mb_campaign.feature:80
When I follow "New" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Then I should be on the new campaign page # features/step_definitions/web_steps.rb:394
When I select "Display" from "campaign_department_id" # features/step_definitions/web_steps.rb:203
When I fill in "campaign_name" with "Bobs Marketing Blitz" # features/step_definitions/web_steps.rb:174
When I fill in "campaign_advertiser_id" with "adv" # features/step_definitions/web_steps.rb:174
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "Advertiser 0" within "li.ui-menu-item" # features/step_definitions/web_steps.rb:256
Unable to find css "li.ui-menu-item" (Capybara::ElementNotFound)
(eval):2:in `find'
./features/step_definitions/web_steps.rb:153:in `with_scope'
./features/step_definitions/web_steps.rb:257:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
features/mb_campaign.feature:87:in `And I should see "Advertiser 0" within "li.ui-menu-item"'
When I select "Advertiser 0" from the autocomplete on "#campaign_advertiser_id" # features/step_definitions/web_steps.rb:416
And I fill in "campaign_start_date" with "2010-01-01" # features/step_definitions/web_steps.rb:174
And I fill in "campaign_end_date" with "3010-01-01" # features/step_definitions/web_steps.rb:174
And I press "Continue" # features/step_definitions/web_steps.rb:164
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "Campaign was successfully created." # features/step_definitions/web_steps.rb:256
And I press "Continue" # features/step_definitions/web_steps.rb:164
And wait for the page to load # features/step_definitions/web_steps.rb:455
@selenium
Scenario: As a Media Buyer, I must be prevented from associating media buyers with campaigns that belong to a different department # features/mb_campaign.feature:101
And user bob belongs to the Mobile department # features/step_definitions/user_steps.rb:85
And user DisplayMediaBuyer belongs to the media_buyer user role # features/step_definitions/user_steps.rb:71
And user DisplayMediaBuyer belongs to the Display department # features/step_definitions/user_steps.rb:85
And user MobileMediaBuyer belongs to the media_buyer user role # features/step_definitions/user_steps.rb:71
And user MobileMediaBuyer belongs to the Mobile department # features/step_definitions/user_steps.rb:85
When I follow "New" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
When I select "Display" from "campaign_department_id" # features/step_definitions/web_steps.rb:203
When I fill in "campaign_name" with "Bobs Marketing Blitz" # features/step_definitions/web_steps.rb:174
When I fill in "campaign_advertiser_id" with "adv" # features/step_definitions/web_steps.rb:174
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "Advertiser 0" within "li.ui-menu-item" # features/step_definitions/web_steps.rb:256
Unable to find css "li.ui-menu-item" (Capybara::ElementNotFound)
(eval):2:in `find'
./features/step_definitions/web_steps.rb:153:in `with_scope'
./features/step_definitions/web_steps.rb:257:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
features/mb_campaign.feature:112:in `And I should see "Advertiser 0" within "li.ui-menu-item"'
When I select "Advertiser 0" from the autocomplete on "#campaign_advertiser_id" # features/step_definitions/web_steps.rb:416
And I fill in "campaign_start_date" with "2010-01-01" # features/step_definitions/web_steps.rb:174
And I fill in "campaign_end_date" with "3010-01-01" # features/step_definitions/web_steps.rb:174
And I press "Continue" # features/step_definitions/web_steps.rb:164
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "Campaign was successfully created." # features/step_definitions/web_steps.rb:256
And I should not see "MobileMediaBuyer" within "#campaign_media_buyer_input" # features/step_definitions/web_steps.rb:275
@selenium
Scenario: As a Media Buyer when creating a campaign I want to be able to indicate that a campaign is a direct video ad campaign # features/mb_campaign.feature:123
When I follow "New" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
When I select "Display" from "campaign_department_id" # features/step_definitions/web_steps.rb:203
Then I select "Neuron" from "campaign_ad_server" # features/step_definitions/web_steps.rb:203
When I fill in "campaign_name" with "Bobs Marketing Blitz" # features/step_definitions/web_steps.rb:174
When I fill in "campaign_advertiser_id" with "adv" # features/step_definitions/web_steps.rb:174
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "Advertiser 0" within "li.ui-menu-item" # features/step_definitions/web_steps.rb:256
Unable to find css "li.ui-menu-item" (Capybara::ElementNotFound)
(eval):2:in `find'
./features/step_definitions/web_steps.rb:153:in `with_scope'
./features/step_definitions/web_steps.rb:257:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
features/mb_campaign.feature:130:in `And I should see "Advertiser 0" within "li.ui-menu-item"'
When I select "Advertiser 0" from the autocomplete on "#campaign_advertiser_id" # features/step_definitions/web_steps.rb:416
And I fill in "campaign_start_date" with "2010-01-01" # features/step_definitions/web_steps.rb:174
And I fill in "campaign_end_date" with "3010-01-01" # features/step_definitions/web_steps.rb:174
And I press "Continue" # features/step_definitions/web_steps.rb:164
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "Campaign was successfully created." # features/step_definitions/web_steps.rb:256
And I should see "300x600 Video" within "fieldset.inputs" # features/step_definitions/web_steps.rb:256
And I should see "300x250 Video" within "fieldset.inputs" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a Media Buyer when creating a campaign I want to be able to indicate that a campaign is a direct video ad campaign # features/mb_campaign.feature:142
When I follow "New" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
When I select "Display" from "campaign_department_id" # features/step_definitions/web_steps.rb:203
Then I select "Neuron" from "campaign_ad_server" # features/step_definitions/web_steps.rb:203
When I fill in "campaign_name" with "Bobs Marketing Blitz" # features/step_definitions/web_steps.rb:174
When I fill in "campaign_advertiser_id" with "adv" # features/step_definitions/web_steps.rb:174
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "Advertiser 0" within "li.ui-menu-item" # features/step_definitions/web_steps.rb:256
Unable to find css "li.ui-menu-item" (Capybara::ElementNotFound)
(eval):2:in `find'
./features/step_definitions/web_steps.rb:153:in `with_scope'
./features/step_definitions/web_steps.rb:257:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
features/mb_campaign.feature:149:in `And I should see "Advertiser 0" within "li.ui-menu-item"'
When I select "Advertiser 0" from the autocomplete on "#campaign_advertiser_id" # features/step_definitions/web_steps.rb:416
And I fill in "campaign_start_date" with "2010-01-01" # features/step_definitions/web_steps.rb:174
And I fill in "campaign_end_date" with "3010-01-01" # features/step_definitions/web_steps.rb:174
And I press "Continue" # features/step_definitions/web_steps.rb:164
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "Campaign was successfully created." # features/step_definitions/web_steps.rb:256
When I select "Display" from "campaign_override_department_id" # features/step_definitions/web_steps.rb:203
And I should see "300x600 Video" within "fieldset.inputs" # features/step_definitions/web_steps.rb:256
And I check "300x600 Video" # features/step_definitions/web_steps.rb:208
And I press "Continue" # features/step_definitions/web_steps.rb:164
Feature: Media Buyer Campaign Ads Offers
Media Buyer must be able to manage campaign ads
Background: # features/mb_campaign_ads.feature:4
Given loaded fixtures # features/step_definitions/object_steps.rb:222
Given reportable data exists # features/step_definitions/object_steps.rb:95
And I am logged in as media_buyer user bob who belongs to the Display department # features/step_definitions/user_steps.rb:59
Scenario: As the media buyer I must be able to create and manage ads for a campaign # features/mb_campaign_ads.feature:10
And I have these campaigns with these site allocations: # features/step_definitions/site_allocation_steps.rb:1
[1]
[1]
| Department | Campaign Name | Site Name | Number of Zones | Number of Flights |
| Display | Campaign 0 | Site 0 | 3 | 2 |
| Display | Campaign 0 | Site 1 | 3 | 2 |
When I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
When I follow "Ads" # features/step_definitions/web_steps.rb:169
Then I should not see a link for "New" # features/step_definitions/web_steps.rb:246
@selenium
Scenario: As a Media Buyer, when managing a campaign, I want to see an "Existing Ads" table which shows ads belonging to this campaign, and ads belonging to the advertiser, but no known campaign. # features/mb_campaign_ads.feature:21
When I go to the home page # features/step_definitions/web_steps.rb:161
When I follow "Campaigns" # features/step_definitions/web_steps.rb:169
Then I follow "Campaign 0" # features/step_definitions/web_steps.rb:169
Then I follow "Ads" within "#context_menu" # features/step_definitions/web_steps.rb:169
Then I follow "Generate Ads" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Then I should see "Select Existing Ads" # features/step_definitions/web_steps.rb:256
Then I should see "Name" within "table.data" # features/step_definitions/web_steps.rb:256
Then I should see "Geo Target" within "table.data" # features/step_definitions/web_steps.rb:256
Then I should see "Ad Product" within "table.data" # features/step_definitions/web_steps.rb:256
Then I should see "Targeted?" within "table.data" # features/step_definitions/web_steps.rb:256
Then I should see "Capped?" within "table.data" # features/step_definitions/web_steps.rb:256
Then I should see "DART ID" within "table.data" # features/step_definitions/web_steps.rb:256
Then I should see "Start" within "table.data" # features/step_definitions/web_steps.rb:256
Then I should see "End" within "table.data" # features/step_definitions/web_steps.rb:256
And I should see "Ad 0" # features/step_definitions/web_steps.rb:256
And I should see "Ad 1" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As the Media Buyer, when selecting existing ads, I want to select multiple ads to add and/or remove simultaneously. # features/mb_campaign_ads.feature:41
When I go to the home page # features/step_definitions/web_steps.rb:161
When I follow "Campaigns" # features/step_definitions/web_steps.rb:169
Then I follow "Campaign 0" # features/step_definitions/web_steps.rb:169
Then I follow "Ads" within "#context_menu" # features/step_definitions/web_steps.rb:169
Then I follow "Generate Ads" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Then I check "existing_ads_1_add" # features/step_definitions/web_steps.rb:208
Then I check "existing_ads_2_add" # features/step_definitions/web_steps.rb:208
Then I press "Continue" # features/step_definitions/web_steps.rb:164
@selenium
Scenario: As the Media Buyer, when selecting existing ads to be added to the campaign, I want to specify the dimensions that ad will match. # features/mb_campaign_ads.feature:53
When I go to the home page # features/step_definitions/web_steps.rb:161
When I follow "Campaigns" # features/step_definitions/web_steps.rb:169
Then I follow "Campaign 0" # features/step_definitions/web_steps.rb:169
Then I follow "Setup" # features/step_definitions/web_steps.rb:169
And I fill in "campaign_start_date" with "2010-09-01" # features/step_definitions/web_steps.rb:174
And I fill in "campaign_end_date" with "2011-12-31" # features/step_definitions/web_steps.rb:174
Then I press "Continue" # features/step_definitions/web_steps.rb:164
Then I should see "Campaign was successfully updated" # features/step_definitions/web_steps.rb:256
Then I follow "Ads" within "#context_menu" # features/step_definitions/web_steps.rb:169
Then I follow "Generate Ads" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Then I check "existing_ads_1_add" # features/step_definitions/web_steps.rb:208
Then I select "Medium" from "existing_ads_1_custom_dimension_1" # features/step_definitions/web_steps.rb:203
Then I select "Male" from "existing_ads_1_custom_dimension_2" # features/step_definitions/web_steps.rb:203
Then I select "Unknown" from "existing_ads_1_product_id" # features/step_definitions/web_steps.rb:203
Then I check "existing_ads_2_add" # features/step_definitions/web_steps.rb:208
Then I select "Medium" from "existing_ads_2_custom_dimension_1" # features/step_definitions/web_steps.rb:203
Then I select "Male" from "existing_ads_2_custom_dimension_2" # features/step_definitions/web_steps.rb:203
Then I select "Unknown" from "existing_ads_2_product_id" # features/step_definitions/web_steps.rb:203
Then I press "Continue" # features/step_definitions/web_steps.rb:164
@selenium
Scenario: As a Media Buyer, when managing a campaign, I want to see an "Select Ads to Generate" table # features/mb_campaign_ads.feature:76
When I go to the home page # features/step_definitions/web_steps.rb:161
When I follow "Campaigns" # features/step_definitions/web_steps.rb:169
Then I follow "Campaign 0" # features/step_definitions/web_steps.rb:169
Then I follow "Ads" within "#context_menu" # features/step_definitions/web_steps.rb:169
Then I follow "Generate Ads" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Then I should see "Select Ads to Generate" within ".section_title" # features/step_definitions/web_steps.rb:256
Then I should see "Name" within "table.data" # features/step_definitions/web_steps.rb:256
Then I should see "Geo Target" within "table.data" # features/step_definitions/web_steps.rb:256
Then I should see "Ad Product" within "table.data" # features/step_definitions/web_steps.rb:256
Then I should see "Targeted?" within "table.data" # features/step_definitions/web_steps.rb:256
Then I should see "Capped?" within "table.data" # features/step_definitions/web_steps.rb:256
Then I should see "DART ID" within "table.data" # features/step_definitions/web_steps.rb:256
Then I should see "Start" within "table.data" # features/step_definitions/web_steps.rb:256
Then I should see "End" within "table.data" # features/step_definitions/web_steps.rb:256
@selenium @manual
Scenario: As the Media Buyer, when managing the "Generate Ads" table, I want to edit the ad's start and end date # features/mb_campaign_ads.feature:94
And all delayed jobs are run # features/step_definitions/delayed_job_steps.rb:24
When I go to the home page # features/step_definitions/web_steps.rb:161
When I follow "Campaigns" # features/step_definitions/web_steps.rb:169
Then I follow "Campaign 0" # features/step_definitions/web_steps.rb:169
Then I follow "Ads" within "#context_menu" # features/step_definitions/web_steps.rb:169
Then I follow "Generate Ads" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
# FIXME - date fields do not specify ad id - cucumber can't select individually
@selenium
Scenario: As the Media Buyer, when managing the "Generate Ads" table, I want to be able to de-select ads from the list so they won't be created by the system # features/mb_campaign_ads.feature:105
And all delayed jobs are run # features/step_definitions/delayed_job_steps.rb:24
When I go to the home page # features/step_definitions/web_steps.rb:161
When I follow "Campaigns" # features/step_definitions/web_steps.rb:169
Then I follow "Campaign 0" # features/step_definitions/web_steps.rb:169
Then I follow "Ads" within "#context_menu" # features/step_definitions/web_steps.rb:169
Then I follow "Generate Ads" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Feature: Media Buyer Campaign Comments
Media Buyer must be able to view and create campaign comments as well as delete his own campaign comments.
Background: # features/mb_campaign_comments.feature:4
Given loaded fixtures # features/step_definitions/object_steps.rb:222
Given reportable data exists # features/step_definitions/object_steps.rb:95
And I am logged in as media_buyer user bob who belongs to the Display department # features/step_definitions/user_steps.rb:59
@selenium
Scenario: As a Media Buyer, I can view comments for a campaign # features/mb_campaign_comments.feature:11
And I have these campaigns with these comments: # features/step_definitions/campaign_steps.rb:51
| Campaign Name | Comment | Commenter Full Name |
| Campaign 0 | The first comment. | John Smith |
| Campaign 0 | The second comment. | Jane Doe |
| Campaign 0 | The third comment. | Bill Johnson |
When I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
And I follow "Comments" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Then I should see "Comments" within "#drawerPanedrawerComments3" # features/step_definitions/web_steps.rb:256
And I should see "Add Your Comment" within "#drawerPanedrawerComments3" # features/step_definitions/web_steps.rb:256
And I should see "John Smith" within "#campaign_comment_1 h4" # features/step_definitions/web_steps.rb:256
And I should see "The first comment." within "#campaign_comment_1 .body" # features/step_definitions/web_steps.rb:256
And I should see "Jane Doe" within "#campaign_comment_2 h4" # features/step_definitions/web_steps.rb:256
And I should see "The second comment." within "#campaign_comment_2 .body" # features/step_definitions/web_steps.rb:256
And I should see "Bill Johnson" within "#campaign_comment_3 h4" # features/step_definitions/web_steps.rb:256
And I should see "The third comment." within "#campaign_comment_3 .body" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a Media Buyer, I can add a comment to a campaign # features/mb_campaign_comments.feature:30
When I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
And I follow "Comments" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Then I should see "Comments" within "#drawerPanedrawerComments" # features/step_definitions/web_steps.rb:256
And I should see "There are no comments yet for this campaign." within "#drawerPanedrawerComments" # features/step_definitions/web_steps.rb:256
And I should see "Add Your Comment" within "#drawerPanedrawerComments" # features/step_definitions/web_steps.rb:256
Then wait for the page to load # features/step_definitions/web_steps.rb:455
And I fill in "campaign_comment_comment" with "This is my amazing comment. I know you are impressed." within "#campaign_comment_form" # features/step_definitions/web_steps.rb:174
When I press "Post Comment" within "#drawerPanedrawerComments" # features/step_definitions/web_steps.rb:164
Then I should see "Campaign 0" # features/step_definitions/web_steps.rb:256
When I follow "Comments" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Then I should see "Comments" within "#drawerPanedrawerComments1" # features/step_definitions/web_steps.rb:256
And I should see "Add Your Comment" within "#drawerPanedrawerComments1" # features/step_definitions/web_steps.rb:256
And I should see "bob Foo" within "#campaign_comment_1 h4" # features/step_definitions/web_steps.rb:256
And I should see "This is my amazing comment. I know you are impressed." within "#campaign_comment_1 .body" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a Media Buyer, I can delete my own campaign comments but no one else's # features/mb_campaign_comments.feature:48
When I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
And I have these campaigns with these comments: # features/step_definitions/campaign_steps.rb:51
| Campaign Name | Comment | Commenter Full Name |
| Campaign 0 | The first comment. | John Smith |
| Campaign 0 | The second comment. | Jane Doe |
When I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
And I follow "Comments" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Then I should see "Comments" within "#drawerPanedrawerComments2" # features/step_definitions/web_steps.rb:256
And I should see "Add Your Comment" within "#drawerPanedrawerComments2" # features/step_definitions/web_steps.rb:256
And I should see "John Smith" within "#campaign_comment_1 h4" # features/step_definitions/web_steps.rb:256
And I should not see a link for "Delete comment" within "#campaign_comment_1" # features/step_definitions/web_steps.rb:246
And I should see "The first comment." within "#campaign_comment_1 .body" # features/step_definitions/web_steps.rb:256
And I should see "Jane Doe" within "#campaign_comment_2 h4" # features/step_definitions/web_steps.rb:256
And I should not see a link for "Delete comment" within "#campaign_comment_2" # features/step_definitions/web_steps.rb:246
And I should see "The second comment." within "#campaign_comment_2 .body" # features/step_definitions/web_steps.rb:256
Then wait for the page to load # features/step_definitions/web_steps.rb:455
When I fill in "campaign_comment_comment" with "This is my amazing comment. I know you are impressed." within "#campaign_comment_form" # features/step_definitions/web_steps.rb:174
And I press "Post Comment" within "#drawerPanedrawerComments2" # features/step_definitions/web_steps.rb:164
Then I should see "Campaign 0" # features/step_definitions/web_steps.rb:256
When I follow "Comments" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Then I should see "bob Foo" within "#campaign_comment_3 h4" # features/step_definitions/web_steps.rb:256
And I should see a link for "Delete comment" within "#campaign_comment_3" # features/step_definitions/web_steps.rb:237
And I should see "This is my amazing comment. I know you are impressed." within "#campaign_comment_3 .body" # features/step_definitions/web_steps.rb:256
When I confirm a js popup on the next step # features/step_definitions/web_steps.rb:445
And I follow "Delete comment" within "#campaign_comment_3" # features/step_definitions/web_steps.rb:169
Then I should see "Comments" within "#drawerPanedrawerComments2" # features/step_definitions/web_steps.rb:256
When I follow "Comments" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Then I should see "John Smith" within "#campaign_comment_1 h4" # features/step_definitions/web_steps.rb:256
And I should not see a link for "Delete comment" within "#campaign_comment_1" # features/step_definitions/web_steps.rb:246
And I should see "The first comment." within "#campaign_comment_1 .body" # features/step_definitions/web_steps.rb:256
And I should see "Jane Doe" within "#campaign_comment_2 h4" # features/step_definitions/web_steps.rb:256
And I should not see a link for "Delete comment" within "#campaign_comment_2" # features/step_definitions/web_steps.rb:246
And I should see "The second comment." within "#campaign_comment_2 .body" # features/step_definitions/web_steps.rb:256
And I should not see the element "#campaign_comment_3" # features/step_definitions/web_steps.rb:475
Feature: Media Buyer View Campaign Dashboard
Media buyers must be able to access the campaign dashboard
Background: # features/mb_campaign_dashboard.feature:4
And loaded fixtures # features/step_definitions/object_steps.rb:222
And I am logged in as media_buyer user bob who belongs to the Display department # features/step_definitions/user_steps.rb:59
@selenum
Scenario: As the user, I want to view a campaign dashboard. # features/mb_campaign_dashboard.feature:10
Given I have the campaign titled "Campaign 0" for the "Display" department # features/step_definitions/campaign_steps.rb:24
And I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I should see "Campaign 0" within "#mainTitle" # features/step_definitions/web_steps.rb:256
And I should see "Site Status" within ".bodytext" # features/step_definitions/web_steps.rb:256
And I should see the element ".site_status_graph" # features/step_definitions/web_steps.rb:465
And I should see the element "#active_site_performance_table" # features/step_definitions/web_steps.rb:465
@selenum
Scenario: As the user, when viewing the campaign dashboard, I want to see a link to the campaign sites page # features/mb_campaign_dashboard.feature:21
Given I have the campaign titled "Campaign 0" for the "Display" department # features/step_definitions/campaign_steps.rb:24
And I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I should see a link for "Sites" within "#context_menu" # features/step_definitions/web_steps.rb:237
@selenum
Scenario: As the user, when viewing the campaign dashboard, I want to view a summary of the campaign's core values # features/mb_campaign_dashboard.feature:29
Given I have the advertiser named "Advertiser 0" # features/step_definitions/advertiser_steps.rb:1
And I have the campaign titled "Campaign 0" for the "Display" department for the advertiser named "Advertiser 0" with the start date "August 1 2010" and end date "August 30 2010" # features/step_definitions/campaign_steps.rb:24
And I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I should see "Campaign 0" within "#mainTitle h1" # features/step_definitions/web_steps.rb:256
And I should see "premium display campaign" within "#mainTitle h1 span" # features/step_definitions/web_steps.rb:256
And I should see a link for "Advertiser 0" within "#core_details" # features/step_definitions/web_steps.rb:237
And I should see "08/01/2010 - 08/30/2010" within "#core_details" # features/step_definitions/web_steps.rb:256
And I should see "Inactive" within "#core_details" # features/step_definitions/web_steps.rb:256
And I should see a link for "0 ads" within "#core_details" # features/step_definitions/web_steps.rb:237
And I should see "0 zones generated" within "#core_details" # features/step_definitions/web_steps.rb:256
@selenum
Scenario: As the user, when viewing the campaign dashboard, I want to see a summary of all budget allocations # features/mb_campaign_dashboard.feature:44
Given I have the campaign titled "Campaign 0" for the "Display" department with the start date "September 1 2010" and end date "September 30 2010" # features/step_definitions/campaign_steps.rb:24
And I have the following budget allocations for the campaign titled "Campaign 0": # features/step_definitions/budget_allocation_steps.rb:1
| Start Date | End Date | Unit | Unit Revenue | Target Quantity | Income | Gender |
| September 1 2010 | September 30 2010 | impressions | 1.00 | 200000 | Low | Male |
| September 1 2010 | September 25 2010 | clicks | 2.00 | 50000 | High | Male |
And I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I should see "Budget Allocations" within "#budget_allocations h2" # features/step_definitions/web_steps.rb:256
And I should see "impressions" within "#budget_allocations #budget_allocation_row_1" # features/step_definitions/web_steps.rb:256
And I should see "$1.00" within "#budget_allocations #budget_allocation_row_1" # features/step_definitions/web_steps.rb:256
And I should see "200,000" within "#budget_allocations #budget_allocation_row_1" # features/step_definitions/web_steps.rb:256
And I should see the element ".bar_chart" within "#budget_allocations #budget_allocation_row_1" # features/step_definitions/web_steps.rb:465
And I should see a link for "Edit budget allocation" within "#budget_allocations #budget_allocation_row_1" # features/step_definitions/web_steps.rb:237
And I should see "clicks" within "#budget_allocations #budget_allocation_row_2" # features/step_definitions/web_steps.rb:256
And I should see "$2.00" within "#budget_allocations #budget_allocation_row_2" # features/step_definitions/web_steps.rb:256
And I should see "50,000" within "#budget_allocations #budget_allocation_row_2" # features/step_definitions/web_steps.rb:256
And I should see the element ".bar_chart" within "#budget_allocations #budget_allocation_row_2" # features/step_definitions/web_steps.rb:465
And I should see a link for "Edit budget allocation" within "#budget_allocations #budget_allocation_row_2" # features/step_definitions/web_steps.rb:237
And I should see "2 budget allocations, Total: $0.00 of $0.00" within "#budget_allocations tfoot tr" # features/step_definitions/web_steps.rb:256
And I should see the element ".bar_chart" within "#budget_allocations tfoot tr" # features/step_definitions/web_steps.rb:465
Feature: Media Buyer Create Campaign Sites
Media Buyer must be able to create Sites for a Campaign
Background: # features/mb_campaign_site.feature:4
Given loaded fixtures # features/step_definitions/object_steps.rb:222
Given reportable data exists # features/step_definitions/object_steps.rb:95
And I am logged in as media_buyer user bob who belongs to the Display department # features/step_definitions/user_steps.rb:59
When I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I follow "Sites" within "#context_menu" # features/step_definitions/web_steps.rb:169
Scenario: As a Media Buyer I can see the states of my sites # features/mb_campaign_site.feature:12
Then I should see "All Sites belonging to Campaign 0" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a Media Buyer I can add a Site to a campaign # features/mb_campaign_site.feature:17
And I should see a link for "Add Sites" # features/step_definitions/web_steps.rb:237
When I follow "Add Sites" # features/step_definitions/web_steps.rb:169
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "Search Sites" within "#colorbox" # features/step_definitions/web_steps.rb:256
When I fill in "site_id" with "site" # features/step_definitions/web_steps.rb:174
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see a link for "Site 0" # features/step_definitions/web_steps.rb:237
And I should see a link for "Site 1" # features/step_definitions/web_steps.rb:237
When I select "Site 0" from the autocomplete on "#site_id" # features/step_definitions/web_steps.rb:416
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "Site 0" within "#site_list" # features/step_definitions/web_steps.rb:256
expected there to be content "Site 0" in "" (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/web_steps.rb:259:in `block (2 levels) in <top (required)>'
./features/step_definitions/web_steps.rb:153:in `block in with_scope'
./features/step_definitions/web_steps.rb:153:in `with_scope'
./features/step_definitions/web_steps.rb:257:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
features/mb_campaign_site.feature:28:in `Then I should see "Site 0" within "#site_list"'
@selenium
Scenario: As a Media Buyer I can create a new site for a campaign # features/mb_campaign_site.feature:32
And I should see a link for "Add Sites" # features/step_definitions/web_steps.rb:237
When I follow "Add Sites" # features/step_definitions/web_steps.rb:169
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "Create a New Site" within "#cboxLoadedContent" # features/step_definitions/web_steps.rb:256
When I fill in "site_name" with "Site 6" # features/step_definitions/web_steps.rb:174
When I fill in "site_url" with "http://www.site6.com" # features/step_definitions/web_steps.rb:174
When I fill in "site_tag_names" with "site6" # features/step_definitions/web_steps.rb:174
When I fill in "site_publisher_id" with "pub" # features/step_definitions/web_steps.rb:174
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "Publisher 0" within "li.ui-menu-item" # features/step_definitions/web_steps.rb:256
expected there to be content "Publisher 0" in "Create New" (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/web_steps.rb:259:in `block (2 levels) in <top (required)>'
./features/step_definitions/web_steps.rb:153:in `block in with_scope'
./features/step_definitions/web_steps.rb:153:in `with_scope'
./features/step_definitions/web_steps.rb:257:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
features/mb_campaign_site.feature:42:in `And I should see "Publisher 0" within "li.ui-menu-item"'
When I select "Publisher 0" from the autocomplete on "#site_publisher_id" # features/step_definitions/web_steps.rb:416
When I fill in "site_contact_name" with "Bob Richards" # features/step_definitions/web_steps.rb:174
When I fill in "site_contact_email" with "[email protected]" # features/step_definitions/web_steps.rb:174
When I fill in "site_contact_phone" with "5121231234" # features/step_definitions/web_steps.rb:174
And I press "Create Site" # features/step_definitions/web_steps.rb:164
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "Site 6" within "#site_list" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a Media Buyer When I create a new site for a campaign the site tags must be saved # features/mb_campaign_site.feature:53
And I should see a link for "Add Sites" # features/step_definitions/web_steps.rb:237
When I follow "Add Sites" # features/step_definitions/web_steps.rb:169
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "Create a New Site" within "#cboxLoadedContent" # features/step_definitions/web_steps.rb:256
When I fill in "site_name" with "Site 6" # features/step_definitions/web_steps.rb:174
When I fill in "site_url" with "http://www.site6.com" # features/step_definitions/web_steps.rb:174
When I fill in "site_tag_names" with "tagname1, tagname2" # features/step_definitions/web_steps.rb:174
When I fill in "site_publisher_id" with "pub" # features/step_definitions/web_steps.rb:174
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "Publisher 0" within "li.ui-menu-item" # features/step_definitions/web_steps.rb:256
expected there to be content "Publisher 0" in "Create New" (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/web_steps.rb:259:in `block (2 levels) in <top (required)>'
./features/step_definitions/web_steps.rb:153:in `block in with_scope'
./features/step_definitions/web_steps.rb:153:in `with_scope'
./features/step_definitions/web_steps.rb:257:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
features/mb_campaign_site.feature:63:in `And I should see "Publisher 0" within "li.ui-menu-item"'
When I select "Publisher 0" from the autocomplete on "#site_publisher_id" # features/step_definitions/web_steps.rb:416
When I fill in "site_contact_name" with "Bob Richards" # features/step_definitions/web_steps.rb:174
When I fill in "site_contact_email" with "[email protected]" # features/step_definitions/web_steps.rb:174
When I fill in "site_contact_phone" with "5121231234" # features/step_definitions/web_steps.rb:174
And I press "Create Site" # features/step_definitions/web_steps.rb:164
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "Site 6" within "#site_list" # features/step_definitions/web_steps.rb:256
When I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I follow "Sites" within "#context_menu" # features/step_definitions/web_steps.rb:169
Then I follow "Site 6" # features/step_definitions/web_steps.rb:169
Then I follow "Edit Site" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Then the "site_tag_names" field should contain "tagname1 tagname2" # features/step_definitions/web_steps.rb:337
@selenium
Scenario: As a Media Buyer I must enter a site name to create a site for a campaign # features/mb_campaign_site.feature:79
And I should see a link for "Add Sites" # features/step_definitions/web_steps.rb:237
When I follow "Add Sites" # features/step_definitions/web_steps.rb:169
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "Create a New Site" within "#cboxLoadedContent" # features/step_definitions/web_steps.rb:256
When I fill in "site_name" with "" # features/step_definitions/web_steps.rb:174
When I fill in "site_url" with "http://www.site6.com" # features/step_definitions/web_steps.rb:174
When I fill in "site_tag_names" with "site6" # features/step_definitions/web_steps.rb:174
When I fill in "site_publisher_id" with "pub" # features/step_definitions/web_steps.rb:174
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "Publisher 0" within "li.ui-menu-item" # features/step_definitions/web_steps.rb:256
expected there to be content "Publisher 0" in "Create New" (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/web_steps.rb:259:in `block (2 levels) in <top (required)>'
./features/step_definitions/web_steps.rb:153:in `block in with_scope'
./features/step_definitions/web_steps.rb:153:in `with_scope'
./features/step_definitions/web_steps.rb:257:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
features/mb_campaign_site.feature:89:in `And I should see "Publisher 0" within "li.ui-menu-item"'
When I select "Publisher 0" from the autocomplete on "#site_publisher_id" # features/step_definitions/web_steps.rb:416
When I fill in "site_contact_name" with "Bob Richards" # features/step_definitions/web_steps.rb:174
When I fill in "site_contact_email" with "[email protected]" # features/step_definitions/web_steps.rb:174
When I fill in "site_contact_phone" with "5121231234" # features/step_definitions/web_steps.rb:174
And I press "Create Site" # features/step_definitions/web_steps.rb:164
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "can't be blank" within "#site_name_input" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a Media Buyer I must enter a unique site name (or one that will generate a unique zone_prefix) to create a site for a campaign # features/mb_campaign_site.feature:100
When I follow "Sites" within "#context_menu" # features/step_definitions/web_steps.rb:169
And I should see a link for "Add Sites" # features/step_definitions/web_steps.rb:237
When I follow "Add Sites" # features/step_definitions/web_steps.rb:169
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "Create a New Site" within "#cboxLoadedContent" # features/step_definitions/web_steps.rb:256
When I fill in "site_name" with "Site1" # features/step_definitions/web_steps.rb:174
When I fill in "site_url" with "http://www.site1.com" # features/step_definitions/web_steps.rb:174
When I fill in "site_tag_names" with "site1" # features/step_definitions/web_steps.rb:174
When I fill in "site_publisher_id" with "pub" # features/step_definitions/web_steps.rb:174
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "Publisher 0" within "li.ui-menu-item" # features/step_definitions/web_steps.rb:256
expected there to be content "Publisher 0" in "Create New" (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/web_steps.rb:259:in `block (2 levels) in <top (required)>'
./features/step_definitions/web_steps.rb:153:in `block in with_scope'
./features/step_definitions/web_steps.rb:153:in `with_scope'
./features/step_definitions/web_steps.rb:257:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
features/mb_campaign_site.feature:111:in `And I should see "Publisher 0" within "li.ui-menu-item"'
When I select "Publisher 0" from the autocomplete on "#site_publisher_id" # features/step_definitions/web_steps.rb:416
When I fill in "site_contact_name" with "Bob Richards" # features/step_definitions/web_steps.rb:174
When I fill in "site_contact_email" with "[email protected]" # features/step_definitions/web_steps.rb:174
When I fill in "site_contact_phone" with "5121231234" # features/step_definitions/web_steps.rb:174
And I press "Create Site" # features/step_definitions/web_steps.rb:164
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "You must use a site name that will generate a unique zone prefix." within "#site_name_input" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a Media Buyer I must enter a publisher id to create a site for a campaign # features/mb_campaign_site.feature:122
And I should see a link for "Add Sites" # features/step_definitions/web_steps.rb:237
When I follow "Add Sites" # features/step_definitions/web_steps.rb:169
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "Create a New Site" within "#cboxLoadedContent" # features/step_definitions/web_steps.rb:256
When I fill in "site_name" with "Site 6" # features/step_definitions/web_steps.rb:174
When I fill in "site_url" with "http://www.site6.com" # features/step_definitions/web_steps.rb:174
When I fill in "site_tag_names" with "site6" # features/step_definitions/web_steps.rb:174
And I press "Create Site" # features/step_definitions/web_steps.rb:164
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "can't be blank" within "#site_publisher_id_input" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a Media Buyer when I select a publisher the publisher contact data will be copied to the site contact data # features/mb_campaign_site.feature:136
And I should see a link for "Add Sites" # features/step_definitions/web_steps.rb:237
When I follow "Add Sites" # features/step_definitions/web_steps.rb:169
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "Create a New Site" within "#cboxLoadedContent" # features/step_definitions/web_steps.rb:256
When I fill in "site_name" with "Site 6" # features/step_definitions/web_steps.rb:174
When I fill in "site_url" with "http://www.site6.com" # features/step_definitions/web_steps.rb:174
When I fill in "site_tag_names" with "site6" # features/step_definitions/web_steps.rb:174
When I fill in "site_publisher_id" with "pub" # features/step_definitions/web_steps.rb:174
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "Publisher 0" within "li.ui-menu-item" # features/step_definitions/web_steps.rb:256
expected there to be content "Publisher 0" in "Create New" (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/web_steps.rb:259:in `block (2 levels) in <top (required)>'
./features/step_definitions/web_steps.rb:153:in `block in with_scope'
./features/step_definitions/web_steps.rb:153:in `with_scope'
./features/step_definitions/web_steps.rb:257:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
features/mb_campaign_site.feature:146:in `And I should see "Publisher 0" within "li.ui-menu-item"'
When I select "Publisher 0" from the autocomplete on "#site_publisher_id" # features/step_definitions/web_steps.rb:416
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then the "site_contact_name" field should contain "Contact 0" # features/step_definitions/web_steps.rb:337
And the "site_contact_email" field should contain "[email protected]" # features/step_definitions/web_steps.rb:337
And the "site_contact_phone" field should contain "phone 0" # features/step_definitions/web_steps.rb:337
And I press "Create Site" # features/step_definitions/web_steps.rb:164
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "Site 6" within "#site_list" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a Media Buyer when I enter custom contact data before I select a publisher the publisher contact data will not be copied to the site contact data # features/mb_campaign_site.feature:158
And I should see a link for "Add Sites" # features/step_definitions/web_steps.rb:237
When I follow "Add Sites" # features/step_definitions/web_steps.rb:169
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "Create a New Site" within "#cboxLoadedContent" # features/step_definitions/web_steps.rb:256
When I fill in "site_name" with "Site 6" # features/step_definitions/web_steps.rb:174
When I fill in "site_url" with "http://www.site6.com" # features/step_definitions/web_steps.rb:174
When I fill in "site_tag_names" with "site6" # features/step_definitions/web_steps.rb:174
When I fill in "site_contact_name" with "Ricky Ricardo" # features/step_definitions/web_steps.rb:174
Then the "site_contact_name" field should contain "Ricky Ricardo" # features/step_definitions/web_steps.rb:337
When I fill in "site_contact_email" with "[email protected]" # features/step_definitions/web_steps.rb:174
When I fill in "site_contact_phone" with "512-123-1234" # features/step_definitions/web_steps.rb:174
When I fill in "site_publisher_id" with "pub" # features/step_definitions/web_steps.rb:174
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "Publisher 0" within "li.ui-menu-item" # features/step_definitions/web_steps.rb:256
expected there to be content "Publisher 0" in "Create New" (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/web_steps.rb:259:in `block (2 levels) in <top (required)>'
./features/step_definitions/web_steps.rb:153:in `block in with_scope'
./features/step_definitions/web_steps.rb:153:in `with_scope'
./features/step_definitions/web_steps.rb:257:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
features/mb_campaign_site.feature:172:in `And I should see "Publisher 0" within "li.ui-menu-item"'
When I select "Publisher 0" from the autocomplete on "#site_publisher_id" # features/step_definitions/web_steps.rb:416
And I press "Create Site" # features/step_definitions/web_steps.rb:164
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "Site 6" within "#site_list" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a Media Buyer I can create a new publisher when i create a new site # features/mb_campaign_site.feature:184
And I should see a link for "Add Sites" # features/step_definitions/web_steps.rb:237
When I follow "Add Sites" # features/step_definitions/web_steps.rb:169
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "Create a New Site" within "#cboxLoadedContent" # features/step_definitions/web_steps.rb:256
When I fill in "site_name" with "Site 6" # features/step_definitions/web_steps.rb:174
When I fill in "site_url" with "http://www.site6.com" # features/step_definitions/web_steps.rb:174
When I fill in "site_tag_names" with "site6" # features/step_definitions/web_steps.rb:174
When I fill in "site_publisher_id" with "New Publisher" # features/step_definitions/web_steps.rb:174
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "Create New" within "li.ui-menu-item" # features/step_definitions/web_steps.rb:256
When I select "Create New" from the autocomplete on "#site_publisher_id" # features/step_definitions/web_steps.rb:416
When I fill in "site_contact_name" with "Ricky Ricardo" # features/step_definitions/web_steps.rb:174
When I fill in "site_contact_email" with "[email protected]" # features/step_definitions/web_steps.rb:174
When I fill in "site_contact_phone" with "512-123-1234" # features/step_definitions/web_steps.rb:174
And I press "Create Site" # features/step_definitions/web_steps.rb:164
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "Site 6" within "#site_list" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a Media Buyer I can remove a Site from a campaign # features/mb_campaign_site.feature:205
When I check "site_1_select" # features/step_definitions/web_steps.rb:208
Then I mouse over the sites table more actions link # features/step_definitions/web_steps.rb:424
And I follow "Delete" within "#sites_more_actions_links" # features/step_definitions/web_steps.rb:169
Then I follow "Sites" within "#context_menu" # features/step_definitions/web_steps.rb:169
Then I should not see "Site 1" # features/step_definitions/web_steps.rb:275
Feature: Media Buyer Manage Campaign Site Allocations
Media Buyer must be able to manage Campaign Site Allocations
Background: # features/mb_campaign_site_allocations.feature:4
Given loaded fixtures # features/step_definitions/object_steps.rb:222
Given reportable data exists # features/step_definitions/object_steps.rb:95
And I am logged in as media_buyer user bob who belongs to the Display department # features/step_definitions/user_steps.rb:59
When I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I follow "Sites" within "#context_menu" # features/step_definitions/web_steps.rb:169
@selenium
Scenario: As a Media Buyer i can create site allocations # features/mb_campaign_site_allocations.feature:13
And I add an allocation to "Site 0" # features/step_definitions/site_allocation_steps.rb:61
Then I follow "Sites" within "#context_menu" # features/step_definitions/web_steps.rb:169
And I should see "1" within "#site_0_offers" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a Media Buyer i can delete site allocations that do not belong to an offer # features/mb_campaign_site_allocations.feature:20
And I add an allocation to "Site 0" # features/step_definitions/site_allocation_steps.rb:61
Then I follow "Sites" within "#context_menu" # features/step_definitions/web_steps.rb:169
And I should see "1" within "#site_0_offers" # features/step_definitions/web_steps.rb:256
Then I follow "detail_row_1_toggle" # features/step_definitions/web_steps.rb:169
When I confirm a js popup on the next step # features/step_definitions/web_steps.rb:445
Then I follow "delete_site_allocation_1" # features/step_definitions/web_steps.rb:169
Then I follow "Sites" within "#context_menu" # features/step_definitions/web_steps.rb:169
And I should see "0" within "#site_0_offers" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a Media Buyer i must specify a start date to create site allocations # features/mb_campaign_site_allocations.feature:32
When I follow "Add an Allocation to Site 0" # features/step_definitions/web_steps.rb:169
Then I should see "New Site Allocation" within "#mainTitle" # features/step_definitions/web_steps.rb:256
And I fill in "site_allocation_start_date" with "" # features/step_definitions/web_steps.rb:174
And I press "Create Site Allocation" # features/step_definitions/web_steps.rb:164
Then I should see "can't be blank" within "#site_allocation_start_date_input" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a Media Buyer i must specify an end date to create site allocations # features/mb_campaign_site_allocations.feature:41
When I follow "Add an Allocation to Site 0" # features/step_definitions/web_steps.rb:169
Then I should see "New Site Allocation" within "#mainTitle" # features/step_definitions/web_steps.rb:256
And I fill in "site_allocation_end_date" with "" # features/step_definitions/web_steps.rb:174
And I press "Create Site Allocation" # features/step_definitions/web_steps.rb:164
Then I should see "can't be blank" within "#site_allocation_end_date_input" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a Media Buyer i must specify a total delivery to create site allocations # features/mb_campaign_site_allocations.feature:50
When I follow "Add an Allocation to Site 0" # features/step_definitions/web_steps.rb:169
Then I should see "New Site Allocation" within "#mainTitle" # features/step_definitions/web_steps.rb:256
And I fill in "site_allocation_total_delivery" with "" # features/step_definitions/web_steps.rb:174
And I press "Create Site Allocation" # features/step_definitions/web_steps.rb:164
Then I should see "can't be blank" within "#site_allocation_total_delivery_input" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a Media Buyer i must specify a total delivery as a number to create site allocations # features/mb_campaign_site_allocations.feature:59
When I follow "Add an Allocation to Site 0" # features/step_definitions/web_steps.rb:169
Then I should see "New Site Allocation" within "#mainTitle" # features/step_definitions/web_steps.rb:256
And I fill in "site_allocation_total_delivery" with "eeniemeeniemineemo" # features/step_definitions/web_steps.rb:174
And I press "Create Site Allocation" # features/step_definitions/web_steps.rb:164
Then I should see "is not a number" within "#site_allocation_total_delivery_input" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a media buyer, i must specify a name to create a site allocation # features/mb_campaign_site_allocations.feature:68
When I follow "Add an Allocation to Site 0" # features/step_definitions/web_steps.rb:169
Then I should see "New Site Allocation" within "#mainTitle" # features/step_definitions/web_steps.rb:256
And I fill in "site_allocation_name" with "" # features/step_definitions/web_steps.rb:174
And I press "Create Site Allocation" # features/step_definitions/web_steps.rb:164
Then I should see "can't be blank" within "#site_allocation_name_input" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a Media Buyer I want to be able to remove geo targets from site allocations # features/mb_campaign_site_allocations.feature:77
When I follow "Add an Allocation to Site 0" # features/step_definitions/web_steps.rb:169
Then I should see "New Site Allocation" within "#mainTitle" # features/step_definitions/web_steps.rb:256
And I fill in "site_allocation_name" with "NewSiteAllocation" # features/step_definitions/web_steps.rb:174
And I fill in "site_allocation_start_date" with "1-1-2011" # features/step_definitions/web_steps.rb:174
And I fill in "site_allocation_end_date" with "2-1-2012" # features/step_definitions/web_steps.rb:174
And I fill in "site_allocation_total_delivery" with "1000000" # features/step_definitions/web_steps.rb:174
And I fill in "site_allocation_delivery_notes" with "geotargeted" # features/step_definitions/web_steps.rb:174
And I fill in "site_allocation_default_rate" with "0.50" # features/step_definitions/web_steps.rb:174
And I select "impressions" from "site_allocation_rate_type" # features/step_definitions/web_steps.rb:203
And I check "Geo Target 0" within "#site_allocation_geo_targets_input" # features/step_definitions/web_steps.rb:208
And I check "Geo Target 1" within "#site_allocation_geo_targets_input" # features/step_definitions/web_steps.rb:208
When I uncheck "Geo Target 0" within "#site_allocation_geo_targets_input" # features/step_definitions/web_steps.rb:213
And I check "Unknown" within "#site_allocation_products_input" # features/step_definitions/web_steps.rb:208
And I press "Create Site Allocation" # features/step_definitions/web_steps.rb:164
Then I should see "Site Allocation was successfully created." # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a Media Buyer, i must specify a name to create a site allocation # features/mb_campaign_site_allocations.feature:96
When I follow "Add an Allocation to Site 0" # features/step_definitions/web_steps.rb:169
Then I should see "New Site Allocation" within "#mainTitle" # features/step_definitions/web_steps.rb:256
And I fill in "site_allocation_name" with "" # features/step_definitions/web_steps.rb:174
And I press "Create Site Allocation" # features/step_definitions/web_steps.rb:164
Then I should see "can't be blank" within "#site_allocation_name_input" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As the Media Buyer, when entering a site allocation, I want to select multiple dimensions (as defined by the campaign) so I can create my offer. # features/mb_campaign_site_allocations.feature:105
When I follow "Add an Allocation to Site 0" # features/step_definitions/web_steps.rb:169
Then I should see "New Site Allocation" within "#mainTitle" # features/step_definitions/web_steps.rb:256
And I fill in "site_allocation_name" with "NewSiteAllocation" # features/step_definitions/web_steps.rb:174
And I fill in "site_allocation_start_date" with "1-1-2011" # features/step_definitions/web_steps.rb:174
And I fill in "site_allocation_end_date" with "2-1-2012" # features/step_definitions/web_steps.rb:174
And I fill in "site_allocation_total_delivery" with "100000" # features/step_definitions/web_steps.rb:174
And I fill in "site_allocation_delivery_notes" with "notey note" # features/step_definitions/web_steps.rb:174
And I select "impressions" from "site_allocation_rate_type" # features/step_definitions/web_steps.rb:203
And I fill in "site_allocation_default_rate" with "0.50" # features/step_definitions/web_steps.rb:174
And I check "Unknown" within "#site_allocation_products_input" # features/step_definitions/web_steps.rb:208
And I check "160x600 Standard" within "#site_allocation_products_input" # features/step_definitions/web_steps.rb:208
And I check "Geo Target 0" within "#site_allocation_geo_targets_input" # features/step_definitions/web_steps.rb:208
And I check "Geo Target 1" within "#site_allocation_geo_targets_input" # features/step_definitions/web_steps.rb:208
And I check "site_allocation_custom_dimensions_1_low" # features/step_definitions/web_steps.rb:208
And I check "site_allocation_custom_dimensions_1_medium" # features/step_definitions/web_steps.rb:208
And I check "site_allocation_custom_dimensions_1_high" # features/step_definitions/web_steps.rb:208
And I check "site_allocation_custom_dimensions_2_male" # features/step_definitions/web_steps.rb:208
And I check "site_allocation_custom_dimensions_2_female" # features/step_definitions/web_steps.rb:208
And I press "Create Site Allocation" # features/step_definitions/web_steps.rb:164
Then I should see "Site Allocation was successfully created" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As the Media Buyer, when entering site allocations, I want to see a list of the site's existing zones # features/mb_campaign_site_allocations.feature:129
When I follow "Add an Allocation to Site 0" # features/step_definitions/web_steps.rb:169
Then I should see "New Site Allocation" within "#mainTitle" # features/step_definitions/web_steps.rb:256
Then I should see "rmm.site0/zone0" within "#all_zones table.data" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As the Media Buyer, when entering site allocations, I want the ability to make zones for each dimension # features/mb_campaign_site_allocations.feature:136
And 5 zone objects should exist # features/step_definitions/zone.steps.rb:1
When I follow "Add an Allocation to Site 0" # features/step_definitions/web_steps.rb:169
Then I should see "New Site Allocation" within "#mainTitle" # features/step_definitions/web_steps.rb:256
And I fill in "site_allocation_name" with "NewSiteAllocation" # features/step_definitions/web_steps.rb:174
And I fill in "site_allocation_start_date" with "1-1-2011" # features/step_definitions/web_steps.rb:174
And I fill in "site_allocation_end_date" with "2-1-2012" # features/step_definitions/web_steps.rb:174
And I fill in "site_allocation_total_delivery" with "100000" # features/step_definitions/web_steps.rb:174
And I fill in "site_allocation_delivery_notes" with "notey note" # features/step_definitions/web_steps.rb:174
And I select "impressions" from "site_allocation_rate_type" # features/step_definitions/web_steps.rb:203
And I fill in "site_allocation_default_rate" with "0.50" # features/step_definitions/web_steps.rb:174
And I check "Unknown" within "#site_allocation_products_input" # features/step_definitions/web_steps.rb:208
And I check "160x600 Standard" within "#site_allocation_products_input" # features/step_definitions/web_steps.rb:208
And I check "Geo Target 0" within "#site_allocation_geo_targets_input" # features/step_definitions/web_steps.rb:208
And I check "Geo Target 1" within "#site_allocation_geo_targets_input" # features/step_definitions/web_steps.rb:208
And I check "site_allocation_custom_dimensions_1_low" # features/step_definitions/web_steps.rb:208
And I check "site_allocation_custom_dimensions_1_medium" # features/step_definitions/web_steps.rb:208
And I check "site_allocation_custom_dimensions_1_high" # features/step_definitions/web_steps.rb:208
And I check "site_allocation_make_zones_for_custom_1" # features/step_definitions/web_steps.rb:208
And I check "site_allocation_custom_dimensions_2_male" # features/step_definitions/web_steps.rb:208
And I check "site_allocation_custom_dimensions_2_female" # features/step_definitions/web_steps.rb:208
And I check "site_allocation_make_zones_for_custom_2" # features/step_definitions/web_steps.rb:208
And I choose "site_allocation_make_zones_for_products_product" # features/step_definitions/web_steps.rb:218
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I press "Create Site Allocation" # features/step_definitions/web_steps.rb:164
And 17 zone objects should exist # features/step_definitions/zone.steps.rb:1
expected: 17
got: 5 (using ==) (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/zone.steps.rb:2:in `/^(\d+) zone objects should exist$/'
features/mb_campaign_site_allocations.feature:164:in `And 17 zone objects should exist'
Then I should see "Site Allocation was successfully created" # features/step_definitions/web_steps.rb:256
# adding site allocation gives odd numbers of arguments for hash error - cannot reproduce in development
@selenium
Scenario: As the Media Buyer, when I have sent an offer and then add new site allocations, I want the new site allocations to NOT be included in the existing offer. # features/mb_campaign_site_allocations.feature:170
And I have these campaigns with these site allocations: # features/step_definitions/site_allocation_steps.rb:1
[1]
[1]
| Department | Campaign Name | Site Name | Number of Zones | Number of Flights |
| Display | Campaign 0 | Site 0 | 3 | 2 |
| Display | Campaign 0 | Site 1 | 3 | 2 |
And "Campaign 0" with "accepted" offer # features/step_definitions/campaign_steps.rb:66
And I add an allocation to "Site 3" # features/step_definitions/site_allocation_steps.rb:61
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I follow "Offers" within "#context_menu" # features/step_definitions/web_steps.rb:169
Then I follow "publisher_0_1_offer" # features/step_definitions/web_steps.rb:169
And I should not see "Site 3" # features/step_definitions/web_steps.rb:275
# adding site allocation gives odd numbers of arguments for hash error - cannot reproduce in development
@selenium
Scenario: As the Media Buyer, when I have sent an offer and then add new site allocations and then choose to send an offer to that site, I want the new unsent allocations to be included in the new offer. # features/mb_campaign_site_allocations.feature:185
And I have these campaigns with these site allocations: # features/step_definitions/site_allocation_steps.rb:1
[1]
[1]
| Department | Campaign Name | Site Name | Number of Zones | Number of Flights |
| Display | Campaign 0 | Site 0 | 3 | 2 |
| Display | Campaign 0 | Site 1 | 3 | 2 |
And "Campaign 0" with "accepted" offer # features/step_definitions/campaign_steps.rb:66
And I add an allocation to "Site 0" # features/step_definitions/site_allocation_steps.rb:61
And I add an allocation to "Site 1" # features/step_definitions/site_allocation_steps.rb:61
Then I follow "Sites" within "#context_menu" # features/step_definitions/web_steps.rb:169
When I check "site_0_select" # features/step_definitions/web_steps.rb:208
When I check "site_1_select" # features/step_definitions/web_steps.rb:208
And I follow "Send Offer" # features/step_definitions/web_steps.rb:169
And I press "Send" # features/step_definitions/web_steps.rb:164
Then I follow "Offers" within "#context_menu" # features/step_definitions/web_steps.rb:169
Then I follow "publisher_0_1_offer" # features/step_definitions/web_steps.rb:169
And I should see "Site 0" # features/step_definitions/web_steps.rb:256
And I should see "Site 1" # features/step_definitions/web_steps.rb:256
# adding site allocation gives odd numbers of arguments for hash error - cannot reproduce in development
@selenium
Scenario: As a Media Buyer I want to be able to choose multiple sites to create a site allocation for each. # features/mb_campaign_site_allocations.feature:206
And I check "site_0_select" # features/step_definitions/web_steps.rb:208
And I check "site_1_select" # features/step_definitions/web_steps.rb:208
And I check "site_2_select" # features/step_definitions/web_steps.rb:208
And I mouse over the sites table more actions link # features/step_definitions/web_steps.rb:424
And I follow "Add Site Allocations" # features/step_definitions/web_steps.rb:169
Then wait for the page to load # features/step_definitions/web_steps.rb:455
And I fill in "site_allocation_name" with "MyNewSiteAllocation" # features/step_definitions/web_steps.rb:174
And I fill in "site_allocation_start_date" with "1-1-2011" # features/step_definitions/web_steps.rb:174
And I fill in "site_allocation_end_date" with "2-1-2012" # features/step_definitions/web_steps.rb:174
And I fill in "site_allocation_delivery_notes" with "" # features/step_definitions/web_steps.rb:174
And I check "Unknown" within "#site_allocation_products_input" # features/step_definitions/web_steps.rb:208
And I fill in "site_allocation_total_delivery" with "1000000" # features/step_definitions/web_steps.rb:174
And I select "impressions" from "site_allocation_rate_type" # features/step_definitions/web_steps.rb:203
And I fill in "site_allocation_default_rate" with "0.50" # features/step_definitions/web_steps.rb:174
Then I press "Create Site Allocation" # features/step_definitions/web_steps.rb:164
When I follow "detail_row_1_toggle" # features/step_definitions/web_steps.rb:169
Then I should see "MyNewSiteAllocation" within "#detail_row_1" # features/step_definitions/web_steps.rb:256
When I follow "detail_row_2_toggle" # features/step_definitions/web_steps.rb:169
Then I should see "MyNewSiteAllocation" within "#detail_row_2" # features/step_definitions/web_steps.rb:256
When I follow "detail_row_3_toggle" # features/step_definitions/web_steps.rb:169
Then I should see "MyNewSiteAllocation" within "#detail_row_3" # features/step_definitions/web_steps.rb:256
Feature: Media Buyer Send Campaign Site Offers
Media Buyer must be able to send campaign site offers to publishers
Background: # features/mb_campaign_site_offers.feature:4
Given loaded fixtures # features/step_definitions/object_steps.rb:222
Given reportable data exists # features/step_definitions/object_steps.rb:95
And I am logged in as media_buyer user bob who belongs to the Display department # features/step_definitions/user_steps.rb:59
@selenium
Scenario: As the media buyer, when entering a site allocation (offer), I want to select multiple dimensions (as defined by the campaign) so I can create my offer. # features/mb_campaign_site_offers.feature:11
And I have these campaigns with these site allocations: # features/step_definitions/site_allocation_steps.rb:1
[1]
[1]
| Department | Campaign Name | Site Name | Number of Zones | Number of Flights |
| Display | Campaign 0 | Site 0 | 3 | 2 |
| Display | Campaign 0 | Site 1 | 3 | 2 |
When I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I follow "Sites" within "#context_menu" # features/step_definitions/web_steps.rb:169
When I check "site_1_select" # features/step_definitions/web_steps.rb:208
When I check "site_2_select" # features/step_definitions/web_steps.rb:208
And I follow "Send Offer" # features/step_definitions/web_steps.rb:169
And I fill in "offer_name_publisher_1" with "Pub1SpecialOffer" # features/step_definitions/web_steps.rb:174
And I press "Send" # features/step_definitions/web_steps.rb:164
# FIXME - this is not addressing site allocations
@selenium
Scenario: As the media buyer, I wish to preview the email which will be sent to publishers with demo data inserted. # features/mb_campaign_site_offers.feature:28
And I have these campaigns with these site allocations: # features/step_definitions/site_allocation_steps.rb:1
[1]
[1]
| Department | Campaign Name | Site Name | Number of Zones | Number of Flights |
| Display | Campaign 0 | Site 0 | 3 | 2 |
| Display | Campaign 0 | Site 1 | 3 | 2 |
When I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I follow "Sites" within "#context_menu" # features/step_definitions/web_steps.rb:169
When I check "site_0_select" # features/step_definitions/web_steps.rb:208
When I check "site_1_select" # features/step_definitions/web_steps.rb:208
And I follow "Send Offer" # features/step_definitions/web_steps.rb:169
Then I should see "I just received a new online banner campaign featuring 2010_09_15. I think it would work really well on your site, Site 0, and as well as Site 1! I've gone ahead and listed the campaign specifics below for you. Please take a look --" # features/step_definitions/web_steps.rb:256
expected there to be content "I just received a new online banner campaign featuring 2010_09_15. I think it would work really well on your site, Site 0, and as well as Site 1! I've gone ahead and listed the campaign specifics below for you. Please take a look --" in "Wiki Support My Account Log out\nCampaigns\nSites\nAdmin\nCampaigns\nAdvertisers\nAgencies\nAdvertiser 0\nCampaigns\nOrders\nCampaign 0\nSites\nOffers\nTags\nDeployment\nAds\nAdvertisers > Advertiser 0 > Campaigns > Campaign 0\nSend Offers\nSending to:\n Publisher Email Offer name Cancellation Grace Period\n Publisher 0\[email protected]\[email protected]\n24 hours\n48 hours\n72 hours\nOne Week\nTwo Weeks\nFour Weeks\nCustomize Offer Email\nHi {first_name}, I just received a new online banner campaign featuring {campaign}. I think it would work really well on your site, {site}! I've gone ahead and listed the campaign specifics below for you. Please take a look -- {offer} Let me know if you're interested! Thanks!\nCancel\nText Replacement\nCampaign {campaign} Site name(s) {site}\nFirst name {first_name} Site URL(s) {site_url}\nLast name {last_name} Site link(s) {site_link}\nCompany {company} Offer details {offer}\nPublisher 0\nPreview\nHi Contact,\nI just received a new online banner campaign featuring 2010_09_15. I think it would work really well on your site, ! I've gone ahead and listed the campaign specifics below for you. Please take a look --\nCampaign: 2010_09_15\nSite: Site 0\nFlight Name: Site Allocation 20\nFlight Dates: 2010-09-15 - 2010-10-15\nAds 160x600 Standard,300x250 Standard\nGeo Targets\nRate $0.50 cpm\nCancellation Policy: 1 business day\nImpression Allocation: 1,000,000 total impressions\n Flight Name: Site Allocation 21\nFlight Dates: 2010-09-15 - 2010-10-15\nAds 160x600 Standard,300x250 Standard\nGeo Targets\nRate $0.50 cpm\nCancellation Policy: 1 business day\nImpression Allocation: 1,000,000 total impressions\n Site: Site 1\nFlight Name: Site Allocation 22\nFlight Dates: 2010-09-15 - 2010-10-15\nAds 160x600 Standard,300x250 Standard\nGeo Targets\nRate $0.50 cpm\nCancellation Policy: 1 business day\nImpression Allocation: 1,000,000 total impressions\n Flight Name: Site Allocation 23\nFlight Dates: 2010-09-15 - 2010-10-15\nAds 160x600 Standard,300x250 Standard\nGeo Targets\nRate $0.50 cpm\nCancellation Policy: 1 business day\nImpression Allocation: 1,000,000 total impressions\n Let me know if you're interested!\nThanks!\n\nbob Foo\nRMM Online Advertising\[email protected]\nhttp://rmmonline.com" (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/web_steps.rb:259:in `block (2 levels) in <top (required)>'
./features/step_definitions/web_steps.rb:153:in `with_scope'
./features/step_definitions/web_steps.rb:257:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
features/mb_campaign_site_offers.feature:39:in `Then I should see "I just received a new online banner campaign featuring 2010_09_15. I think it would work really well on your site, Site 0, and as well as Site 1! I've gone ahead and listed the campaign specifics below for you. Please take a look --"'
And I should see "Campaign: 2010_09_15" # features/step_definitions/web_steps.rb:256
And I should see "Impression Allocation: 1,000,000 total impressions" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As the media buyer, I wish to preview the publishers email address which will be used to send the offer to the publisher # features/mb_campaign_site_offers.feature:45
And I have these campaigns with these site allocations: # features/step_definitions/site_allocation_steps.rb:1
[1]
[1]
| Department | Campaign Name | Site Name | Number of Zones | Number of Flights |
| Display | Campaign 0 | Site 0 | 3 | 2 |
| Display | Campaign 0 | Site 1 | 3 | 2 |
When I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I follow "Sites" within "#context_menu" # features/step_definitions/web_steps.rb:169
When I check "site_1_select" # features/step_definitions/web_steps.rb:208
When I check "site_2_select" # features/step_definitions/web_steps.rb:208
And I follow "Send Offer" # features/step_definitions/web_steps.rb:169
And I should see "[email protected]" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As the media buyer, I should see an error message when I try to send an offer to a site without flights # features/mb_campaign_site_offers.feature:59
And I have these campaigns with these site allocations: # features/step_definitions/site_allocation_steps.rb:1
[1]
[1, 2]
| Department | Campaign Name | Site Name | Number of Zones | Number of Flights |
| Display | Campaign X | Site 6 | 3 | 2 |
| Display | Campaign X | Site 7 | 5 | 0 |
When I view the campaign titled "Campaign X" # features/step_definitions/campaign_steps.rb:1
expected there to be content "Campaign X" in "Wiki Support My Account Log out\nCampaigns\nSites\nAdmin\nCampaigns\nAdvertisers\nAgencies\nNew Campaign\nCampaigns\nCampaigns\nNEW\nName Advertiser Agency Dept. IO Dates Ads\nCampaign 0 Advertiser 0 Agency 0 Display 2010-09-01 - 2010-10-15 2" (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/web_steps.rb:259:in `block (2 levels) in <top (required)>'
./features/step_definitions/web_steps.rb:153:in `with_scope'
./features/step_definitions/web_steps.rb:257:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
features/mb_campaign_site_offers.feature:64:in `When I view the campaign titled "Campaign X"'
Then I follow "Sites" within "#context_menu" # features/step_definitions/web_steps.rb:169
And I check "site_7_select" # features/step_definitions/web_steps.rb:208
And I follow "Send Offer" # features/step_definitions/web_steps.rb:169
Then I should see "No unoffered Site Allocations for those sites." # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As the media buyer, When sending an offer I want to select which publisher contact receives the email # features/mb_campaign_site_offers.feature:72
And I have these campaigns with these site allocations: # features/step_definitions/site_allocation_steps.rb:1
[1]
[1]
| Department | Campaign Name | Site Name | Number of Zones | Number of Flights |
| Display | Campaign 0 | Site 0 | 3 | 2 |
| Display | Campaign 0 | Site 1 | 3 | 2 |
When I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I follow "Sites" within "#context_menu" # features/step_definitions/web_steps.rb:169
When I check "site_0_select" # features/step_definitions/web_steps.rb:208
When I check "site_1_select" # features/step_definitions/web_steps.rb:208
And I follow "Send Offer" # features/step_definitions/web_steps.rb:169
And I uncheck "offer_contacts_publisher_1_contact_1" # features/step_definitions/web_steps.rb:213
And a clear email queue # features/step_definitions/email_steps.rb:43
And there are no delayed jobs # features/step_definitions/delayed_job_steps.rb:1
And I press "Send" # features/step_definitions/web_steps.rb:164
Then all delayed jobs are run # features/step_definitions/delayed_job_steps.rb:24
Then 0 delayed job objects should exist # features/step_definitions/delayed_job_steps.rb:15
Then "[email protected]" should receive no email # features/step_definitions/email_steps.rb:51
Then "[email protected]" should receive an email # features/step_definitions/email_steps.rb:51
@selenium
Scenario: As the media buyer, I want to send only one email per publisher contact email address # features/mb_campaign_site_offers.feature:95
And I have these campaigns with these site allocations: # features/step_definitions/site_allocation_steps.rb:1
[1]
[1]
| Department | Campaign Name | Site Name | Number of Zones | Number of Flights |
| Display | Campaign 0 | Site 0 | 3 | 2 |
| Display | Campaign 0 | Site 1 | 3 | 2 |
When I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I follow "Sites" within "#context_menu" # features/step_definitions/web_steps.rb:169
When I check "site_1_select" # features/step_definitions/web_steps.rb:208
When I check "site_2_select" # features/step_definitions/web_steps.rb:208
And I follow "Send Offer" # features/step_definitions/web_steps.rb:169
And a clear email queue # features/step_definitions/email_steps.rb:43
And there are no delayed jobs # features/step_definitions/delayed_job_steps.rb:1
And I press "Send" # features/step_definitions/web_steps.rb:164
Then all delayed jobs are run # features/step_definitions/delayed_job_steps.rb:24
Then 0 delayed job objects should exist # features/step_definitions/delayed_job_steps.rb:15
Then "[email protected]" should receive an email # features/step_definitions/email_steps.rb:51
Then "[email protected]" should receive an email # features/step_definitions/email_steps.rb:51
@selenium
Scenario: As the media buyer, I want edit the default email which is sent to publishers # features/mb_campaign_site_offers.feature:115
And I have these campaigns with these site allocations: # features/step_definitions/site_allocation_steps.rb:1
[1]
[1]
| Department | Campaign Name | Site Name | Number of Zones | Number of Flights |
| Display | Campaign 0 | Site 0 | 3 | 2 |
| Display | Campaign 0 | Site 1 | 3 | 2 |
When I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I follow "Sites" within "#context_menu" # features/step_definitions/web_steps.rb:169
When I check "site_0_select" # features/step_definitions/web_steps.rb:208
When I check "site_1_select" # features/step_definitions/web_steps.rb:208
And I follow "Send Offer" # features/step_definitions/web_steps.rb:169
And I fill in "email" with "Hi {company},\n\nI have a hot new opportunity for your sites featuring {campaign}. I think it would work really well on your site, {site}! I've gone ahead and listed the campaign specifics below for you. Please take a look --\n\n{offer}\n\n Let me know if you're interested! \n\nThanks!" # features/step_definitions/web_steps.rb:174
And a clear email queue # features/step_definitions/email_steps.rb:43
And there are no delayed jobs # features/step_definitions/delayed_job_steps.rb:1
And I press "Send" # features/step_definitions/web_steps.rb:164
Then show me the delayed jobs # features/step_definitions/delayed_job_steps.rb:5
#<Delayed::Backend::ActiveRecord::Job id: 13, priority: 0, attempts: 0, handler: "--- !ruby/object:Delayed::PerformableMethod\nobject:...", last_error: nil, run_at: "2010-09-15 09:30:23", locked_at: nil, failed_at: nil, locked_by: nil, created_at: "2010-09-15 09:30:23", updated_at: "2010-09-15 09:30:23">
"--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:SiteAllocation\n attributes:\n id: 1\n start_date: 2010-09-15\n end_date: 2010-10-15\n geo: \n total_delivery: 1000000\n delivery_notes: \n created_at: 2010-09-15 15:00:12.000000000 +05:30\n updated_at: 2010-09-15 15:00:23.300018650 +05:30\n offer_id: 1\n campaign_site_id: 1\n rate_type: CPM\n name: Site Allocation 38\n cancellation_policy: 1 business day\n frequency_cap: \n custom_geo: \n custom_dimensions_1: \n custom_dimensions_2: \n custom_dimensions_3: \n active: 0\n default_rate: 0.5\n make_zones_for_products: '1'\n make_zones_for_geo_targets: \n make_zones_for_custom_1: \n make_zones_for_custom_2: \n make_zones_for_custom_3: \n capped_ads_only: \n app_version: 4.0\n only_this_campaign: \nmethod_name: :after_save_callbacks_without_delay\nargs: []\n"
#<Delayed::Backend::ActiveRecord::Job id: 14, priority: 0, attempts: 0, handler: "--- !ruby/object:Delayed::PerformableMethod\nobject:...", last_error: nil, run_at: "2010-09-15 09:30:23", locked_at: nil, failed_at: nil, locked_by: nil, created_at: "2010-09-15 09:30:23", updated_at: "2010-09-15 09:30:23">
"--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:SiteAllocation\n attributes:\n id: 2\n start_date: 2010-09-15\n end_date: 2010-10-15\n geo: \n total_delivery: 1000000\n delivery_notes: \n created_at: 2010-09-15 15:00:12.000000000 +05:30\n updated_at: 2010-09-15 15:00:23.323335527 +05:30\n offer_id: 1\n campaign_site_id: 1\n rate_type: CPM\n name: Site Allocation 39\n cancellation_policy: 1 business day\n frequency_cap: \n custom_geo: \n custom_dimensions_1: \n custom_dimensions_2: \n custom_dimensions_3: \n active: 0\n default_rate: 0.5\n make_zones_for_products: '1'\n make_zones_for_geo_targets: \n make_zones_for_custom_1: \n make_zones_for_custom_2: \n make_zones_for_custom_3: \n capped_ads_only: \n app_version: 4.0\n only_this_campaign: \nmethod_name: :after_save_callbacks_without_delay\nargs: []\n"
#<Delayed::Backend::ActiveRecord::Job id: 15, priority: 0, attempts: 0, handler: "--- !ruby/object:Delayed::PerformableMethod\nobject:...", last_error: nil, run_at: "2010-09-15 09:30:23", locked_at: nil, failed_at: nil, locked_by: nil, created_at: "2010-09-15 09:30:23", updated_at: "2010-09-15 09:30:23">
"--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:SiteAllocation\n attributes:\n id: 3\n start_date: 2010-09-15\n end_date: 2010-10-15\n geo: \n total_delivery: 1000000\n delivery_notes: \n created_at: 2010-09-15 15:00:13.000000000 +05:30\n updated_at: 2010-09-15 15:00:23.352369683 +05:30\n offer_id: 1\n campaign_site_id: 2\n rate_type: CPM\n name: Site Allocation 40\n cancellation_policy: 1 business day\n frequency_cap: \n custom_geo: \n custom_dimensions_1: \n custom_dimensions_2: \n custom_dimensions_3: \n active: 0\n default_rate: 0.5\n make_zones_for_products: '1'\n make_zones_for_geo_targets: \n make_zones_for_custom_1: \n make_zones_for_custom_2: \n make_zones_for_custom_3: \n capped_ads_only: \n app_version: 4.0\n only_this_campaign: \nmethod_name: :after_save_callbacks_without_delay\nargs: []\n"
#<Delayed::Backend::ActiveRecord::Job id: 16, priority: 0, attempts: 0, handler: "--- !ruby/object:Delayed::PerformableMethod\nobject:...", last_error: nil, run_at: "2010-09-15 09:30:23", locked_at: nil, failed_at: nil, locked_by: nil, created_at: "2010-09-15 09:30:23", updated_at: "2010-09-15 09:30:23">
"--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:SiteAllocation\n attributes:\n id: 4\n start_date: 2010-09-15\n end_date: 2010-10-15\n geo: \n total_delivery: 1000000\n delivery_notes: \n created_at: 2010-09-15 15:00:13.000000000 +05:30\n updated_at: 2010-09-15 15:00:23.371531065 +05:30\n offer_id: 1\n campaign_site_id: 2\n rate_type: CPM\n name: Site Allocation 41\n cancellation_policy: 1 business day\n frequency_cap: \n custom_geo: \n custom_dimensions_1: \n custom_dimensions_2: \n custom_dimensions_3: \n active: 0\n default_rate: 0.5\n make_zones_for_products: '1'\n make_zones_for_geo_targets: \n make_zones_for_custom_1: \n make_zones_for_custom_2: \n make_zones_for_custom_3: \n capped_ads_only: \n app_version: 4.0\n only_this_campaign: \nmethod_name: :after_save_callbacks_without_delay\nargs: []\n"
#<Delayed::Backend::ActiveRecord::Job id: 17, priority: 0, attempts: 0, handler: "--- !ruby/object:Delayed::PerformableMailer\nobject:...", last_error: nil, run_at: "2010-09-15 09:30:23", locked_at: nil, failed_at: nil, locked_by: nil, created_at: "2010-09-15 09:30:23", updated_at: "2010-09-15 09:30:23">
"--- !ruby/object:Delayed::PerformableMailer\nobject: !ruby/class 'OfferMailer'\nmethod_name: :offer\nargs:\n- 1\n- 2\n"
Then all delayed jobs are run # features/step_definitions/delayed_job_steps.rb:24
Then 0 delayed job objects should exist # features/step_definitions/delayed_job_steps.rb:15
Then "[email protected]" should receive an email # features/step_definitions/email_steps.rb:51
When "[email protected]" opens the email # features/step_definitions/email_steps.rb:76
Then they should see "Hi Publisher 0" in the email body # features/step_definitions/email_steps.rb:108
And they should see "I have a hot new opportunity for your sites featuring 2010_09_15. I think it would work really well on your site, Site 0, as well as Site 1! I've gone ahead and listed the campaign specifics below for you. Please take a look --" in the email body # features/step_definitions/email_steps.rb:108
And they should see "2010_09_15" in the email body # features/step_definitions/email_steps.rb:108
And they should see "1,000,000 total impressions" in the email body # features/step_definitions/email_steps.rb:108
@selenium
Scenario: As the media buyer, I wish to be notified when a publisher takes action on an offer. # features/mb_campaign_site_offers.feature:142
And I have these campaigns with these site allocations: # features/step_definitions/site_allocation_steps.rb:1
[1]
[1]
| Department | Campaign Name | Site Name | Number of Zones | Number of Flights |
| Display | Campaign 0 | Site 0 | 3 | 2 |
| Display | Campaign 0 | Site 1 | 3 | 2 |
When I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I follow "Sites" within "#context_menu" # features/step_definitions/web_steps.rb:169
When I check "site_0_select" # features/step_definitions/web_steps.rb:208
When I check "site_1_select" # features/step_definitions/web_steps.rb:208
And I follow "Send Offer" # features/step_definitions/web_steps.rb:169
And a clear email queue # features/step_definitions/email_steps.rb:43
And there are no delayed jobs # features/step_definitions/delayed_job_steps.rb:1
And I press "Send" # features/step_definitions/web_steps.rb:164
And I log out # features/step_definitions/user_steps.rb:67
Then all delayed jobs are run # features/step_definitions/delayed_job_steps.rb:24
Then 0 delayed job objects should exist # features/step_definitions/delayed_job_steps.rb:15
Then "[email protected]" should receive an email # features/step_definitions/email_steps.rb:51
When "[email protected]" opens the email # features/step_definitions/email_steps.rb:76
When I follow "To accept this offer click here" in the email # features/step_definitions/email_steps.rb:178
And I should see "Thank you for accepting our offer" # features/step_definitions/web_steps.rb:256
When I fill in "offer_note" with "I'm happy to accept your offer" # features/step_definitions/web_steps.rb:174
And I follow "Add Comment" # features/step_definitions/web_steps.rb:169
Then I should see "Thank you for your feedback." # features/step_definitions/web_steps.rb:256
And all delayed jobs are run # features/step_definitions/delayed_job_steps.rb:24
Then "[email protected]" should receive an email # features/step_definitions/email_steps.rb:51
When "[email protected]" opens the email # features/step_definitions/email_steps.rb:76
# the email says pending though the offer has been accepted.. seems the status does not actually get written to DB in test mode
# Then show me the offers
# add comment link reloads current page
@selenium
Scenario: As the media buyer I want to select sites which have accepted our offer to send them the PO # features/mb_campaign_site_offers.feature:175
And I have these campaigns with these site allocations: # features/step_definitions/site_allocation_steps.rb:1
[1]
[1]
| Department | Campaign Name | Site Name | Number of Zones | Number of Flights |
| Display | Campaign 0 | Site 0 | 3 | 2 |
| Display | Campaign 0 | Site 1 | 3 | 2 |
And "Campaign 0" with "accepted" offer # features/step_definitions/campaign_steps.rb:66
Then I follow "Offers" within "#context_menu" # features/step_definitions/web_steps.rb:169
When I check "publisher_0_select" # features/step_definitions/web_steps.rb:208
And a clear email queue # features/step_definitions/email_steps.rb:43
And there are no delayed jobs # features/step_definitions/delayed_job_steps.rb:1
Then I follow "Send PO" # features/step_definitions/web_steps.rb:169
And I log out # features/step_definitions/user_steps.rb:67
Then show me the delayed jobs # features/step_definitions/delayed_job_steps.rb:5
#<Delayed::Backend::ActiveRecord::Job id: 17, priority: 0, attempts: 0, handler: "--- !ruby/object:Delayed::PerformableMailer\nobject:...", last_error: nil, run_at: "2010-09-15 09:30:25", locked_at: nil, failed_at: nil, locked_by: nil, created_at: "2010-09-15 09:30:25", updated_at: "2010-09-15 09:30:25">
"--- !ruby/object:Delayed::PerformableMailer\nobject: !ruby/class 'OfferMailer'\nmethod_name: :po\nargs:\n- 1\n- 2\n"
Then all delayed jobs are run # features/step_definitions/delayed_job_steps.rb:24
Then 0 delayed job objects should exist # features/step_definitions/delayed_job_steps.rb:15
Then "[email protected]" should receive an email # features/step_definitions/email_steps.rb:51
When "[email protected]" opens the email # features/step_definitions/email_steps.rb:76
Then they should see "PO for Campaign : 2010_09_15" in the email subject # features/step_definitions/email_steps.rb:100
And they should see "The 2010_09_15 campaign we offered you has been approved" in the email body # features/step_definitions/email_steps.rb:108
And they should see "Your tags are available on that page." in the email body # features/step_definitions/email_steps.rb:108
@selenium
Scenario: As the media buyer I want to select sites which have Ad Codes generated to send them the AD Code # features/mb_campaign_site_offers.feature:200
And I have these campaigns with these site allocations: # features/step_definitions/site_allocation_steps.rb:1
[1]
[1]
| Department | Campaign Name | Site Name | Number of Zones | Number of Flights | Start Date | End Date | Active |
| Display | Campaign 0 | Site 0 | 2 | 1 | 20100801 | 20100901 | 1 |
| Display | Campaign 0 | Site 1 | 2 | 1 | 20100901 | 20101001 | 1 |
And "Campaign 0" with "accepted" offer # features/step_definitions/campaign_steps.rb:66
Then I follow "Offers" within "#context_menu" # features/step_definitions/web_steps.rb:169
When I check "publisher_0_select" # features/step_definitions/web_steps.rb:208
And a clear email queue # features/step_definitions/email_steps.rb:43
And there are no delayed jobs # features/step_definitions/delayed_job_steps.rb:1
Then I follow "Send PO" # features/step_definitions/web_steps.rb:169
Then all delayed jobs are run # features/step_definitions/delayed_job_steps.rb:24
Then 0 delayed job objects should exist # features/step_definitions/delayed_job_steps.rb:15
Then I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I follow "Offers" within "#context_menu" # features/step_definitions/web_steps.rb:169
And I follow "View tags" # features/step_definitions/web_steps.rb:169
And there are no delayed jobs # features/step_definitions/delayed_job_steps.rb:1
And a clear email queue # features/step_definitions/email_steps.rb:43
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "Tags" within "#colorbox" # features/step_definitions/web_steps.rb:256
And I should see "Site 0" within "#colorbox" # features/step_definitions/web_steps.rb:256
And I should see "Site 1" within "#colorbox" # features/step_definitions/web_steps.rb:256
And I press "Release" # features/step_definitions/web_steps.rb:164
Then I follow "Offers" within "#context_menu" # features/step_definitions/web_steps.rb:169
Then I should see "Campaign 0" # features/step_definitions/web_steps.rb:256
Then all delayed jobs are run # features/step_definitions/delayed_job_steps.rb:24
Then 0 delayed job objects should exist # features/step_definitions/delayed_job_steps.rb:15
# Then "[email protected]" should receive an email
# When "[email protected]" opens the email
# Then they should see "PO for Campaign : Campaign 0" in the email subject
# And they should see "The Campaign 0 campaign we offered you has been approved. To view your PO, please click here :" in the email body
# And they should see "Your tags are available on that page." in the email body
# Then save and open all raw emails
@selenium
Scenario: As a media buyer looking at my publisher list, I wish to see those publishers which have been APPROVED and have been sent ad codes. # features/mb_campaign_site_offers.feature:239
And I have these campaigns with these site allocations: # features/step_definitions/site_allocation_steps.rb:1
[1]
[1]
| Department | Campaign Name | Site Name | Number of Zones | Number of Flights | Start Date | End Date | Active |
| Display | Campaign 0 | Site 0 | 2 | 1 | 20100801 | 20100901 | 1 |
| Display | Campaign 0 | Site 1 | 2 | 1 | 20100901 | 20101001 | 1 |
And "Campaign 0" with "approved" offer # features/step_definitions/campaign_steps.rb:66
And I have these campaigns with these site allocations: # features/step_definitions/site_allocation_steps.rb:1
[1]
[1]
| Department | Campaign Name | Site Name | Number of Zones | Number of Flights | Start Date | End Date | Active |
| Display | Campaign 0 | Site 3 | 2 | 1 | 20100801 | 20100901 | 1 |
| Display | Campaign 0 | Site 4 | 2 | 1 | 20100901 | 20101001 | 1 |
And "Campaign 0" with "accepted" offer for "Publisher 1" # features/step_definitions/campaign_steps.rb:66
Then I should see "Approved" # features/step_definitions/web_steps.rb:256
Then I should see "Accepted" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a media buyer looking at the list of publishers, when I look at publishers I have sent AD codes to, I wish to be able to see campaign performance stats of impressions/clicks delivered vs. expected. # features/mb_campaign_site_offers.feature:256
# FIXME - write this stinking test
@selenium
Scenario: as the media buyer I want to be able to view the PO that's sent to the publisher. # features/mb_campaign_site_offers.feature:261
And I have these campaigns with these site allocations: # features/step_definitions/site_allocation_steps.rb:1
[1]
[1]
| Department | Campaign Name | Site Name | Number of Zones | Number of Flights | Start Date | End Date | Active |
| Display | Campaign 0 | Site 0 | 2 | 1 | 20100801 | 20100901 | 1 |
| Display | Campaign 0 | Site 1 | 2 | 1 | 20100901 | 20101001 | 1 |
And "Campaign 0" with "accepted" offer # features/step_definitions/campaign_steps.rb:66
Then I follow "Offers" within "#context_menu" # features/step_definitions/web_steps.rb:169
When I check "publisher_0_select" # features/step_definitions/web_steps.rb:208
And a clear email queue # features/step_definitions/email_steps.rb:43
And there are no delayed jobs # features/step_definitions/delayed_job_steps.rb:1
Then I follow "Send PO" # features/step_definitions/web_steps.rb:169
Then show me the delayed jobs # features/step_definitions/delayed_job_steps.rb:5
#<Delayed::Backend::ActiveRecord::Job id: 9, priority: 0, attempts: 0, handler: "--- !ruby/object:Delayed::PerformableMailer\nobject:...", last_error: nil, run_at: "2010-09-15 09:30:27", locked_at: nil, failed_at: nil, locked_by: nil, created_at: "2010-09-15 09:30:27", updated_at: "2010-09-15 09:30:27">
"--- !ruby/object:Delayed::PerformableMailer\nobject: !ruby/class 'OfferMailer'\nmethod_name: :po\nargs:\n- 1\n- 2\n"
Then all delayed jobs are run # features/step_definitions/delayed_job_steps.rb:24
Then show me the delayed jobs # features/step_definitions/delayed_job_steps.rb:5
Then 0 delayed job objects should exist # features/step_definitions/delayed_job_steps.rb:15
Then I follow "Campaigns" # features/step_definitions/web_steps.rb:169
Then I follow "Campaign 0" # features/step_definitions/web_steps.rb:169
Then I follow "Offers" within "#context_menu" # features/step_definitions/web_steps.rb:169
Then I follow "publisher_0_1_offer" # features/step_definitions/web_steps.rb:169
Then I should see "Purchase Order for Publisher 0" # features/step_definitions/web_steps.rb:256
And I should see "Site: Site 0" # features/step_definitions/web_steps.rb:256
And I should see "Site: Site 1" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As the media buyer I want to be able to view the offer that's sent to the publisher # features/mb_campaign_site_offers.feature:286
And I have these campaigns with these site allocations: # features/step_definitions/site_allocation_steps.rb:1
[1]
[1]
| Department | Campaign Name | Site Name | Number of Zones | Number of Flights | Start Date | End Date | Active |
| Display | Campaign 0 | Site 0 | 2 | 1 | 20100801 | 20100901 | 1 |
| Display | Campaign 0 | Site 1 | 2 | 1 | 20100901 | 20101001 | 1 |
And "Campaign 0" with "accepted" offer # features/step_definitions/campaign_steps.rb:66
Then I follow "Offers" within "#context_menu" # features/step_definitions/web_steps.rb:169
Then I follow "publisher_0_1_offer" # features/step_definitions/web_steps.rb:169
Then I should see "Offer for Publisher 0" # features/step_definitions/web_steps.rb:256
And I should see "Site: Site 0" # features/step_definitions/web_steps.rb:256
And I should see "Site: Site 1" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As the media buyer I want to be able to view the list of campaign sites grouped by their "Orphan / Survey / Known" statuses. # features/mb_campaign_site_offers.feature:300
Then I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I follow "Sites" within "#context_menu" # features/step_definitions/web_steps.rb:169
Then I should see "Surveyed Sites" # features/step_definitions/web_steps.rb:256
And I should see "Site 0" # features/step_definitions/web_steps.rb:256
And I should see "Site 1" # features/step_definitions/web_steps.rb:256
Then I should see "Unsurveyed Sites" # features/step_definitions/web_steps.rb:256
And I should see "Site 2" # features/step_definitions/web_steps.rb:256
And I should see "Site 3" # features/step_definitions/web_steps.rb:256
Then I should see "Orphan Sites" # features/step_definitions/web_steps.rb:256
And I should see "Site 4" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As the media buyer, I want the ability to "Accept" the PO on behalf of the publishers when they print and fax it in. # features/mb_campaign_site_offers.feature:314
And I have these campaigns with these site allocations: # features/step_definitions/site_allocation_steps.rb:1
[1]
[1]
| Department | Campaign Name | Site Name | Number of Zones | Number of Flights | Start Date | End Date | Active |
| Display | Campaign 0 | Site 0 | 2 | 1 | 20100801 | 20100901 | 1 |
| Display | Campaign 0 | Site 1 | 2 | 1 | 20100901 | 20101001 | 1 |
And "Campaign 0" with "pending" offer # features/step_definitions/campaign_steps.rb:66
Then I follow "Offers" within "#context_menu" # features/step_definitions/web_steps.rb:169
Then I follow "publisher_0_1_offer" # features/step_definitions/web_steps.rb:169
Then I should see "Offer for Publisher 0" # features/step_definitions/web_steps.rb:256
And I should see "Site: Site 0" # features/step_definitions/web_steps.rb:256
And I should see "Site: Site 1" # features/step_definitions/web_steps.rb:256
When I follow "Accept" # features/step_definitions/web_steps.rb:169
Then I should see "Thank you for accepting our offer" # features/step_definitions/web_steps.rb:256
Then I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I follow "Offers" within "#context_menu" # features/step_definitions/web_steps.rb:169
When I check "publisher_0_select" # features/step_definitions/web_steps.rb:208
Then I follow "Send PO" # features/step_definitions/web_steps.rb:169
Then I follow "Offers" within "#context_menu" # features/step_definitions/web_steps.rb:169
Then I follow "publisher_0_1_offer" # features/step_definitions/web_steps.rb:169
Then I should see "Purchase Order for Publisher 0" # features/step_definitions/web_steps.rb:256
And I should see "Site: Site 0" # features/step_definitions/web_steps.rb:256
And I should see "Site: Site 1" # features/step_definitions/web_steps.rb:256
And I fill in "offer_signature_name" with "Bob Roberts" # features/step_definitions/web_steps.rb:174
And I fill in "offer_signature_title" with "HMIC" # features/step_definitions/web_steps.rb:174
And I press "offer_submit" # features/step_definitions/web_steps.rb:164
no button with value or id or text 'offer_submit' found (Capybara::ElementNotFound)
(eval):2:in `click_button'
./features/step_definitions/web_steps.rb:166:in `block (2 levels) in <top (required)>'
./features/step_definitions/web_steps.rb:153:in `with_scope'
./features/step_definitions/web_steps.rb:165:in `/^(?:|I )press "([^"]*)"(?: within "([^"]*)")?$/'
features/mb_campaign_site_offers.feature:339:in `And I press "offer_submit"'
Then I should see "PO was signed and accepted on September 15th, 2010 by Bob Roberts, HMIC" # features/step_definitions/web_steps.rb:256
# accept link reloads current page
@selenium
Scenario: As the media buyer, when a publisher has printed and sent the signed PO, I want to be able to manually mark them as accepted. # features/mb_campaign_site_offers.feature:345
And I have these campaigns with these site allocations: # features/step_definitions/site_allocation_steps.rb:1
[1]
[1]
| Department | Campaign Name | Site Name | Number of Zones | Number of Flights | Start Date | End Date | Active |
| Display | Campaign 0 | Site 0 | 2 | 1 | 20100801 | 20100901 | 1 |
| Display | Campaign 0 | Site 1 | 2 | 1 | 20100901 | 20101001 | 1 |
And "Campaign 0" with "pending" offer # features/step_definitions/campaign_steps.rb:66
Then I follow "Offers" within "#context_menu" # features/step_definitions/web_steps.rb:169
Then I follow "publisher_0_1_offer" # features/step_definitions/web_steps.rb:169
Then I should see "Offer for Publisher 0" # features/step_definitions/web_steps.rb:256
And I should see "Site: Site 0" # features/step_definitions/web_steps.rb:256
And I should see "Site: Site 1" # features/step_definitions/web_steps.rb:256
When I follow "Accept" # features/step_definitions/web_steps.rb:169
Then I should see "Thank you for accepting our offer" # features/step_definitions/web_steps.rb:256
Then I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I follow "Offers" within "#context_menu" # features/step_definitions/web_steps.rb:169
When I check "publisher_0_select" # features/step_definitions/web_steps.rb:208
Then I follow "Send PO" # features/step_definitions/web_steps.rb:169
Then I follow "Offers" within "#context_menu" # features/step_definitions/web_steps.rb:169
Then I follow "publisher_0_1_offer" # features/step_definitions/web_steps.rb:169
Then I should see "Purchase Order for Publisher 0" # features/step_definitions/web_steps.rb:256
And I should see "Site: Site 0" # features/step_definitions/web_steps.rb:256
And I should see "Site: Site 1" # features/step_definitions/web_steps.rb:256
And I fill in "offer_signature_name" with "Bob Roberts" # features/step_definitions/web_steps.rb:174
And I fill in "offer_signature_title" with "HMIC" # features/step_definitions/web_steps.rb:174
And I press "offer_submit" # features/step_definitions/web_steps.rb:164
no button with value or id or text 'offer_submit' found (Capybara::ElementNotFound)
(eval):2:in `click_button'
./features/step_definitions/web_steps.rb:166:in `block (2 levels) in <top (required)>'
./features/step_definitions/web_steps.rb:153:in `with_scope'
./features/step_definitions/web_steps.rb:165:in `/^(?:|I )press "([^"]*)"(?: within "([^"]*)")?$/'
features/mb_campaign_site_offers.feature:369:in `And I press "offer_submit"'
Then I should see "PO was signed and accepted on September 15th, 2010 by Bob Roberts, HMIC" # features/step_definitions/web_steps.rb:256
# accept link reloads current page
@selenium
Scenario: As the media buyer I want the ability to create tags for a site *without* sending the PO. # features/mb_campaign_site_offers.feature:375
And I have these campaigns with these site allocations: # features/step_definitions/site_allocation_steps.rb:1
[1]
[1]
| Department | Campaign Name | Site Name | Number of Zones | Number of Flights | Start Date | End Date | Active |
| Display | Campaign 0 | Site 0 | 2 | 1 | 20100801 | 20100901 | 1 |
| Display | Campaign 0 | Site 1 | 2 | 1 | 20100901 | 20101001 | 1 |
And "Campaign 0" with "accepted" offer # features/step_definitions/campaign_steps.rb:66
Then I follow "Offers" within "#context_menu" # features/step_definitions/web_steps.rb:169
When I check "publisher_0_select" # features/step_definitions/web_steps.rb:208
When I mouse over the offers table more actions link # features/step_definitions/web_steps.rb:428
Then I follow "Send Tags only" # features/step_definitions/web_steps.rb:169
Then I should see "Tags sent." # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As the media buyer, when I need to send tags to third party sites, I want a way to simply generate activated tags without a PO or tags being sent to the publisher. # features/mb_campaign_site_offers.feature:389
And I have these campaigns with these site allocations: # features/step_definitions/site_allocation_steps.rb:1
[1]
[1]
| Department | Campaign Name | Site Name | Number of Zones | Number of Flights | Start Date | End Date | Active |
| Display | Campaign 0 | Site 0 | 2 | 1 | 20100801 | 20100901 | 1 |
| Display | Campaign 0 | Site 1 | 2 | 1 | 20100901 | 20101001 | 1 |
And "Campaign 0" with "accepted" offer # features/step_definitions/campaign_steps.rb:66
Then I follow "Offers" within "#context_menu" # features/step_definitions/web_steps.rb:169
When I check "publisher_0_select" # features/step_definitions/web_steps.rb:208
When I mouse over the offers table more actions link # features/step_definitions/web_steps.rb:428
Then I follow "Generate Tags" # features/step_definitions/web_steps.rb:169
Then I should see "Tags generated." # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As the media buyer, when I need to email tags to a third party, I want to generate active tags (without PO/tags being emailed to pub) and specify who I want the tags emailed to. # features/mb_campaign_site_offers.feature:403
And I have these campaigns with these site allocations: # features/step_definitions/site_allocation_steps.rb:1
[1]
[1]
| Department | Campaign Name | Site Name | Number of Zones | Number of Flights | Start Date | End Date | Active |
| Display | Campaign 0 | Site 0 | 2 | 1 | 20100801 | 20100901 | 1 |
| Display | Campaign 0 | Site 1 | 2 | 1 | 20100901 | 20101001 | 1 |
And "Campaign 0" with "accepted" offer # features/step_definitions/campaign_steps.rb:66
And a clear email queue # features/step_definitions/email_steps.rb:43
And there are no delayed jobs # features/step_definitions/delayed_job_steps.rb:1
Then I follow "Offers" within "#context_menu" # features/step_definitions/web_steps.rb:169
When I check "publisher_0_select" # features/step_definitions/web_steps.rb:208
When I mouse over the offers table more actions link # features/step_definitions/web_steps.rb:428
Then I follow "Generate Tags" # features/step_definitions/web_steps.rb:169
Then show me the delayed jobs # features/step_definitions/delayed_job_steps.rb:5
Then all delayed jobs are run # features/step_definitions/delayed_job_steps.rb:24
Then show me the delayed jobs # features/step_definitions/delayed_job_steps.rb:5
Then 0 delayed job objects should exist # features/step_definitions/delayed_job_steps.rb:15
@selenium
Scenario: As the media buyer, I should see links for acceptance and rejection notes in the site rows # features/mb_campaign_site_offers.feature:422
And I have these publishers: # features/step_definitions/publisher_steps.rb:9
| Name |
| Publisher 0 |
| Publisher 1 |
And I have these offers: # features/step_definitions/offer_steps.rb:1
| Department | For Campaign | For Publisher | Status | Note |
| Display | Campaign 0 | Publisher 0 | accepted | This is my 'accepted' note. |
| Display | Campaign 0 | Publisher 1 | pending | |
| Display | Campaign 0 | Publisher 1 | rejected | This is my 'rejected' note. |
When I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I follow "Offers" within "#context_menu" # features/step_definitions/web_steps.rb:169
Then I should see "Publisher 0" within "#offers #offers_row_1" # features/step_definitions/web_steps.rb:256
And I should see a link for "View note" within "#offers #offers_row_1" # features/step_definitions/web_steps.rb:237
And I should see "Publisher 1" within "#offers #offers_row_2" # features/step_definitions/web_steps.rb:256
And I should not see a link for "View note" within "#offers #offers_row_2" # features/step_definitions/web_steps.rb:246
And I should see "Publisher 1" within "#offers #offers_row_3" # features/step_definitions/web_steps.rb:256
And I should see a link for "View note" within "#offers #offers_row_3" # features/step_definitions/web_steps.rb:237
@selenium
Scenario: As the media buyer, I should be able to view an offer's acceptance note from the site row # features/mb_campaign_site_offers.feature:443
And I have these publishers: # features/step_definitions/publisher_steps.rb:9
| Name |
| Publisher 0 |
| Publisher 1 |
And I have these offers: # features/step_definitions/offer_steps.rb:1
| Department | For Campaign | For Publisher | Status | Note |
| Display | Campaign 0 | Publisher 0 | accepted | This is my 'accepted' note. |
| Display | Campaign 0 | Publisher 1 | pending | |
| Display | Campaign 0 | Publisher 1 | rejected | This is my 'rejected' note. |
When I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I follow "Offers" within "#context_menu" # features/step_definitions/web_steps.rb:169
Then I should see "Publisher 0" within "#offers #offers_row_1" # features/step_definitions/web_steps.rb:256
And I should see a link for "View note" within "#offers #offers_row_1" # features/step_definitions/web_steps.rb:237
When I follow "View note" within "#offers #offers_row_1" # features/step_definitions/web_steps.rb:169
Then I should see "Accepted:" within "#colorbox" # features/step_definitions/web_steps.rb:256
And I should see "This is my 'accepted' note." within "#colorbox" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As the media buyer, I should be able to view an offers' rejection note from the site row # features/mb_campaign_site_offers.feature:463
And I have these publishers: # features/step_definitions/publisher_steps.rb:9
| Name |
| Publisher 0 |
| Publisher 1 |
And I have these offers: # features/step_definitions/offer_steps.rb:1
| Department | For Campaign | For Publisher | Status | Note |
| Display | Campaign 0 | Publisher 0 | accepted | This is my 'accepted' note. |
| Display | Campaign 0 | Publisher 1 | pending | |
| Display | Campaign 0 | Publisher 1 | rejected | This is my 'rejected' note. |
When I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I follow "Offers" within "#context_menu" # features/step_definitions/web_steps.rb:169
Then I should see "Publisher 1" within "#offers #offers_row_3" # features/step_definitions/web_steps.rb:256
And I should see a link for "View note" within "#offers #offers_row_3" # features/step_definitions/web_steps.rb:237
When I follow "View note" within "#offers #offers_row_3" # features/step_definitions/web_steps.rb:169
Then I should see "Rejected:" within "#colorbox" # features/step_definitions/web_steps.rb:256
And I should see "This is my 'rejected' note." within "#colorbox" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As the media buyer, I want the ability to re-send an offer. # features/mb_campaign_site_offers.feature:483
And I have these campaigns with these site allocations: # features/step_definitions/site_allocation_steps.rb:1
[1]
[1]
| Department | Campaign Name | Site Name | Number of Zones | Number of Flights | Start Date | End Date | Active |
| Display | Campaign 0 | Site 0 | 2 | 1 | 20100801 | 20100901 | 1 |
| Display | Campaign 0 | Site 1 | 2 | 1 | 20100901 | 20101001 | 1 |
And "Campaign 0" with "pending" offer # features/step_definitions/campaign_steps.rb:66
Then I follow "Offers" within "#context_menu" # features/step_definitions/web_steps.rb:169
When I check "publisher_0_select" # features/step_definitions/web_steps.rb:208
When I mouse over the offers table more actions link # features/step_definitions/web_steps.rb:428
Then I follow "Re-send Offer" # features/step_definitions/web_steps.rb:169
Then I should see "1 offers re-sent" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As the media buyer, I want the ability to re-send an offer even if that offer has been accepted # features/mb_campaign_site_offers.feature:497
And I have these campaigns with these site allocations: # features/step_definitions/site_allocation_steps.rb:1
[1]
[1]
| Department | Campaign Name | Site Name | Number of Zones | Number of Flights | Start Date | End Date | Active |
| Display | Campaign 0 | Site 0 | 2 | 1 | 20100801 | 20100901 | 1 |
| Display | Campaign 0 | Site 1 | 2 | 1 | 20100901 | 20101001 | 1 |
And "Campaign 0" with "accepted" offer # features/step_definitions/campaign_steps.rb:66
Then I follow "Offers" within "#context_menu" # features/step_definitions/web_steps.rb:169
When I check "publisher_0_select" # features/step_definitions/web_steps.rb:208
When I mouse over the offers table more actions link # features/step_definitions/web_steps.rb:428
Then I follow "Re-send Offer" # features/step_definitions/web_steps.rb:169
Then I should see "1 offers re-sent" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a Media Buyer, when managing a campaign, I want to be able to remove an offer. # features/mb_campaign_site_offers.feature:511
And I have these campaigns with these site allocations: # features/step_definitions/site_allocation_steps.rb:1
[1]
[1]
| Department | Campaign Name | Site Name | Number of Zones | Number of Flights | Start Date | End Date | Active |
| Display | Campaign 0 | Site 0 | 2 | 1 | 20100801 | 20100901 | 1 |
| Display | Campaign 0 | Site 1 | 2 | 1 | 20100901 | 20101001 | 1 |
And "Campaign 0" with "pending" offer # features/step_definitions/campaign_steps.rb:66
Then I follow "Offers" within "#context_menu" # features/step_definitions/web_steps.rb:169
Then I should see "Publisher 0" # features/step_definitions/web_steps.rb:256
When I check "publisher_0_select" # features/step_definitions/web_steps.rb:208
When I mouse over the offers table more actions link # features/step_definitions/web_steps.rb:428
And I confirm a js popup on the next step # features/step_definitions/web_steps.rb:445
Then I follow "Delete" # features/step_definitions/web_steps.rb:169
Then I should not see "All Offers belonging to Campaign 0" # features/step_definitions/web_steps.rb:275
@selenium
Scenario: As the media buyer, I want to see the Rate offered in the fight line item. # features/mb_campaign_site_offers.feature:527
And I have these campaigns with these site allocations: # features/step_definitions/site_allocation_steps.rb:1
[1]
[1]
| Department | Campaign Name | Site Name | Number of Zones | Number of Flights | Start Date | End Date | Active |
| Display | Campaign 0 | Site 0 | 2 | 1 | 20100801 | 20100901 | 1 |
| Display | Campaign 0 | Site 1 | 2 | 1 | 20100901 | 20101001 | 1 |
And "Campaign 0" with "accepted" offer # features/step_definitions/campaign_steps.rb:66
When I follow "detail_row_1_toggle" # features/step_definitions/web_steps.rb:169
Then I follow "detail_row_2_toggle" # features/step_definitions/web_steps.rb:169
Then I should see "$0.50000 CPM" within "#detail_row_1" # features/step_definitions/web_steps.rb:256
Then I should see "$0.50000 CPM" within "#detail_row_2" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As the media buyer, I Need the ability to re-generate, or unset, or otherwise clear, a PO after it's been accepted and e-signed and then modified. # features/mb_campaign_site_offers.feature:540
And I have these campaigns with these site allocations: # features/step_definitions/site_allocation_steps.rb:1
[1]
[1]
| Department | Campaign Name | Site Name | Number of Zones | Number of Flights | Start Date | End Date | Active |
| Display | Campaign 0 | Site 0 | 2 | 1 | 20100801 | 20100901 | 1 |
| Display | Campaign 0 | Site 1 | 2 | 1 | 20100901 | 20101001 | 1 |
And "Campaign 0" with "accepted" offer # features/step_definitions/campaign_steps.rb:66
Then I follow "Offers" within "#context_menu" # features/step_definitions/web_steps.rb:169
When I check "publisher_0_select" # features/step_definitions/web_steps.rb:208
Then I follow "Send PO" # features/step_definitions/web_steps.rb:169
Then I follow "Offers" within "#context_menu" # features/step_definitions/web_steps.rb:169
Then I follow "publisher_0_1_offer" # features/step_definitions/web_steps.rb:169
Then I should see "Purchase Order for Publisher 0" # features/step_definitions/web_steps.rb:256
And I should see "Site: Site 0" # features/step_definitions/web_steps.rb:256
And I should see "Site: Site 1" # features/step_definitions/web_steps.rb:256
And I fill in "offer_signature_name" with "Bob Roberts" # features/step_definitions/web_steps.rb:174
And I fill in "offer_signature_title" with "HMIC" # features/step_definitions/web_steps.rb:174
And I press "offer_submit" # features/step_definitions/web_steps.rb:164
no button with value or id or text 'offer_submit' found (Capybara::ElementNotFound)
(eval):2:in `click_button'
./features/step_definitions/web_steps.rb:166:in `block (2 levels) in <top (required)>'
./features/step_definitions/web_steps.rb:153:in `with_scope'
./features/step_definitions/web_steps.rb:165:in `/^(?:|I )press "([^"]*)"(?: within "([^"]*)")?$/'
features/mb_campaign_site_offers.feature:557:in `And I press "offer_submit"'
Then I should see "PO was signed and accepted on September 15th, 2010 by Bob Roberts, HMIC" # features/step_definitions/web_steps.rb:256
When I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I follow "Offers" within "#context_menu" # features/step_definitions/web_steps.rb:169
When I check "publisher_0_select" # features/step_definitions/web_steps.rb:208
When I mouse over the offers table more actions link # features/step_definitions/web_steps.rb:428
Then I follow "Un-sign PO" within "#offers_more_actions_links" # features/step_definitions/web_steps.rb:169
Then I should see "1 offers un-signed" within "#flash" # features/step_definitions/web_steps.rb:256
Feature: Media Buyer Get Publisher Emails For Campaign Sites
Media Buyer must be able to get publisher emails for Campaign Sites
Background: # features/mb_campaign_site_publisher_emails.feature:4
And loaded fixtures # features/step_definitions/object_steps.rb:222
And I am logged in as media_buyer user bob who belongs to the Display department # features/step_definitions/user_steps.rb:59
And "Campaign 0" with site publisher email data # features/step_definitions/campaign_steps.rb:177
And I follow "Sites" within "#context_menu" # features/step_definitions/web_steps.rb:169
@selenium
Scenario: As a media buyer I must specify at least one site # features/mb_campaign_site_publisher_emails.feature:12
Then I mouse over the sites table more actions link # features/step_definitions/web_steps.rb:424
And I confirm a js popup on the next step # features/step_definitions/web_steps.rb:445
And I follow "Mailing List" # features/step_definitions/web_steps.rb:169
# Then I should see a "Choose at least one site to get an email for." JS confirm dialog
@selenium
Scenario: As a media buyer when I select only sites that have publishers with no contact e-mail, I should get a specific message # features/mb_campaign_site_publisher_emails.feature:20
And I check "site_3_select" # features/step_definitions/web_steps.rb:208
And I check "site_4_select" # features/step_definitions/web_steps.rb:208
And I check "site_5_select" # features/step_definitions/web_steps.rb:208
Then I mouse over the sites table more actions link # features/step_definitions/web_steps.rb:424
And I follow "Mailing List" # features/step_definitions/web_steps.rb:169
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "There were no publisher emails available for the sites you selected." within "#publisher_emails_form" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a media buyer when I select sites that have publishers with contact e-mails, I should get a list of their e-mails # features/mb_campaign_site_publisher_emails.feature:31
And I check "site_0_select" # features/step_definitions/web_steps.rb:208
And I check "site_1_select" # features/step_definitions/web_steps.rb:208
And I check "site_2_select" # features/step_definitions/web_steps.rb:208
Then I mouse over the sites table more actions link # features/step_definitions/web_steps.rb:424
And I follow "Mailing List" # features/step_definitions/web_steps.rb:169
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "[email protected];[email protected];[email protected]" within "#publisher_emails" # features/step_definitions/web_steps.rb:256
Feature: Media Buyer Order Ads Offers
Media Buyer must be able to manage order ads
Background: # features/mb_order_ads.feature:4
Given loaded fixtures # features/step_definitions/object_steps.rb:222
Given reportable data exists # features/step_definitions/object_steps.rb:95
And I am logged in as media_buyer user bob who belongs to the Display department # features/step_definitions/user_steps.rb:59
Scenario: As the media planner I must be able to create and manage ads for an order # features/mb_order_ads.feature:10
Then I follow "Campaigns" within "#tabs" # features/step_definitions/web_steps.rb:169
Then I follow "Advertisers" # features/step_definitions/web_steps.rb:169
Then I follow "Advertiser 0" # features/step_definitions/web_steps.rb:169
Then I follow "Orders" # features/step_definitions/web_steps.rb:169
Then I follow "Order 1" # features/step_definitions/web_steps.rb:169
Then I follow "Ads" # features/step_definitions/web_steps.rb:169
Then I should not see a link for "New Ad" # features/step_definitions/web_steps.rb:246
Feature: Media Buyer Publisher
As a Media Buyer I must be able to create and manage publishers
Background: # features/mb_publisher.feature:4
Given loaded fixtures # features/step_definitions/object_steps.rb:222
Given reportable data exists # features/step_definitions/object_steps.rb:95
And I am logged in as media_buyer user bob who belongs to the Display department # features/step_definitions/user_steps.rb:59
Then I follow "Sites" within "#tabs" # features/step_definitions/web_steps.rb:169
Then I follow "Publishers" # features/step_definitions/web_steps.rb:169
Then I follow "Publisher 0" # features/step_definitions/web_steps.rb:169
@selenium
Scenario: As a Media Buyer, when I edit a publisher I want to be able to specify what T&C will be sent to the publisher. # features/mb_publisher.feature:13
Then I follow "Edit Publisher" # features/step_definitions/web_steps.rb:169
Then I should see "Offer Terms & Conditions" # features/step_definitions/web_steps.rb:256
And I should see "RMM" within "#publisher_offer_terms_and_conditions_type" # features/step_definitions/web_steps.rb:256
And I should see "IAB" within "#publisher_offer_terms_and_conditions_type" # features/step_definitions/web_steps.rb:256
And I should see "CUSTOM" within "#publisher_offer_terms_and_conditions_type" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a Media Buyer, I want to be able to set custom T&C text for a publisher to receive. # features/mb_publisher.feature:22
Then I follow "Edit Publisher" # features/step_definitions/web_steps.rb:169
Then I should see "Offer Terms & Conditions" # features/step_definitions/web_steps.rb:256
And I should see "CUSTOM" within "#publisher_offer_terms_and_conditions_type" # features/step_definitions/web_steps.rb:256
When I select "CUSTOM" from "publisher_offer_terms_and_conditions_type" # features/step_definitions/web_steps.rb:203
And I fill in "publisher_offer_terms_and_conditions_custom_text" with "my special terms and conditions copy" # features/step_definitions/web_steps.rb:174
And I press "Save" # features/step_definitions/web_steps.rb:164
Then I follow "Edit Publisher" # features/step_definitions/web_steps.rb:169
Then I should see "my special terms and conditions copy" within "#publisher_offer_terms_and_conditions_custom_text" # features/step_definitions/web_steps.rb:256
Feature: Media Buyer Publisher Sites
As a Media Buyer I must be able to create and manage publisher sites
Background: # features/mb_publisher_sites.feature:4
Given loaded fixtures # features/step_definitions/object_steps.rb:222
Given reportable data exists # features/step_definitions/object_steps.rb:95
And I am logged in as media_buyer user bob who belongs to the Display department # features/step_definitions/user_steps.rb:59
Then I follow "Sites" within "#tabs" # features/step_definitions/web_steps.rb:169
Then I follow "Publishers" within "#subnav" # features/step_definitions/web_steps.rb:169
Then I follow "Publisher 0" within "#mainContent" # features/step_definitions/web_steps.rb:169
Then I follow "Sites" within "#context_menu" # features/step_definitions/web_steps.rb:169
@selenium
Scenario: As a Media Buyer i can see pacing information for a site # features/mb_publisher_sites.feature:15
Then I follow "Site 0" within "#mainContent" # features/step_definitions/web_steps.rb:169
Then wait for the page to load # features/step_definitions/web_steps.rb:455
Feature: Media Planner Create Campaign
Media Planner must be able to create Campaigns
Background: # features/mp_campaign.feature:4
Given loaded fixtures # features/step_definitions/object_steps.rb:222
Given reportable data exists # features/step_definitions/object_steps.rb:95
Given I am logged in as media_planner user bob who belongs to the Display department # features/step_definitions/user_steps.rb:59
@selenium
Scenario: Media Planner viewing Campaigns # features/mp_campaign.feature:11
When I go to the home page # features/step_definitions/web_steps.rb:161
Then I should be on the home page # features/step_definitions/web_steps.rb:394
When I follow "Campaign" # features/step_definitions/web_steps.rb:169
Then I should be on the campaigns page # features/step_definitions/web_steps.rb:394
Then I should see a link for "Campaign 0" # features/step_definitions/web_steps.rb:237
Then I should not see a link for "Campaign 2" # features/step_definitions/web_steps.rb:246
@selenium
Scenario: As a Media Planner I must be able to create a Campaign and assign it to a department # features/mp_campaign.feature:21
When I go to the home page # features/step_definitions/web_steps.rb:161
When I follow "Campaigns" # features/step_definitions/web_steps.rb:169
When I follow "New" # features/step_definitions/web_steps.rb:169
When I select "Display" from "campaign_department_id" # features/step_definitions/web_steps.rb:203
When I fill in "campaign_name" with "Bobs Marketing Blitz" # features/step_definitions/web_steps.rb:174
When I fill in "campaign_advertiser_id" with "adv" # features/step_definitions/web_steps.rb:174
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "Advertiser 0" within "li.ui-menu-item" # features/step_definitions/web_steps.rb:256
Unable to find css "li.ui-menu-item" (Capybara::ElementNotFound)
(eval):2:in `find'
./features/step_definitions/web_steps.rb:153:in `with_scope'
./features/step_definitions/web_steps.rb:257:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
features/mp_campaign.feature:29:in `And I should see "Advertiser 0" within "li.ui-menu-item"'
When I select "Advertiser 0" from the autocomplete on "#campaign_advertiser_id" # features/step_definitions/web_steps.rb:416
And I fill in "campaign_start_date" with "2010-09-01" # features/step_definitions/web_steps.rb:174
And I fill in "campaign_end_date" with "2010-09-30" # features/step_definitions/web_steps.rb:174
And I press "Continue" # features/step_definitions/web_steps.rb:164
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "Bobs Marketing Blitz" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a Media Planner I must provide a name to create a Campaign # features/mp_campaign.feature:40
When I go to the home page # features/step_definitions/web_steps.rb:161
When I follow "Campaigns" # features/step_definitions/web_steps.rb:169
When I follow "New" # features/step_definitions/web_steps.rb:169
When I fill in "campaign_advertiser_id" with "adv" # features/step_definitions/web_steps.rb:174
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "Advertiser 0" within "li.ui-menu-item" # features/step_definitions/web_steps.rb:256
Unable to find css "li.ui-menu-item" (Capybara::ElementNotFound)
(eval):2:in `find'
./features/step_definitions/web_steps.rb:153:in `with_scope'
./features/step_definitions/web_steps.rb:257:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
features/mp_campaign.feature:46:in `And I should see "Advertiser 0" within "li.ui-menu-item"'
When I select "Advertiser 0" from the autocomplete on "#campaign_advertiser_id" # features/step_definitions/web_steps.rb:416
And I press "Continue" # features/step_definitions/web_steps.rb:164
And I should see "can't be blank" within "#campaign_name_input" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a Media Planner I am not allowed to create an Advertiser from the create campaign form # features/mp_campaign.feature:53
When I go to the home page # features/step_definitions/web_steps.rb:161
When I follow "Campaigns" # features/step_definitions/web_steps.rb:169
When I follow "New" # features/step_definitions/web_steps.rb:169
When I select "Display" from "campaign_department_id" # features/step_definitions/web_steps.rb:203
When I fill in "campaign_name" with "Bobs Marketing Blitz" # features/step_definitions/web_steps.rb:174
When I fill in "campaign_advertiser_id" with "adv" # features/step_definitions/web_steps.rb:174
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "Advertiser 0" within "li.ui-menu-item" # features/step_definitions/web_steps.rb:256
Unable to find css "li.ui-menu-item" (Capybara::ElementNotFound)
(eval):2:in `find'
./features/step_definitions/web_steps.rb:153:in `with_scope'
./features/step_definitions/web_steps.rb:257:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
features/mp_campaign.feature:61:in `And I should see "Advertiser 0" within "li.ui-menu-item"'
And I should not see "Create New" within "li.ui-menu-item" # features/step_definitions/web_steps.rb:275
# Then the "campaign_department_id" field should contain "Display"
# FIXME - write this test
@selenium
Scenario: As a Media Planner, I want the department's premium/volume default to be assigned to a campaign if none is selected # features/mp_campaign.feature:84
When I go to the home page # features/step_definitions/web_steps.rb:161
When I follow "Campaigns" # features/step_definitions/web_steps.rb:169
When I follow "New" # features/step_definitions/web_steps.rb:169
When I select "Display" from "campaign_department_id" # features/step_definitions/web_steps.rb:203
When I fill in "campaign_name" with "Bobs Marketing Blitz" # features/step_definitions/web_steps.rb:174
When I fill in "campaign_advertiser_id" with "adv" # features/step_definitions/web_steps.rb:174
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "Advertiser 0" within "li.ui-menu-item" # features/step_definitions/web_steps.rb:256
Unable to find css "li.ui-menu-item" (Capybara::ElementNotFound)
(eval):2:in `find'
./features/step_definitions/web_steps.rb:153:in `with_scope'
./features/step_definitions/web_steps.rb:257:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
features/mp_campaign.feature:92:in `And I should see "Advertiser 0" within "li.ui-menu-item"'
When I select "Advertiser 0" from the autocomplete on "#campaign_advertiser_id" # features/step_definitions/web_steps.rb:416
And I fill in "campaign_start_date" with "2010-09-01" # features/step_definitions/web_steps.rb:174
And I fill in "campaign_end_date" with "2010-09-30" # features/step_definitions/web_steps.rb:174
And I press "Continue" # features/step_definitions/web_steps.rb:164
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "Bobs Marketing Blitz" # features/step_definitions/web_steps.rb:256
And I should see "premium display campaign" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a Media Planner, I want to be able to override the department's premium/volume default with a campaign setting of premium/volume # features/mp_campaign.feature:103
When I go to the home page # features/step_definitions/web_steps.rb:161
When I follow "Campaigns" # features/step_definitions/web_steps.rb:169
When I follow "New" # features/step_definitions/web_steps.rb:169
When I select "Display" from "campaign_department_id" # features/step_definitions/web_steps.rb:203
When I fill in "campaign_name" with "Bobs Marketing Blitz" # features/step_definitions/web_steps.rb:174
When I fill in "campaign_advertiser_id" with "adv" # features/step_definitions/web_steps.rb:174
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "Advertiser 0" within "li.ui-menu-item" # features/step_definitions/web_steps.rb:256
Unable to find css "li.ui-menu-item" (Capybara::ElementNotFound)
(eval):2:in `find'
./features/step_definitions/web_steps.rb:153:in `with_scope'
./features/step_definitions/web_steps.rb:257:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
features/mp_campaign.feature:111:in `And I should see "Advertiser 0" within "li.ui-menu-item"'
When I select "Advertiser 0" from the autocomplete on "#campaign_advertiser_id" # features/step_definitions/web_steps.rb:416
And I fill in "campaign_start_date" with "2010-09-01" # features/step_definitions/web_steps.rb:174
And I fill in "campaign_end_date" with "2010-09-30" # features/step_definitions/web_steps.rb:174
And I press "Continue" # features/step_definitions/web_steps.rb:164
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "Bobs Marketing Blitz" # features/step_definitions/web_steps.rb:256
Then I should see "premium display campaign" # features/step_definitions/web_steps.rb:256
When I choose "campaign_premium_volume_volume" # features/step_definitions/web_steps.rb:218
And I press "Continue" # features/step_definitions/web_steps.rb:164
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "Bobs Marketing Blitz" # features/step_definitions/web_steps.rb:256
Then I should see "volume display campaign" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a Media Planner, I create a new campaign with a blank order name and order name gets set to default # features/mp_campaign.feature:127
When I go to the home page # features/step_definitions/web_steps.rb:161
When I follow "Campaigns" # features/step_definitions/web_steps.rb:169
When I follow "New" # features/step_definitions/web_steps.rb:169
When I select "Display" from "campaign_department_id" # features/step_definitions/web_steps.rb:203
When I fill in "campaign_name" with "Bobs Marketing Blitz" # features/step_definitions/web_steps.rb:174
When I fill in "campaign_advertiser_id" with "adv" # features/step_definitions/web_steps.rb:174
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "Advertiser 0" within "li.ui-menu-item" # features/step_definitions/web_steps.rb:256
Unable to find css "li.ui-menu-item" (Capybara::ElementNotFound)
(eval):2:in `find'
./features/step_definitions/web_steps.rb:153:in `with_scope'
./features/step_definitions/web_steps.rb:257:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
features/mp_campaign.feature:135:in `And I should see "Advertiser 0" within "li.ui-menu-item"'
And I select "Advertiser 0" from the autocomplete on "#campaign_advertiser_id" # features/step_definitions/web_steps.rb:416
And I fill in "campaign_start_date" with "2010-09-01" # features/step_definitions/web_steps.rb:174
And I fill in "campaign_end_date" with "2010-09-30" # features/step_definitions/web_steps.rb:174
And I press "Continue" # features/step_definitions/web_steps.rb:164
Then the "campaign_order_name" field should contain "Agency0-Advertiser0-BobsMarketingBlitz-2010-09" # features/step_definitions/web_steps.rb:337
And I fill in "campaign_order_name" with "" # features/step_definitions/web_steps.rb:174
Then I check "Unknown" # features/step_definitions/web_steps.rb:208
Then I check "160x600 Standard" # features/step_definitions/web_steps.rb:208
And I press "Continue" # features/step_definitions/web_steps.rb:164
And I follow "Setup" # features/step_definitions/web_steps.rb:169
Then the "campaign_order_name" field should contain "Agency0-Advertiser0-BobsMarketingBlitz-2010-09" # features/step_definitions/web_steps.rb:337
@selenium
Scenario: As a Media Planner, I create a new campaign with a default order name and the order name should be saved # features/mp_campaign.feature:150
When I go to the home page # features/step_definitions/web_steps.rb:161
When I follow "Campaigns" # features/step_definitions/web_steps.rb:169
When I follow "New" # features/step_definitions/web_steps.rb:169
When I select "Display" from "campaign_department_id" # features/step_definitions/web_steps.rb:203
When I fill in "campaign_name" with "Bobs Marketing Blitz" # features/step_definitions/web_steps.rb:174
When I fill in "campaign_advertiser_id" with "adv" # features/step_definitions/web_steps.rb:174
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "Advertiser 0" within "li.ui-menu-item" # features/step_definitions/web_steps.rb:256
Unable to find css "li.ui-menu-item" (Capybara::ElementNotFound)
(eval):2:in `find'
./features/step_definitions/web_steps.rb:153:in `with_scope'
./features/step_definitions/web_steps.rb:257:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
features/mp_campaign.feature:158:in `And I should see "Advertiser 0" within "li.ui-menu-item"'
And I select "Advertiser 0" from the autocomplete on "#campaign_advertiser_id" # features/step_definitions/web_steps.rb:416
And I fill in "campaign_start_date" with "2010-09-01" # features/step_definitions/web_steps.rb:174
And I fill in "campaign_end_date" with "2010-09-30" # features/step_definitions/web_steps.rb:174
And I press "Continue" # features/step_definitions/web_steps.rb:164
Then the "campaign_order_name" field should contain "Agency0-Advertiser0-BobsMarketingBlitz-2010-09" # features/step_definitions/web_steps.rb:337
Then I check "Unknown" # features/step_definitions/web_steps.rb:208
Then I check "160x600 Standard" # features/step_definitions/web_steps.rb:208
And I press "Continue" # features/step_definitions/web_steps.rb:164
And I follow "Setup" # features/step_definitions/web_steps.rb:169
Then the "campaign_order_name" field should contain "Agency0-Advertiser0-BobsMarketingBlitz-2010-09" # features/step_definitions/web_steps.rb:337
@selenium
Scenario: As a Media Planner, I create a new campaign and enter an order name, the order name should be saved # features/mp_campaign.feature:172
When I go to the home page # features/step_definitions/web_steps.rb:161
When I follow "Campaigns" # features/step_definitions/web_steps.rb:169
When I follow "New" # features/step_definitions/web_steps.rb:169
When I select "Display" from "campaign_department_id" # features/step_definitions/web_steps.rb:203
When I fill in "campaign_name" with "Bobs Marketing Blitz" # features/step_definitions/web_steps.rb:174
When I fill in "campaign_advertiser_id" with "adv" # features/step_definitions/web_steps.rb:174
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "Advertiser 0" within "li.ui-menu-item" # features/step_definitions/web_steps.rb:256
Unable to find css "li.ui-menu-item" (Capybara::ElementNotFound)
(eval):2:in `find'
./features/step_definitions/web_steps.rb:153:in `with_scope'
./features/step_definitions/web_steps.rb:257:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
features/mp_campaign.feature:180:in `And I should see "Advertiser 0" within "li.ui-menu-item"'
And I select "Advertiser 0" from the autocomplete on "#campaign_advertiser_id" # features/step_definitions/web_steps.rb:416
And I fill in "campaign_start_date" with "2010-09-01" # features/step_definitions/web_steps.rb:174
And I fill in "campaign_end_date" with "2010-09-30" # features/step_definitions/web_steps.rb:174
And I press "Continue" # features/step_definitions/web_steps.rb:164
Then the "campaign_order_name" field should contain "Agency0-Advertiser0-BobsMarketingBlitz-2010-09" # features/step_definitions/web_steps.rb:337
And I fill in "campaign_order_name" with "My_Special_Order_Name" # features/step_definitions/web_steps.rb:174
Then I check "Unknown" # features/step_definitions/web_steps.rb:208
Then I check "160x600 Standard" # features/step_definitions/web_steps.rb:208
And I press "Continue" # features/step_definitions/web_steps.rb:164
And I follow "Setup" # features/step_definitions/web_steps.rb:169
Then the "campaign_order_name" field should contain "My_Special_Order_Name" # features/step_definitions/web_steps.rb:337
@selenium
Scenario: As a Media Planner, I edit an existing campaign, clearing the order name and the order name gets set to the default # features/mp_campaign.feature:195
When I go to the home page # features/step_definitions/web_steps.rb:161
When I follow "Campaigns" # features/step_definitions/web_steps.rb:169
When I follow "New" # features/step_definitions/web_steps.rb:169
When I select "Display" from "campaign_department_id" # features/step_definitions/web_steps.rb:203
When I fill in "campaign_name" with "Bobs Marketing Blitz" # features/step_definitions/web_steps.rb:174
When I fill in "campaign_advertiser_id" with "adv" # features/step_definitions/web_steps.rb:174
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "Advertiser 0" within "li.ui-menu-item" # features/step_definitions/web_steps.rb:256
Unable to find css "li.ui-menu-item" (Capybara::ElementNotFound)
(eval):2:in `find'
./features/step_definitions/web_steps.rb:153:in `with_scope'
./features/step_definitions/web_steps.rb:257:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
features/mp_campaign.feature:203:in `And I should see "Advertiser 0" within "li.ui-menu-item"'
And I select "Advertiser 0" from the autocomplete on "#campaign_advertiser_id" # features/step_definitions/web_steps.rb:416
And I fill in "campaign_start_date" with "2010-09-01" # features/step_definitions/web_steps.rb:174
And I fill in "campaign_end_date" with "2010-09-30" # features/step_definitions/web_steps.rb:174
And I press "Continue" # features/step_definitions/web_steps.rb:164
Then the "campaign_order_name" field should contain "Agency0-Advertiser0-BobsMarketingBlitz-2010-09" # features/step_definitions/web_steps.rb:337
And I fill in "campaign_order_name" with "My_Special_Order_Name" # features/step_definitions/web_steps.rb:174
Then I check "Unknown" # features/step_definitions/web_steps.rb:208
Then I check "160x600 Standard" # features/step_definitions/web_steps.rb:208
And I press "Continue" # features/step_definitions/web_steps.rb:164
And I follow "Setup" # features/step_definitions/web_steps.rb:169
Then the "campaign_order_name" field should contain "My_Special_Order_Name" # features/step_definitions/web_steps.rb:337
And I fill in "campaign_order_name" with "" # features/step_definitions/web_steps.rb:174
And I press "Continue" # features/step_definitions/web_steps.rb:164
And I follow "Setup" # features/step_definitions/web_steps.rb:169
Then the "campaign_order_name" field should contain "Agency0-Advertiser0-BobsMarketingBlitz-2010-09" # features/step_definitions/web_steps.rb:337
@selenium
Scenario: As a Media Planner, I edit an existing campaign with an existing order name, update the order name and my new order name should be saved # features/mp_campaign.feature:222
When I go to the home page # features/step_definitions/web_steps.rb:161
When I follow "Campaigns" # features/step_definitions/web_steps.rb:169
When I follow "New" # features/step_definitions/web_steps.rb:169
When I select "Display" from "campaign_department_id" # features/step_definitions/web_steps.rb:203
When I fill in "campaign_name" with "Bobs Marketing Blitz" # features/step_definitions/web_steps.rb:174
When I fill in "campaign_advertiser_id" with "adv" # features/step_definitions/web_steps.rb:174
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "Advertiser 0" within "li.ui-menu-item" # features/step_definitions/web_steps.rb:256
Unable to find css "li.ui-menu-item" (Capybara::ElementNotFound)
(eval):2:in `find'
./features/step_definitions/web_steps.rb:153:in `with_scope'
./features/step_definitions/web_steps.rb:257:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
features/mp_campaign.feature:230:in `And I should see "Advertiser 0" within "li.ui-menu-item"'
And I select "Advertiser 0" from the autocomplete on "#campaign_advertiser_id" # features/step_definitions/web_steps.rb:416
And I fill in "campaign_start_date" with "2010-09-01" # features/step_definitions/web_steps.rb:174
And I fill in "campaign_end_date" with "2010-09-30" # features/step_definitions/web_steps.rb:174
And I press "Continue" # features/step_definitions/web_steps.rb:164
Then the "campaign_order_name" field should contain "Agency0-Advertiser0-BobsMarketingBlitz-2010-09" # features/step_definitions/web_steps.rb:337
And I fill in "campaign_order_name" with "My_Special_Order_Name" # features/step_definitions/web_steps.rb:174
Then I check "Unknown" # features/step_definitions/web_steps.rb:208
Then I check "160x600 Standard" # features/step_definitions/web_steps.rb:208
And I press "Continue" # features/step_definitions/web_steps.rb:164
And I follow "Setup" # features/step_definitions/web_steps.rb:169
Then the "campaign_order_name" field should contain "My_Special_Order_Name" # features/step_definitions/web_steps.rb:337
And I fill in "campaign_order_name" with "My_NEW_Special_Order_Name" # features/step_definitions/web_steps.rb:174
And I press "Continue" # features/step_definitions/web_steps.rb:164
And I follow "Setup" # features/step_definitions/web_steps.rb:169
Then the "campaign_order_name" field should contain "My_NEW_Special_Order_Name" # features/step_definitions/web_steps.rb:337
@selenium
Scenario: As a Media Planner, I can import a list of sites to a campaign # features/mp_campaign.feature:249
When I go to the home page # features/step_definitions/web_steps.rb:161
When I follow "Campaigns" # features/step_definitions/web_steps.rb:169
When I follow "New" # features/step_definitions/web_steps.rb:169
When I select "Display" from "campaign_department_id" # features/step_definitions/web_steps.rb:203
When I fill in "campaign_name" with "Bobs Marketing Blitz" # features/step_definitions/web_steps.rb:174
When I fill in "campaign_advertiser_id" with "adv" # features/step_definitions/web_steps.rb:174
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "Advertiser 0" within "li.ui-menu-item" # features/step_definitions/web_steps.rb:256
Unable to find css "li.ui-menu-item" (Capybara::ElementNotFound)
(eval):2:in `find'
./features/step_definitions/web_steps.rb:153:in `with_scope'
./features/step_definitions/web_steps.rb:257:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
features/mp_campaign.feature:257:in `And I should see "Advertiser 0" within "li.ui-menu-item"'
When I select "Advertiser 0" from the autocomplete on "#campaign_advertiser_id" # features/step_definitions/web_steps.rb:416
And I fill in "campaign_start_date" with "2010-09-01" # features/step_definitions/web_steps.rb:174
And I fill in "campaign_end_date" with "2010-09-30" # features/step_definitions/web_steps.rb:174
And I press "Continue" # features/step_definitions/web_steps.rb:164
Then I should see "Bobs Marketing Blitz" # features/step_definitions/web_steps.rb:256
Then I should see "premium display campaign" # features/step_definitions/web_steps.rb:256
And I press "Continue" # features/step_definitions/web_steps.rb:164
Feature: Media Planner Campaign Ads Offers
Media Planner must be able to manage campaign ads
Background: # features/mp_campaign_ads.feature:4
Given loaded fixtures # features/step_definitions/object_steps.rb:222
Given reportable data exists # features/step_definitions/object_steps.rb:95
And I am logged in as media_planner user bob who belongs to the Display department # features/step_definitions/user_steps.rb:59
@selenium
Scenario: As the media planner when I generate ads for a campaign based on the dimensions, I want to be able to specify the rate for each ad individually # features/mp_campaign_ads.feature:11
When I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
When I follow "Ads" within "#context_menu" # features/step_definitions/web_steps.rb:169
When I follow "Generate Ads" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Feature: Media Planner Campaign Comments
Media Planner must be able to view and create campaign comments as well as delete his own campaign comments.
Background: # features/mp_campaign_comments.feature:4
Given loaded fixtures # features/step_definitions/object_steps.rb:222
Given reportable data exists # features/step_definitions/object_steps.rb:95
And I am logged in as media_planner user bob who belongs to the Display department # features/step_definitions/user_steps.rb:59
@selenium
Scenario: As a Media Planner, I can view comments for a campaign # features/mp_campaign_comments.feature:11
And I have these campaigns with these comments: # features/step_definitions/campaign_steps.rb:51
| Campaign Name | Comment | Commenter Full Name |
| Campaign 0 | The first comment. | John Smith |
| Campaign 0 | The second comment. | Jane Doe |
| Campaign 0 | The third comment. | Bill Johnson |
When I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
And I follow "Comments" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Then I should see "Comments" within "#drawerPanedrawerComments3" # features/step_definitions/web_steps.rb:256
And I should see "Add Your Comment" within "#drawerPanedrawerComments3" # features/step_definitions/web_steps.rb:256
And I should see "John Smith" within "#campaign_comment_1 h4" # features/step_definitions/web_steps.rb:256
And I should see "The first comment." within "#campaign_comment_1 .body" # features/step_definitions/web_steps.rb:256
And I should see "Jane Doe" within "#campaign_comment_2 h4" # features/step_definitions/web_steps.rb:256
And I should see "The second comment." within "#campaign_comment_2 .body" # features/step_definitions/web_steps.rb:256
And I should see "Bill Johnson" within "#campaign_comment_3 h4" # features/step_definitions/web_steps.rb:256
And I should see "The third comment." within "#campaign_comment_3 .body" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a Media Planner, I can add a comment to a campaign # features/mp_campaign_comments.feature:30
When I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
And I follow "Comments" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Then I should see "Comments" within "#drawerPanedrawerComments" # features/step_definitions/web_steps.rb:256
And I should see "There are no comments yet for this campaign." within "#drawerPanedrawerComments" # features/step_definitions/web_steps.rb:256
And I should see "Add Your Comment" within "#drawerPanedrawerComments" # features/step_definitions/web_steps.rb:256
And I fill in "campaign_comment_comment" with "This is my amazing comment. I know you are impressed." within "#campaign_comment_form" # features/step_definitions/web_steps.rb:174
When I press "Post Comment" within "#drawerPanedrawerComments" # features/step_definitions/web_steps.rb:164
Then I should see "Campaign 0" # features/step_definitions/web_steps.rb:256
When I follow "Comments" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Then I should see "Comments" within "#drawerPanedrawerComments1" # features/step_definitions/web_steps.rb:256
And I should see "Add Your Comment" within "#drawerPanedrawerComments1" # features/step_definitions/web_steps.rb:256
And I should see "bob Foo" within "#campaign_comment_1 h4" # features/step_definitions/web_steps.rb:256
And I should see "This is my amazing comment. I know you are impressed." within "#campaign_comment_1 .body" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a Media Planner, I can delete my own campaign comments but no one else's # features/mp_campaign_comments.feature:47
And I have these campaigns with these comments: # features/step_definitions/campaign_steps.rb:51
| Campaign Name | Comment | Commenter Full Name |
| Campaign 0 | The first comment. | John Smith |
| Campaign 0 | The second comment. | Jane Doe |
When I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
And I follow "Comments" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Then I should see "Comments" within "#drawerPanedrawerComments2" # features/step_definitions/web_steps.rb:256
And I should see "Add Your Comment" within "#drawerPanedrawerComments2" # features/step_definitions/web_steps.rb:256
And I should see "John Smith" within "#campaign_comment_1 h4" # features/step_definitions/web_steps.rb:256
And I should not see a link for "Delete comment" within "#campaign_comment_1" # features/step_definitions/web_steps.rb:246
And I should see "The first comment." within "#campaign_comment_1 .body" # features/step_definitions/web_steps.rb:256
And I should see "Jane Doe" within "#campaign_comment_2 h4" # features/step_definitions/web_steps.rb:256
And I should not see a link for "Delete comment" within "#campaign_comment_2" # features/step_definitions/web_steps.rb:246
And I should see "The second comment." within "#campaign_comment_2 .body" # features/step_definitions/web_steps.rb:256
When I fill in "campaign_comment_comment" with "This is my amazing comment. I know you are impressed." within "#campaign_comment_form" # features/step_definitions/web_steps.rb:174
And I press "Post Comment" within "#drawerPanedrawerComments2" # features/step_definitions/web_steps.rb:164
Then I should see "Campaign 0" # features/step_definitions/web_steps.rb:256
When I follow "Comments" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Then I should see "bob Foo" within "#campaign_comment_3 h4" # features/step_definitions/web_steps.rb:256
And I should see a link for "Delete comment" within "#campaign_comment_3" # features/step_definitions/web_steps.rb:237
And I should see "This is my amazing comment. I know you are impressed." within "#campaign_comment_3 .body" # features/step_definitions/web_steps.rb:256
When I confirm a js popup on the next step # features/step_definitions/web_steps.rb:445
And I follow "Delete comment" within "#campaign_comment_3" # features/step_definitions/web_steps.rb:169
Then I should see "Comments" within "#drawerPanedrawerComments2" # features/step_definitions/web_steps.rb:256
When I follow "Comments" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Then I should see "John Smith" within "#campaign_comment_1 h4" # features/step_definitions/web_steps.rb:256
And I should not see a link for "Delete comment" within "#campaign_comment_1" # features/step_definitions/web_steps.rb:246
And I should see "The first comment." within "#campaign_comment_1 .body" # features/step_definitions/web_steps.rb:256
And I should see "Jane Doe" within "#campaign_comment_2 h4" # features/step_definitions/web_steps.rb:256
And I should not see a link for "Delete comment" within "#campaign_comment_2" # features/step_definitions/web_steps.rb:246
And I should see "The second comment." within "#campaign_comment_2 .body" # features/step_definitions/web_steps.rb:256
And I should not see the element "#campaign_comment_3" # features/step_definitions/web_steps.rb:475
@selenium
Scenario: As a Media Planner, I want to see the number of campaign comments in the link to drop the drawer down # features/mp_campaign_comments.feature:83
And I have these campaigns with these comments: # features/step_definitions/campaign_steps.rb:51
| Campaign Name | Comment | Commenter Full Name |
| Campaign 0 | The first comment. | John Smith |
| Campaign 0 | The second comment. | Jane Doe |
When I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
And I should see "Comments (2)" within "#contentNavLinks" # features/step_definitions/web_steps.rb:256
Feature: Media Planner View Campaign Dashboard
Media planners must be able to access the campaign dashboard
Background: # features/mp_campaign_dashboard.feature:4
Given loaded fixtures # features/step_definitions/object_steps.rb:222
And I am logged in as media_planner user bob who belongs to the Display department # features/step_definitions/user_steps.rb:59
@selenium
Scenario: As the user, I want to view a campaign dashboard. # features/mp_campaign_dashboard.feature:10
Given I have the campaign titled "Campaign 0" for the "Display" department # features/step_definitions/campaign_steps.rb:24
And I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I should see "Campaign 0" within "#mainTitle" # features/step_definitions/web_steps.rb:256
And I should see "Site Status" within ".bodytext" # features/step_definitions/web_steps.rb:256
And I should see the element ".site_status_graph" # features/step_definitions/web_steps.rb:465
And I should see the element "#active_site_performance_table" # features/step_definitions/web_steps.rb:465
@selenium
Scenario: As the user, when viewing the campaign dashboard, I want to see a link to the campaign sites page # features/mp_campaign_dashboard.feature:21
Given I have the campaign titled "Campaign 0" for the "Display" department # features/step_definitions/campaign_steps.rb:24
And I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I should see a link for "Sites" within "#context_menu" # features/step_definitions/web_steps.rb:237
@selenium
Scenario: As the user, when viewing the campaign dashboard, I want to view a summary of the campaign's core values # features/mp_campaign_dashboard.feature:29
Given I have the advertiser named "Advertiser 0" # features/step_definitions/advertiser_steps.rb:1
And I have the campaign titled "Campaign 0" for the "Display" department for the advertiser named "Advertiser 0" with the start date "August 1 2010" and end date "August 30 2010" # features/step_definitions/campaign_steps.rb:24
And I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I should see "Campaign 0" within "#mainTitle h1" # features/step_definitions/web_steps.rb:256
And I should see "premium display campaign" within "#mainTitle h1 span" # features/step_definitions/web_steps.rb:256
And I should see a link for "Advertiser 0" within "#core_details" # features/step_definitions/web_steps.rb:237
And I should see "08/01/2010 - 08/30/2010" within "#core_details" # features/step_definitions/web_steps.rb:256
And I should see "Inactive" within "#core_details" # features/step_definitions/web_steps.rb:256
And I should see a link for "0 ads" within "#core_details" # features/step_definitions/web_steps.rb:237
And I should see "0 zones generated" within "#core_details" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As the user, when viewing the campaign dashboard, I want to see a summary of all budget allocations # features/mp_campaign_dashboard.feature:44
Given loaded fixtures # features/step_definitions/object_steps.rb:222
undefined method `slug' for nil:NilClass (NoMethodError)
./app/models/product.rb:142:in `canonicalize_goal_type_slugs'
./app/models/product.rb:57:in `lookup!'
./app/models/product.rb:38:in `block in seed!'
./app/models/product.rb:38:in `each'
./app/models/product.rb:38:in `seed!'
./features/step_definitions/object_steps.rb:233:in `/^loaded fixtures$/'
features/mp_campaign_dashboard.feature:5:in `Given loaded fixtures'
Given I have the campaign titled "Campaign 0" for the "Display" department with the start date "September 1 2010" and end date "September 30 2010" # features/step_definitions/campaign_steps.rb:24
And I have the following budget allocations for the campaign titled "Campaign 0": # features/step_definitions/budget_allocation_steps.rb:1
| Start Date | End Date | Unit | Unit Revenue | Target Quantity | Income | Gender |
| September 1 2010 | September 30 2010 | impressions | 1.00 | 200000 | Low | Male |
| September 1 2010 | September 25 2010 | clicks | 2.00 | 50000 | High | Male |
And I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I should see "Budget Allocations" within "#budget_allocations h2" # features/step_definitions/web_steps.rb:256
And I should see a link for "Budget Allocation 0" within "#budget_allocations #budget_allocation_row_1" # features/step_definitions/web_steps.rb:237
And I should see "impressions" within "#budget_allocations #budget_allocation_row_1" # features/step_definitions/web_steps.rb:256
And I should see "$1.00" within "#budget_allocations #budget_allocation_row_1" # features/step_definitions/web_steps.rb:256
And I should see "200,000" within "#budget_allocations #budget_allocation_row_1" # features/step_definitions/web_steps.rb:256
And I should see the element ".bar_chart" within "#budget_allocations #budget_allocation_row_1" # features/step_definitions/web_steps.rb:465
And I should see a link for "Edit budget allocation" within "#budget_allocations #budget_allocation_row_1" # features/step_definitions/web_steps.rb:237
And I should see a link for "Budget Allocation 1" within "#budget_allocations #budget_allocation_row_2" # features/step_definitions/web_steps.rb:237
And I should see "clicks" within "#budget_allocations #budget_allocation_row_2" # features/step_definitions/web_steps.rb:256
And I should see "$2.00" within "#budget_allocations #budget_allocation_row_2" # features/step_definitions/web_steps.rb:256
And I should see "50,000" within "#budget_allocations #budget_allocation_row_2" # features/step_definitions/web_steps.rb:256
And I should see the element ".bar_chart" within "#budget_allocations #budget_allocation_row_2" # features/step_definitions/web_steps.rb:465
And I should see a link for "Edit budget allocation" within "#budget_allocations #budget_allocation_row_2" # features/step_definitions/web_steps.rb:237
And I should see "2 budget allocations, Total: $0.00 of $0.00" within "#budget_allocations tfoot tr" # features/step_definitions/web_steps.rb:256
And I should see the element ".bar_chart" within "#budget_allocations tfoot tr" # features/step_definitions/web_steps.rb:465
Feature: Media Planner Create Campaign Sites
Media Planner must be able to create Sites for a Campaign
Background: # features/mp_campaign_site.feature:4
Given loaded fixtures # features/step_definitions/object_steps.rb:222
Given reportable data exists # features/step_definitions/object_steps.rb:95
And I am logged in as media_planner user bob who belongs to the Display department # features/step_definitions/user_steps.rb:59
Scenario: As a Media Planner I can see the states of my sites # features/mp_campaign_site.feature:10
When I go to the home page # features/step_definitions/web_steps.rb:161
When I follow "Campaigns" # features/step_definitions/web_steps.rb:169
When I follow "Campaign 0" # features/step_definitions/web_steps.rb:169
Then I follow "Sites" within "#context_menu" # features/step_definitions/web_steps.rb:169
Then I should see "All Sites belonging to Campaign 0" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a Media Planner I can add a Site to a campaign # features/mp_campaign_site.feature:19
When I go to the home page # features/step_definitions/web_steps.rb:161
When I follow "Campaigns" # features/step_definitions/web_steps.rb:169
When I follow "New" # features/step_definitions/web_steps.rb:169
When I select "Display" from "campaign_department_id" # features/step_definitions/web_steps.rb:203
When I fill in "campaign_name" with "Bobs Marketing Blitz" # features/step_definitions/web_steps.rb:174
When I fill in "campaign_advertiser_id" with "adv" # features/step_definitions/web_steps.rb:174
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "Advertiser 0" within "li.ui-menu-item" # features/step_definitions/web_steps.rb:256
Unable to find css "li.ui-menu-item" (Capybara::ElementNotFound)
(eval):2:in `find'
./features/step_definitions/web_steps.rb:153:in `with_scope'
./features/step_definitions/web_steps.rb:257:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
features/mp_campaign_site.feature:27:in `And I should see "Advertiser 0" within "li.ui-menu-item"'
When I select "Advertiser 0" from the autocomplete on "#campaign_advertiser_id" # features/step_definitions/web_steps.rb:416
And I fill in "campaign_start_date" with "2010-01-01" # features/step_definitions/web_steps.rb:174
And I fill in "campaign_end_date" with "3010-01-01" # features/step_definitions/web_steps.rb:174
And I press "Continue" # features/step_definitions/web_steps.rb:164
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "Bobs Marketing Blitz" # features/step_definitions/web_steps.rb:256
When I follow "Sites" within "#context_menu" # features/step_definitions/web_steps.rb:169
And I should see a link for "Add Sites" # features/step_definitions/web_steps.rb:237
When I follow "Add Sites" # features/step_definitions/web_steps.rb:169
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "Search Sites" within "#cboxLoadedContent" # features/step_definitions/web_steps.rb:256
When I fill in "site_id" with "site" # features/step_definitions/web_steps.rb:174
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "Search Sites" within "#colorbox" # features/step_definitions/web_steps.rb:256
When I fill in "site_id" with "site" # features/step_definitions/web_steps.rb:174
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "Site 0" # features/step_definitions/web_steps.rb:256
And I should see "Site 1" # features/step_definitions/web_steps.rb:256
When I select "Site 0" from the autocomplete on "#site_id" # features/step_definitions/web_steps.rb:416
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "Site 0" within "#site_list" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a Media Planner I can create a new site for a campaign # features/mp_campaign_site.feature:52
When I go to the home page # features/step_definitions/web_steps.rb:161
When I follow "Campaigns" # features/step_definitions/web_steps.rb:169
When I follow "New" # features/step_definitions/web_steps.rb:169
When I select "Display" from "campaign_department_id" # features/step_definitions/web_steps.rb:203
When I fill in "campaign_name" with "Bobs Marketing Blitz" # features/step_definitions/web_steps.rb:174
When I fill in "campaign_advertiser_id" with "adv" # features/step_definitions/web_steps.rb:174
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "Advertiser 0" within "li.ui-menu-item" # features/step_definitions/web_steps.rb:256
Unable to find css "li.ui-menu-item" (Capybara::ElementNotFound)
(eval):2:in `find'
./features/step_definitions/web_steps.rb:153:in `with_scope'
./features/step_definitions/web_steps.rb:257:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
features/mp_campaign_site.feature:60:in `And I should see "Advertiser 0" within "li.ui-menu-item"'
When I select "Advertiser 0" from the autocomplete on "#campaign_advertiser_id" # features/step_definitions/web_steps.rb:416
And I fill in "campaign_start_date" with "2010-01-01" # features/step_definitions/web_steps.rb:174
And I fill in "campaign_end_date" with "3010-01-01" # features/step_definitions/web_steps.rb:174
And I press "Continue" # features/step_definitions/web_steps.rb:164
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "Bobs Marketing Blitz" # features/step_definitions/web_steps.rb:256
When I follow "Sites" within "#context_menu" # features/step_definitions/web_steps.rb:169
And I should see a link for "Add Sites" # features/step_definitions/web_steps.rb:237
When I follow "Add Sites" # features/step_definitions/web_steps.rb:169
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "Create a New Site" within "#cboxLoadedContent" # features/step_definitions/web_steps.rb:256
When I fill in "site_name" with "Site 6" # features/step_definitions/web_steps.rb:174
When I fill in "site_url" with "http://www.site6.com" # features/step_definitions/web_steps.rb:174
When I fill in "site_tag_names" with "site6" # features/step_definitions/web_steps.rb:174
When I fill in "site_publisher_id" with "pub" # features/step_definitions/web_steps.rb:174
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "Publisher 0" within "li.ui-menu-item" # features/step_definitions/web_steps.rb:256
When I select "Publisher 0" from the autocomplete on "#site_publisher_id" # features/step_definitions/web_steps.rb:416
When I fill in "site_contact_name" with "Bob Richards" # features/step_definitions/web_steps.rb:174
When I fill in "site_contact_email" with "[email protected]" # features/step_definitions/web_steps.rb:174
When I fill in "site_contact_phone" with "5121231234" # features/step_definitions/web_steps.rb:174
And I press "Create Site" # features/step_definitions/web_steps.rb:164
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "Site 6" within "#site_list" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a Media Planner I must enter a site name to create a site for a campaign # features/mp_campaign_site.feature:88
When I go to the home page # features/step_definitions/web_steps.rb:161
When I follow "Campaigns" # features/step_definitions/web_steps.rb:169
When I follow "New" # features/step_definitions/web_steps.rb:169
When I select "Display" from "campaign_department_id" # features/step_definitions/web_steps.rb:203
When I fill in "campaign_name" with "Bobs Marketing Blitz" # features/step_definitions/web_steps.rb:174
When I fill in "campaign_advertiser_id" with "adv" # features/step_definitions/web_steps.rb:174
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "Advertiser 0" within "li.ui-menu-item" # features/step_definitions/web_steps.rb:256
Unable to find css "li.ui-menu-item" (Capybara::ElementNotFound)
(eval):2:in `find'
./features/step_definitions/web_steps.rb:153:in `with_scope'
./features/step_definitions/web_steps.rb:257:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
features/mp_campaign_site.feature:96:in `And I should see "Advertiser 0" within "li.ui-menu-item"'
When I select "Advertiser 0" from the autocomplete on "#campaign_advertiser_id" # features/step_definitions/web_steps.rb:416
And I fill in "campaign_start_date" with "2010-01-01" # features/step_definitions/web_steps.rb:174
And I fill in "campaign_end_date" with "3010-01-01" # features/step_definitions/web_steps.rb:174
And I press "Continue" # features/step_definitions/web_steps.rb:164
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "Bobs Marketing Blitz" # features/step_definitions/web_steps.rb:256
When I follow "Sites" within "#context_menu" # features/step_definitions/web_steps.rb:169
And I should see a link for "Add Sites" # features/step_definitions/web_steps.rb:237
When I follow "Add Sites" # features/step_definitions/web_steps.rb:169
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "Create a New Site" within "#cboxLoadedContent" # features/step_definitions/web_steps.rb:256
When I fill in "site_name" with "" # features/step_definitions/web_steps.rb:174
When I fill in "site_url" with "http://www.site3.com" # features/step_definitions/web_steps.rb:174
When I fill in "site_tag_names" with "site3" # features/step_definitions/web_steps.rb:174
When I fill in "site_publisher_id" with "pub" # features/step_definitions/web_steps.rb:174
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "Publisher 0" within "li.ui-menu-item" # features/step_definitions/web_steps.rb:256
When I select "Publisher 0" from the autocomplete on "#site_publisher_id" # features/step_definitions/web_steps.rb:416
When I fill in "site_contact_name" with "Bob Richards" # features/step_definitions/web_steps.rb:174
When I fill in "site_contact_email" with "[email protected]" # features/step_definitions/web_steps.rb:174
When I fill in "site_contact_phone" with "5121231234" # features/step_definitions/web_steps.rb:174
And I press "Create Site" # features/step_definitions/web_steps.rb:164
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "can't be blank" within "#site_name_input" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a Media Planner I must enter a publisher id to create a site for a campaign # features/mp_campaign_site.feature:124
When I go to the home page # features/step_definitions/web_steps.rb:161
When I follow "Campaigns" # features/step_definitions/web_steps.rb:169
When I follow "New" # features/step_definitions/web_steps.rb:169
When I select "Display" from "campaign_department_id" # features/step_definitions/web_steps.rb:203
When I fill in "campaign_name" with "Bobs Marketing Blitz" # features/step_definitions/web_steps.rb:174
When I fill in "campaign_advertiser_id" with "adv" # features/step_definitions/web_steps.rb:174
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "Advertiser 0" within "li.ui-menu-item" # features/step_definitions/web_steps.rb:256
Unable to find css "li.ui-menu-item" (Capybara::ElementNotFound)
(eval):2:in `find'
./features/step_definitions/web_steps.rb:153:in `with_scope'
./features/step_definitions/web_steps.rb:257:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
features/mp_campaign_site.feature:132:in `And I should see "Advertiser 0" within "li.ui-menu-item"'
When I select "Advertiser 0" from the autocomplete on "#campaign_advertiser_id" # features/step_definitions/web_steps.rb:416
And I fill in "campaign_start_date" with "2010-01-01" # features/step_definitions/web_steps.rb:174
And I fill in "campaign_end_date" with "3010-01-01" # features/step_definitions/web_steps.rb:174
And I press "Continue" # features/step_definitions/web_steps.rb:164
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "Bobs Marketing Blitz" # features/step_definitions/web_steps.rb:256
When I follow "Sites" within "#context_menu" # features/step_definitions/web_steps.rb:169
And I should see a link for "Add Sites" # features/step_definitions/web_steps.rb:237
When I follow "Add Sites" # features/step_definitions/web_steps.rb:169
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "Create a New Site" within "#cboxLoadedContent" # features/step_definitions/web_steps.rb:256
When I fill in "site_name" with "Site 3" # features/step_definitions/web_steps.rb:174
When I fill in "site_url" with "http://www.site3.com" # features/step_definitions/web_steps.rb:174
When I fill in "site_tag_names" with "site3" # features/step_definitions/web_steps.rb:174
And I press "Create Site" # features/step_definitions/web_steps.rb:164
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "can't be blank" within "#site_publisher_id_input" # features/step_definitions/web_steps.rb:256
# FIXME - contact info not copied - probably due to contact object refactor
@selenium
Scenario: As a Media Planner when I enter custom contact data before I select a publisher the publisher contact data will not be copied to the site contact data # features/mp_campaign_site.feature:190
When I go to the home page # features/step_definitions/web_steps.rb:161
When I follow "Campaigns" # features/step_definitions/web_steps.rb:169
When I follow "New" # features/step_definitions/web_steps.rb:169
When I select "Display" from "campaign_department_id" # features/step_definitions/web_steps.rb:203
When I fill in "campaign_name" with "Bobs Marketing Blitz" # features/step_definitions/web_steps.rb:174
When I fill in "campaign_advertiser_id" with "adv" # features/step_definitions/web_steps.rb:174
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "Advertiser 0" within "li.ui-menu-item" # features/step_definitions/web_steps.rb:256
Unable to find css "li.ui-menu-item" (Capybara::ElementNotFound)
(eval):2:in `find'
./features/step_definitions/web_steps.rb:153:in `with_scope'
./features/step_definitions/web_steps.rb:257:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
features/mp_campaign_site.feature:198:in `And I should see "Advertiser 0" within "li.ui-menu-item"'
When I select "Advertiser 0" from the autocomplete on "#campaign_advertiser_id" # features/step_definitions/web_steps.rb:416
And I fill in "campaign_start_date" with "2010-01-01" # features/step_definitions/web_steps.rb:174
And I fill in "campaign_end_date" with "3010-01-01" # features/step_definitions/web_steps.rb:174
And I press "Continue" # features/step_definitions/web_steps.rb:164
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "Bobs Marketing Blitz" # features/step_definitions/web_steps.rb:256
When I follow "Sites" within "#context_menu" # features/step_definitions/web_steps.rb:169
And I should see a link for "Add Sites" # features/step_definitions/web_steps.rb:237
When I follow "Add Sites" # features/step_definitions/web_steps.rb:169
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "Create a New Site" within "#cboxLoadedContent" # features/step_definitions/web_steps.rb:256
When I fill in "site_name" with "Site 6" # features/step_definitions/web_steps.rb:174
When I fill in "site_url" with "http://www.site6.com" # features/step_definitions/web_steps.rb:174
When I fill in "site_tag_names" with "site6" # features/step_definitions/web_steps.rb:174
When I fill in "site_contact_name" with "Ricky Ricardo" # features/step_definitions/web_steps.rb:174
Then the "site_contact_name" field should contain "Ricky Ricardo" # features/step_definitions/web_steps.rb:337
When I fill in "site_contact_email" with "[email protected]" # features/step_definitions/web_steps.rb:174
When I fill in "site_contact_phone" with "512-123-1234" # features/step_definitions/web_steps.rb:174
When I fill in "site_publisher_id" with "pub" # features/step_definitions/web_steps.rb:174
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "Publisher 0" within "li.ui-menu-item" # features/step_definitions/web_steps.rb:256
When I select "Publisher 0" from the autocomplete on "#site_publisher_id" # features/step_definitions/web_steps.rb:416
And I press "Create Site" # features/step_definitions/web_steps.rb:164
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "Site 6" within "#site_list" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a Media Planner I can create a new publisher when i create a new site # features/mp_campaign_site.feature:231
When I go to the home page # features/step_definitions/web_steps.rb:161
When I follow "Campaigns" # features/step_definitions/web_steps.rb:169
When I follow "New" # features/step_definitions/web_steps.rb:169
When I select "Display" from "campaign_department_id" # features/step_definitions/web_steps.rb:203
When I fill in "campaign_name" with "Bobs Marketing Blitz" # features/step_definitions/web_steps.rb:174
When I fill in "campaign_advertiser_id" with "Adv" # features/step_definitions/web_steps.rb:174
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "Advertiser 0" within "li.ui-menu-item" # features/step_definitions/web_steps.rb:256
Unable to find css "li.ui-menu-item" (Capybara::ElementNotFound)
(eval):2:in `find'
./features/step_definitions/web_steps.rb:153:in `with_scope'
./features/step_definitions/web_steps.rb:257:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
features/mp_campaign_site.feature:239:in `And I should see "Advertiser 0" within "li.ui-menu-item"'
When I select "Advertiser 0" from the autocomplete on "#campaign_advertiser_id" # features/step_definitions/web_steps.rb:416
And I fill in "campaign_start_date" with "2010-01-01" # features/step_definitions/web_steps.rb:174
And I fill in "campaign_end_date" with "3010-01-01" # features/step_definitions/web_steps.rb:174
And I press "Continue" # features/step_definitions/web_steps.rb:164
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "Bobs Marketing Blitz" # features/step_definitions/web_steps.rb:256
When I follow "Sites" within "#context_menu" # features/step_definitions/web_steps.rb:169
And I should see a link for "Add Sites" # features/step_definitions/web_steps.rb:237
When I follow "Add Sites" # features/step_definitions/web_steps.rb:169
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "Create a New Site" within "#cboxLoadedContent" # features/step_definitions/web_steps.rb:256
When I fill in "site_name" with "Site 6" # features/step_definitions/web_steps.rb:174
When I fill in "site_url" with "http://www.site6.com" # features/step_definitions/web_steps.rb:174
When I fill in "site_tag_names" with "site6" # features/step_definitions/web_steps.rb:174
When I fill in "site_publisher_id" with "New Publisher" # features/step_definitions/web_steps.rb:174
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "Create New" within "li.ui-menu-item" # features/step_definitions/web_steps.rb:256
When I select "Create New" from the autocomplete on "#site_publisher_id" # features/step_definitions/web_steps.rb:416
When I fill in "site_contact_name" with "Bob Richards" # features/step_definitions/web_steps.rb:174
When I fill in "site_contact_email" with "[email protected]" # features/step_definitions/web_steps.rb:174
When I fill in "site_contact_phone" with "5121231234" # features/step_definitions/web_steps.rb:174
And I press "Create Site" # features/step_definitions/web_steps.rb:164
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "Site 6" within "#site_list" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a Media Planner I can remove a Site from a campaign # features/mp_campaign_site.feature:268
When I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I follow "Sites" within "#context_menu" # features/step_definitions/web_steps.rb:169
When I check "site_1_select" # features/step_definitions/web_steps.rb:208
Then I mouse over the sites table more actions link # features/step_definitions/web_steps.rb:424
And I follow "Delete" # features/step_definitions/web_steps.rb:169
Then I should not see "Site 0" # features/step_definitions/web_steps.rb:275
Feature: Media Planner Manage Campaign Site Allocations
Media Planner must be able to manage Campaign Site Allocations
Background: # features/mp_campaign_site_allocations.feature:4
Given loaded fixtures # features/step_definitions/object_steps.rb:222
Given reportable data exists # features/step_definitions/object_steps.rb:95
And I am logged in as media_planner user bob who belongs to the Display department # features/step_definitions/user_steps.rb:59
When I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I follow "Sites" within "#context_menu" # features/step_definitions/web_steps.rb:169
@selenium
Scenario: As a Media Planner, I can create site allocations # features/mp_campaign_site_allocations.feature:13
And I add an allocation to "Site 0" # features/step_definitions/site_allocation_steps.rb:61
Then I follow "Sites" within "#context_menu" # features/step_definitions/web_steps.rb:169
And I should see "1" within "#site_0_offers" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a Media Planner i can delete site allocations that do not belong to an offer # features/mp_campaign_site_allocations.feature:20
And I add an allocation to "Site 0" # features/step_definitions/site_allocation_steps.rb:61
Then I follow "Sites" within "#context_menu" # features/step_definitions/web_steps.rb:169
And I should see "1" within "#site_0_offers" # features/step_definitions/web_steps.rb:256
Then I follow "detail_row_1_toggle" # features/step_definitions/web_steps.rb:169
When I confirm a js popup on the next step # features/step_definitions/web_steps.rb:445
Then I follow "delete_site_allocation_1" # features/step_definitions/web_steps.rb:169
Then I follow "Sites" within "#context_menu" # features/step_definitions/web_steps.rb:169
And I should see "0" within "#site_0_offers" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a Media Planner, I must specify a start date to create site allocations # features/mp_campaign_site_allocations.feature:32
When I follow "Add an Allocation to Site 0" # features/step_definitions/web_steps.rb:169
Then I should see "New Site Allocation" within "#mainTitle" # features/step_definitions/web_steps.rb:256
And I fill in "site_allocation_start_date" with "" # features/step_definitions/web_steps.rb:174
And I press "Create Site Allocation" # features/step_definitions/web_steps.rb:164
Then I should see "can't be blank" within "#site_allocation_start_date_input" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a Media Planner, I must specify an end date to create site allocations # features/mp_campaign_site_allocations.feature:41
When I follow "Add an Allocation to Site 0" # features/step_definitions/web_steps.rb:169
Then I should see "New Site Allocation" within "#mainTitle" # features/step_definitions/web_steps.rb:256
And I fill in "site_allocation_end_date" with "" # features/step_definitions/web_steps.rb:174
And I press "Create Site Allocation" # features/step_definitions/web_steps.rb:164
Then I should see "can't be blank" within "#site_allocation_end_date_input" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a Media Planner, I must specify a total delivery to create site allocations # features/mp_campaign_site_allocations.feature:50
When I follow "Add an Allocation to Site 0" # features/step_definitions/web_steps.rb:169
Then I should see "New Site Allocation" within "#mainTitle" # features/step_definitions/web_steps.rb:256
And I fill in "site_allocation_total_delivery" with "" # features/step_definitions/web_steps.rb:174
And I press "Create Site Allocation" # features/step_definitions/web_steps.rb:164
Then I should see "can't be blank" within "#site_allocation_total_delivery_input" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a Media Planner, I must specify a total delivery as a number to create site allocations # features/mp_campaign_site_allocations.feature:59
When I follow "Add an Allocation to Site 0" # features/step_definitions/web_steps.rb:169
Then I should see "New Site Allocation" within "#mainTitle" # features/step_definitions/web_steps.rb:256
And I fill in "site_allocation_total_delivery" with "eeniemeeniemineemo" # features/step_definitions/web_steps.rb:174
And I press "Create Site Allocation" # features/step_definitions/web_steps.rb:164
Then I should see "is not a number" within "#site_allocation_total_delivery_input" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a Media Planner, I want to be able to specify geo targets for site allocations # features/mp_campaign_site_allocations.feature:68
When I follow "Add an Allocation to Site 0" # features/step_definitions/web_steps.rb:169
Then I should see "New Site Allocation" within "#mainTitle" # features/step_definitions/web_steps.rb:256
And I fill in "site_allocation_name" with "NewSiteAllocation" # features/step_definitions/web_steps.rb:174
And I fill in "site_allocation_start_date" with "1-1-2011" # features/step_definitions/web_steps.rb:174
And I fill in "site_allocation_end_date" with "2-1-2011" # features/step_definitions/web_steps.rb:174
And I fill in "site_allocation_total_delivery" with "1000000" # features/step_definitions/web_steps.rb:174
And I fill in "site_allocation_delivery_notes" with "geotargeted" # features/step_definitions/web_steps.rb:174
And I select "impressions" from "site_allocation_rate_type" # features/step_definitions/web_steps.rb:203
And I fill in "site_allocation_default_rate" with "0.50" # features/step_definitions/web_steps.rb:174
And I check "Geo Target 0" # features/step_definitions/web_steps.rb:208
And I check "Geo Target 1" # features/step_definitions/web_steps.rb:208
And I check "Unknown" # features/step_definitions/web_steps.rb:208
And I press "Create Site Allocation" # features/step_definitions/web_steps.rb:164
Then I should see "Site Allocation was successfully created." # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a Media Planner, I want to be able to specify geo targets for site allocations # features/mp_campaign_site_allocations.feature:86
When I follow "Add an Allocation to Site 0" # features/step_definitions/web_steps.rb:169
Then I should see "New Site Allocation" within "#mainTitle" # features/step_definitions/web_steps.rb:256
And I fill in "site_allocation_name" with "NewSiteAllocation" # features/step_definitions/web_steps.rb:174
And I fill in "site_allocation_start_date" with "1-1-2011" # features/step_definitions/web_steps.rb:174
And I fill in "site_allocation_end_date" with "2-1-2011" # features/step_definitions/web_steps.rb:174
And I fill in "site_allocation_total_delivery" with "1000000" # features/step_definitions/web_steps.rb:174
And I fill in "site_allocation_delivery_notes" with "geotargeted" # features/step_definitions/web_steps.rb:174
And I select "impressions" from "site_allocation_rate_type" # features/step_definitions/web_steps.rb:203
And I fill in "site_allocation_default_rate" with "0.50" # features/step_definitions/web_steps.rb:174
And I check "Geo Target 0" # features/step_definitions/web_steps.rb:208
And I check "Geo Target 1" # features/step_definitions/web_steps.rb:208
And I check "Unknown" # features/step_definitions/web_steps.rb:208
And I press "Create Site Allocation" # features/step_definitions/web_steps.rb:164
Then I should see "Site Allocation was successfully created." # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a Media Planner, I want to be able to remove geo targets from site allocations # features/mp_campaign_site_allocations.feature:105
When I follow "Add an Allocation to Site 0" # features/step_definitions/web_steps.rb:169
Then I should see "New Site Allocation" within "#mainTitle" # features/step_definitions/web_steps.rb:256
And I fill in "site_allocation_name" with "NewSiteAllocation" # features/step_definitions/web_steps.rb:174
And I fill in "site_allocation_start_date" with "1-1-2011" # features/step_definitions/web_steps.rb:174
And I fill in "site_allocation_end_date" with "2-1-2011" # features/step_definitions/web_steps.rb:174
And I fill in "site_allocation_total_delivery" with "1000000" # features/step_definitions/web_steps.rb:174
And I fill in "site_allocation_delivery_notes" with "geotargeted" # features/step_definitions/web_steps.rb:174
And I select "impressions" from "site_allocation_rate_type" # features/step_definitions/web_steps.rb:203
And I fill in "site_allocation_default_rate" with "0.50" # features/step_definitions/web_steps.rb:174
And I check "Geo Target 0" # features/step_definitions/web_steps.rb:208
And I check "Geo Target 1" # features/step_definitions/web_steps.rb:208
When I uncheck "Geo Target 0" # features/step_definitions/web_steps.rb:213
And I check "Unknown" # features/step_definitions/web_steps.rb:208
And I press "Create Site Allocation" # features/step_definitions/web_steps.rb:164
Then I should see "Site Allocation was successfully created." # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a Media Planner, I want to be able to select one or more site allocations to pause. # features/mp_campaign_site_allocations.feature:125
And I have these campaigns with these site allocations: # features/step_definitions/site_allocation_steps.rb:1
[1]
[1]
| Department | Campaign Name | Site Name | Number of Zones | Number of Flights | Start Date | End Date | Active |
| Display | Campaign 0 | Site 0 | 2 | 1 | 20100801 | 20100901 | 1 |
| Display | Campaign 0 | Site 1 | 2 | 1 | 20100901 | 20101001 | 1 |
And "Campaign 0" with "accepted" offer # features/step_definitions/campaign_steps.rb:66
Then I follow "Offers" within "#context_menu" # features/step_definitions/web_steps.rb:169
And I check "publisher_0_select" # features/step_definitions/web_steps.rb:208
Then I mouse over the offers table more actions link # features/step_definitions/web_steps.rb:428
And I confirm a js popup on the next step # features/step_definitions/web_steps.rb:445
And I follow "Pause Sites" # features/step_definitions/web_steps.rb:169
Then wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "2 flights paused." # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a Media Planner, I want to be able to select one or more site allocations which are paused, and un-pause them. # features/mp_campaign_site_allocations.feature:141
And I have these campaigns with these site allocations: # features/step_definitions/site_allocation_steps.rb:1
[1]
[1]
| Department | Campaign Name | Site Name | Number of Zones | Number of Flights | Start Date | End Date | Active |
| Display | Campaign 0 | Site 0 | 2 | 1 | 20100801 | 20100901 | 1 |
| Display | Campaign 0 | Site 1 | 2 | 1 | 20100901 | 20101001 | 1 |
And "Campaign 0" with "accepted" offer # features/step_definitions/campaign_steps.rb:66
Then I follow "Offers" within "#context_menu" # features/step_definitions/web_steps.rb:169
And I check "publisher_0_select" # features/step_definitions/web_steps.rb:208
Then I mouse over the offers table more actions link # features/step_definitions/web_steps.rb:428
And I confirm a js popup on the next step # features/step_definitions/web_steps.rb:445
And I follow "Pause Sites" # features/step_definitions/web_steps.rb:169
Then wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "2 flights paused." # features/step_definitions/web_steps.rb:256
Then I follow "Offers" within "#context_menu" # features/step_definitions/web_steps.rb:169
And I check "publisher_0_select" # features/step_definitions/web_steps.rb:208
Then I mouse over the offers table more actions link # features/step_definitions/web_steps.rb:428
And I confirm a js popup on the next step # features/step_definitions/web_steps.rb:445
And I follow "Unpause Sites" # features/step_definitions/web_steps.rb:169
Then wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "2 flights unpaused." # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a Media Planner, I want to be able to select one or more site allocations which are paused, and un-pause them. # features/mp_campaign_site_allocations.feature:164
And I have these campaigns with these site allocations: # features/step_definitions/site_allocation_steps.rb:1
[1]
[1]
[1]
| Department | Campaign Name | Site Name | Number of Zones | Number of Flights | Start Date | End Date | Active |
| Display | Campaign 0 | Site 0 | 2 | 1 | 20100801 | 20100901 | 1 |
| Display | Campaign 0 | Site 1 | 2 | 1 | 20100901 | 20100915 | 1 |
| Display | Campaign 0 | Site 3 | 2 | 1 | 20100916 | 20101001 | 1 |
And "Campaign 0" with "accepted" offer # features/step_definitions/campaign_steps.rb:66
Then wait for the page to load # features/step_definitions/web_steps.rb:455
Feature: Media Planner Send Campaign Site Offers
Media Buyer must be able to send campaign site offers to publishers
Background: # features/mp_campaign_site_offers.feature:4
Given loaded fixtures # features/step_definitions/object_steps.rb:222
Given reportable data exists # features/step_definitions/object_steps.rb:95
And I am logged in as media_planner user bob who belongs to the Display department # features/step_definitions/user_steps.rb:59
@selenium
Scenario: As the media planner, I wish to preview the email which will be sent to publishers with demo data inserted. # features/mp_campaign_site_offers.feature:11
And I have these campaigns with these site allocations: # features/step_definitions/site_allocation_steps.rb:1
[1]
[1]
| Department | Campaign Name | Site Name | Number of Zones | Number of Flights | Start Date | End Date | Active |
| Display | Campaign 0 | Site 0 | 2 | 1 | 20100801 | 20100901 | 1 |
| Display | Campaign 0 | Site 1 | 2 | 1 | 20100901 | 20101001 | 1 |
When I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I follow "Sites" within "#context_menu" # features/step_definitions/web_steps.rb:169
When I check "site_0_select" # features/step_definitions/web_steps.rb:208
When I check "site_1_select" # features/step_definitions/web_steps.rb:208
And I follow "Send Offer" # features/step_definitions/web_steps.rb:169
Then I should see "I just received a new online banner campaign featuring 2010_09_15. I think it would work really well on your site, Site 0, and as well as Site 1! I've gone ahead and listed the campaign specifics below for you. Please take a look --" # features/step_definitions/web_steps.rb:256
expected there to be content "I just received a new online banner campaign featuring 2010_09_15. I think it would work really well on your site, Site 0, and as well as Site 1! I've gone ahead and listed the campaign specifics below for you. Please take a look --" in "Wiki Support My Account Log out\nCampaigns\nSites\nSales\nAdmin\nCampaigns\nAdvertisers\nAdvertiser 0\nCampaigns\nCampaign 0\nSites\nOffers\nTags\nDeployment\nDeliveries\nAds\nAdvertisers > Advertiser 0 > Campaigns > Campaign 0\nSend Offers\nSending to:\n Publisher Email Offer name Cancellation Grace Period\n Publisher 0\[email protected]\[email protected]\n24 hours\n48 hours\n72 hours\nOne Week\nTwo Weeks\nFour Weeks\nCustomize Offer Email\nHi {first_name}, I just received a new online banner campaign featuring {campaign}. I think it would work really well on your site, {site}! I've gone ahead and listed the campaign specifics below for you. Please take a look -- {offer} Let me know if you're interested! Thanks!\nCancel\nText Replacement\nCampaign {campaign} Site name(s) {site}\nFirst name {first_name} Site URL(s) {site_url}\nLast name {last_name} Site link(s) {site_link}\nCompany {company} Offer details {offer}\nPublisher 0\nPreview\nHi Contact,\nI just received a new online banner campaign featuring 2010_09_15. I think it would work really well on your site, ! I've gone ahead and listed the campaign specifics below for you. Please take a look --\nCampaign: 2010_09_15\nSite: Site 0\nFlight Name: Site Allocation 96\nFlight Dates: 2010-08-01 - 2010-09-01\nAds 160x600 Standard,300x250 Standard\nGeo Targets\nRate $0.50 cpm\nCancellation Policy: 1 business day\nImpression Allocation: 1,000,000 total impressions\n Site: Site 1\nFlight Name: Site Allocation 97\nFlight Dates: 2010-09-01 - 2010-10-01\nAds 160x600 Standard,300x250 Standard\nGeo Targets\nRate $0.50 cpm\nCancellation Policy: 1 business day\nImpression Allocation: 1,000,000 total impressions\n Let me know if you're interested!\nThanks!\n\nbob Foo\nRMM Online Advertising\[email protected]\nhttp://rmmonline.com" (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/web_steps.rb:259:in `block (2 levels) in <top (required)>'
./features/step_definitions/web_steps.rb:153:in `with_scope'
./features/step_definitions/web_steps.rb:257:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
features/mp_campaign_site_offers.feature:22:in `Then I should see "I just received a new online banner campaign featuring 2010_09_15. I think it would work really well on your site, Site 0, and as well as Site 1! I've gone ahead and listed the campaign specifics below for you. Please take a look --"'
And I should see "Campaign: 2010_09_15" # features/step_definitions/web_steps.rb:256
And I should see "Impression Allocation: 1,000,000 total impressions" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As the media planner, I should see an error message when I try to send an offer to a site without flights # features/mp_campaign_site_offers.feature:28
And I have these campaigns with these site allocations: # features/step_definitions/site_allocation_steps.rb:1
[1]
[1, 2]
| Department | Campaign Name | Site Name | Number of Zones | Number of Flights |
| Display | Campaign X | Site 0 | 3 | 2 |
| Display | Campaign X | Site 1 | 5 | 0 |
When I view the campaign titled "Campaign X" # features/step_definitions/campaign_steps.rb:1
Then I follow "Sites" within "#context_menu" # features/step_definitions/web_steps.rb:169
And I check "site_1_select" # features/step_definitions/web_steps.rb:208
And I follow "Send Offer" # features/step_definitions/web_steps.rb:169
Then I should see "No unoffered Site Allocations for those sites." # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As the media planner, I want to send only one email per publisher contact email address # features/mp_campaign_site_offers.feature:41
And I have these campaigns with these site allocations: # features/step_definitions/site_allocation_steps.rb:1
[1]
[1]
| Department | Campaign Name | Site Name | Number of Zones | Number of Flights | Start Date | End Date | Active |
| Display | Campaign 0 | Site 0 | 2 | 1 | 20100801 | 20100901 | 1 |
| Display | Campaign 0 | Site 1 | 2 | 1 | 20100901 | 20101001 | 1 |
When I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I follow "Sites" within "#context_menu" # features/step_definitions/web_steps.rb:169
When I check "site_0_select" # features/step_definitions/web_steps.rb:208
When I check "site_1_select" # features/step_definitions/web_steps.rb:208
And I follow "Send Offer" # features/step_definitions/web_steps.rb:169
Then I should see "Log out" # features/step_definitions/web_steps.rb:256
And there are no delayed jobs # features/step_definitions/delayed_job_steps.rb:1
And a clear email queue # features/step_definitions/email_steps.rb:43
And I press "Send" # features/step_definitions/web_steps.rb:164
Then all delayed jobs are run # features/step_definitions/delayed_job_steps.rb:24
Then 0 delayed job objects should exist # features/step_definitions/delayed_job_steps.rb:15
Then "[email protected]" should receive an email # features/step_definitions/email_steps.rb:51
When "[email protected]" opens the email # features/step_definitions/email_steps.rb:76
Then they should see "Hi Contact" in the email body # features/step_definitions/email_steps.rb:108
And they should see "I just received a new online banner campaign featuring 2010_09_15. I think it would work really well on your site, Site 0, as well as Site 1! I've gone ahead and listed the campaign specifics below for you. Please take a look --" in the email body # features/step_definitions/email_steps.rb:108
And they should see "2010_09_15" in the email body # features/step_definitions/email_steps.rb:108
And they should see "1,000,000 total impressions" in the email body # features/step_definitions/email_steps.rb:108
@selenium
Scenario: As the media planner, I want edit the default email which is sent to publishers # features/mp_campaign_site_offers.feature:70
And I have these campaigns with these site allocations: # features/step_definitions/site_allocation_steps.rb:1
[1]
[1]
| Department | Campaign Name | Site Name | Number of Zones | Number of Flights | Start Date | End Date | Active |
| Display | Campaign 0 | Site 0 | 2 | 1 | 20100801 | 20100901 | 1 |
| Display | Campaign 0 | Site 1 | 2 | 1 | 20100901 | 20101001 | 1 |
When I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I follow "Sites" within "#context_menu" # features/step_definitions/web_steps.rb:169
When I check "site_0_select" # features/step_definitions/web_steps.rb:208
When I check "site_1_select" # features/step_definitions/web_steps.rb:208
And I follow "Send Offer" # features/step_definitions/web_steps.rb:169
And I fill in "email" with "Hi {company},\n\nI have a hot new opportunity for your sites featuring {campaign}. I think it would work really well on your site, {site}! I've gone ahead and listed the campaign specifics below for you. Please take a look --\n\n{offer}\n\n Let me know if you're interested! \n\nThanks!" # features/step_definitions/web_steps.rb:174
And there are no delayed jobs # features/step_definitions/delayed_job_steps.rb:1
And a clear email queue # features/step_definitions/email_steps.rb:43
And I press "Send" # features/step_definitions/web_steps.rb:164
Then all delayed jobs are run # features/step_definitions/delayed_job_steps.rb:24
Then 0 delayed job objects should exist # features/step_definitions/delayed_job_steps.rb:15
Then "[email protected]" should receive an email # features/step_definitions/email_steps.rb:51
When "[email protected]" opens the email # features/step_definitions/email_steps.rb:76
Then they should see "Hi Publisher 0" in the email body # features/step_definitions/email_steps.rb:108
And they should see "I have a hot new opportunity for your sites featuring 2010_09_15. I think it would work really well on your site, Site 0, as well as Site 1! I've gone ahead and listed the campaign specifics below for you. Please take a look --" in the email body # features/step_definitions/email_steps.rb:108
And they should see "2010_09_15" in the email body # features/step_definitions/email_steps.rb:108
And they should see "1,000,000 total impressions" in the email body # features/step_definitions/email_steps.rb:108
@selenium
Scenario: As the media planner I want to select sites which have accepted our offer to send them the PO # features/mp_campaign_site_offers.feature:96
And I have these campaigns with these site allocations: # features/step_definitions/site_allocation_steps.rb:1
[1]
[1]
| Department | Campaign Name | Site Name | Number of Zones | Number of Flights | Start Date | End Date | Active |
| Display | Campaign 0 | Site 0 | 2 | 1 | 20100801 | 20100901 | 1 |
| Display | Campaign 0 | Site 1 | 2 | 1 | 20100901 | 20101001 | 1 |
And "Campaign 0" with "accepted" offer # features/step_definitions/campaign_steps.rb:66
Then I follow "Offers" within "#context_menu" # features/step_definitions/web_steps.rb:169
When I check "publisher_0_select" # features/step_definitions/web_steps.rb:208
And there are no delayed jobs # features/step_definitions/delayed_job_steps.rb:1
And a clear email queue # features/step_definitions/email_steps.rb:43
Then I follow "Send PO" # features/step_definitions/web_steps.rb:169
And I log out # features/step_definitions/user_steps.rb:67
Then all delayed jobs are run # features/step_definitions/delayed_job_steps.rb:24
Then 0 delayed job objects should exist # features/step_definitions/delayed_job_steps.rb:15
Then "[email protected]" should receive an email # features/step_definitions/email_steps.rb:51
When "[email protected]" opens the email # features/step_definitions/email_steps.rb:76
Then they should see "PO for Campaign : 2010_09_15" in the email subject # features/step_definitions/email_steps.rb:100
And they should see "The 2010_09_15 campaign we offered you has been approved" in the email body # features/step_definitions/email_steps.rb:108
And they should see "Your tags are available on that page." in the email body # features/step_definitions/email_steps.rb:108
@selenium
Scenario: As the media planner I want to select sites which have Ad Codes generated to send them the AD Code # features/mp_campaign_site_offers.feature:120
And I have these campaigns with these site allocations: # features/step_definitions/site_allocation_steps.rb:1
[1]
[1]
| Department | Campaign Name | Site Name | Number of Zones | Number of Flights | Start Date | End Date | Active |
| Display | Campaign 0 | Site 0 | 2 | 1 | 20100801 | 20100901 | 1 |
| Display | Campaign 0 | Site 1 | 2 | 1 | 20100901 | 20101001 | 1 |
And "Campaign 0" with "accepted" offer # features/step_definitions/campaign_steps.rb:66
Then I follow "Offers" within "#context_menu" # features/step_definitions/web_steps.rb:169
When I check "publisher_0_select" # features/step_definitions/web_steps.rb:208
And there are no delayed jobs # features/step_definitions/delayed_job_steps.rb:1
And a clear email queue # features/step_definitions/email_steps.rb:43
Then I follow "Send PO" # features/step_definitions/web_steps.rb:169
Then all delayed jobs are run # features/step_definitions/delayed_job_steps.rb:24
Then 0 delayed job objects should exist # features/step_definitions/delayed_job_steps.rb:15
Then I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I follow "Offers" within "#context_menu" # features/step_definitions/web_steps.rb:169
And I follow "View tags" # features/step_definitions/web_steps.rb:169
And wait for the page to load # features/step_definitions/web_steps.rb:455
And there are no delayed jobs # features/step_definitions/delayed_job_steps.rb:1
And a clear email queue # features/step_definitions/email_steps.rb:43
And I should see "Tags" within "#colorbox" # features/step_definitions/web_steps.rb:256
And I should see "Site 0" within "#colorbox" # features/step_definitions/web_steps.rb:256
And I should see "Site 1" within "#colorbox" # features/step_definitions/web_steps.rb:256
And I press "Release" # features/step_definitions/web_steps.rb:164
Then wait for the page to load # features/step_definitions/web_steps.rb:455
Then wait for the page to load # features/step_definitions/web_steps.rb:455
Then wait for the page to load # features/step_definitions/web_steps.rb:455
Then wait for the page to load # features/step_definitions/web_steps.rb:455
Then wait for the page to load # features/step_definitions/web_steps.rb:455
Then wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "Campaign 0" # features/step_definitions/web_steps.rb:256
Then all delayed jobs are run # features/step_definitions/delayed_job_steps.rb:24
Then 0 delayed job objects should exist # features/step_definitions/delayed_job_steps.rb:15
Then "[email protected]" should receive an email # features/step_definitions/email_steps.rb:51
When "[email protected]" opens the email # features/step_definitions/email_steps.rb:76
Then they should see "Tags Ready for Campaign : 2010_09_15" in the email subject # features/step_definitions/email_steps.rb:100
And they should see "The tags for the Campaign 0 campaign are ready." in the email body # features/step_definitions/email_steps.rb:108
# FIXME - write this stinking test
@selenium
Scenario: as the media planner I want to be able to view the PO that's sent to the publisher. # features/mp_campaign_site_offers.feature:174
And I have these campaigns with these site allocations: # features/step_definitions/site_allocation_steps.rb:1
[1]
[1]
| Department | Campaign Name | Site Name | Number of Zones | Number of Flights | Start Date | End Date | Active |
| Display | Campaign 0 | Site 0 | 2 | 1 | 20100801 | 20100901 | 1 |
| Display | Campaign 0 | Site 1 | 2 | 1 | 20100901 | 20101001 | 1 |
And "Campaign 0" with "accepted" offer # features/step_definitions/campaign_steps.rb:66
Then I follow "Offers" within "#context_menu" # features/step_definitions/web_steps.rb:169
When I check "publisher_0_select" # features/step_definitions/web_steps.rb:208
And there are no delayed jobs # features/step_definitions/delayed_job_steps.rb:1
And a clear email queue # features/step_definitions/email_steps.rb:43
Then I follow "Send PO" # features/step_definitions/web_steps.rb:169
Then all delayed jobs are run # features/step_definitions/delayed_job_steps.rb:24
Then 0 delayed job objects should exist # features/step_definitions/delayed_job_steps.rb:15
Then I follow "Campaigns" # features/step_definitions/web_steps.rb:169
Then I follow "Campaign 0" # features/step_definitions/web_steps.rb:169
Then I follow "Offers" within "#context_menu" # features/step_definitions/web_steps.rb:169
Then I follow "publisher_0_1_offer" # features/step_definitions/web_steps.rb:169
Then I should see "Purchase Order for Publisher 0" # features/step_definitions/web_steps.rb:256
And I should see "Site: Site 0" # features/step_definitions/web_steps.rb:256
And I should see "Site: Site 1" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As the media planner I want to be able to view the offer that's sent to the publisher # features/mp_campaign_site_offers.feature:197
And I have these campaigns with these site allocations: # features/step_definitions/site_allocation_steps.rb:1
[1]
[1]
| Department | Campaign Name | Site Name | Number of Zones | Number of Flights | Start Date | End Date | Active |
| Display | Campaign 0 | Site 0 | 2 | 1 | 20100801 | 20100901 | 1 |
| Display | Campaign 0 | Site 1 | 2 | 1 | 20100901 | 20101001 | 1 |
And "Campaign 0" with "accepted" offer # features/step_definitions/campaign_steps.rb:66
Then I follow "Offers" within "#context_menu" # features/step_definitions/web_steps.rb:169
Then I follow "publisher_0_1_offer" # features/step_definitions/web_steps.rb:169
Then I should see "Offer for Publisher 0" # features/step_definitions/web_steps.rb:256
And I should see "Site: Site 0" # features/step_definitions/web_steps.rb:256
And I should see "Site: Site 1" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As the media planner I want to be able to view the list of campaign sites grouped by their "Orphan / Survey / Known" statuses # features/mp_campaign_site_offers.feature:211
Then I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I follow "Sites" within "#context_menu" # features/step_definitions/web_steps.rb:169
Then I should see "Surveyed Sites" # features/step_definitions/web_steps.rb:256
And I should see "Site 0" # features/step_definitions/web_steps.rb:256
And I should see "Site 1" # features/step_definitions/web_steps.rb:256
Then I should see "Unsurveyed Sites" # features/step_definitions/web_steps.rb:256
And I should see "Site 2" # features/step_definitions/web_steps.rb:256
And I should see "Site 3" # features/step_definitions/web_steps.rb:256
Then I should see "Orphan Sites" # features/step_definitions/web_steps.rb:256
And I should see "Site 4" # features/step_definitions/web_steps.rb:256
# Accept button reloads current page
@selenium
Scenario: As the media planner I want the ability to create tags for a site *without* sending the PO. # features/mp_campaign_site_offers.feature:286
And I have these campaigns with these site allocations: # features/step_definitions/site_allocation_steps.rb:1
[1]
[1]
| Department | Campaign Name | Site Name | Number of Zones | Number of Flights | Start Date | End Date | Active |
| Display | Campaign 0 | Site 0 | 2 | 1 | 20100801 | 20100901 | 1 |
| Display | Campaign 0 | Site 1 | 2 | 1 | 20100901 | 20101001 | 1 |
And "Campaign 0" with "accepted" offer # features/step_definitions/campaign_steps.rb:66
Then I follow "Offers" within "#context_menu" # features/step_definitions/web_steps.rb:169
When I check "publisher_0_select" # features/step_definitions/web_steps.rb:208
When I mouse over the offers table more actions link # features/step_definitions/web_steps.rb:428
Then I follow "Send Tags only" # features/step_definitions/web_steps.rb:169
Then I should see "Tags sent." # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As the media planner, when I need to send tags to third party sites, I want a way to simply generate activated tags without a PO or tags being sent to the publisher. # features/mp_campaign_site_offers.feature:300
And I have these campaigns with these site allocations: # features/step_definitions/site_allocation_steps.rb:1
[1]
[1]
| Department | Campaign Name | Site Name | Number of Zones | Number of Flights | Start Date | End Date | Active |
| Display | Campaign 0 | Site 0 | 2 | 1 | 20100801 | 20100901 | 1 |
| Display | Campaign 0 | Site 1 | 2 | 1 | 20100901 | 20101001 | 1 |
And "Campaign 0" with "accepted" offer # features/step_definitions/campaign_steps.rb:66
Then I follow "Offers" within "#context_menu" # features/step_definitions/web_steps.rb:169
When I check "publisher_0_select" # features/step_definitions/web_steps.rb:208
When I mouse over the offers table more actions link # features/step_definitions/web_steps.rb:428
Then I follow "Generate Tags" # features/step_definitions/web_steps.rb:169
Then I should see "Tags generated." # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As the media planner, when I need to email tags to a third party, I want to generate active tags (without PO/tags being emailed to pub) and specify who I want the tags emailed to. # features/mp_campaign_site_offers.feature:314
And I have these campaigns with these site allocations: # features/step_definitions/site_allocation_steps.rb:1
[1]
[1]
| Department | Campaign Name | Site Name | Number of Zones | Number of Flights | Start Date | End Date | Active |
| Display | Campaign 0 | Site 0 | 2 | 1 | 20100801 | 20100901 | 1 |
| Display | Campaign 0 | Site 1 | 2 | 1 | 20100901 | 20101001 | 1 |
And "Campaign 0" with "accepted" offer # features/step_definitions/campaign_steps.rb:66
Then I follow "Offers" within "#context_menu" # features/step_definitions/web_steps.rb:169
And there are no delayed jobs # features/step_definitions/delayed_job_steps.rb:1
And a clear email queue # features/step_definitions/email_steps.rb:43
When I check "publisher_0_select" # features/step_definitions/web_steps.rb:208
When I mouse over the offers table more actions link # features/step_definitions/web_steps.rb:428
Then I follow "Generate Tags" # features/step_definitions/web_steps.rb:169
Then all delayed jobs are run # features/step_definitions/delayed_job_steps.rb:24
Then 0 delayed job objects should exist # features/step_definitions/delayed_job_steps.rb:15
Then I should see "Tags generated." # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As the media planner, I should see links for acceptance and rejection notes in the site rows # features/mp_campaign_site_offers.feature:333
And I have these publishers: # features/step_definitions/publisher_steps.rb:9
| Name |
| Publisher 0 |
| Publisher 1 |
And I have these offers: # features/step_definitions/offer_steps.rb:1
| Department | For Campaign | For Publisher | Status | Note |
| Display | Campaign 0 | Publisher 0 | accepted | This is my 'accepted' note. |
| Display | Campaign 0 | Publisher 1 | pending | |
| Display | Campaign 0 | Publisher 1 | rejected | This is my 'rejected' note. |
When I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I follow "Offers" within "#context_menu" # features/step_definitions/web_steps.rb:169
Then I should see "Publisher 0" within "#offers #offers_row_1" # features/step_definitions/web_steps.rb:256
And I should see a link for "View note" within "#offers #offers_row_1" # features/step_definitions/web_steps.rb:237
And I should see "Publisher 1" within "#offers #offers_row_2" # features/step_definitions/web_steps.rb:256
And I should not see a link for "View note" within "#offers #offers_row_2" # features/step_definitions/web_steps.rb:246
And I should see "Publisher 1" within "#offers #offers_row_3" # features/step_definitions/web_steps.rb:256
And I should see a link for "View note" within "#offers #offers_row_3" # features/step_definitions/web_steps.rb:237
@selenium
Scenario: As the media planner, I should be able to view an offer's acceptance note from the site row # features/mp_campaign_site_offers.feature:354
And I have these publishers: # features/step_definitions/publisher_steps.rb:9
| Name |
| Publisher 0 |
| Publisher 1 |
And I have these offers: # features/step_definitions/offer_steps.rb:1
| Department | For Campaign | For Publisher | Status | Note |
| Display | Campaign 0 | Publisher 0 | accepted | This is my 'accepted' note. |
| Display | Campaign 0 | Publisher 1 | pending | |
| Display | Campaign 0 | Publisher 1 | rejected | This is my 'rejected' note. |
When I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I follow "Offers" within "#context_menu" # features/step_definitions/web_steps.rb:169
Then I should see "Publisher 0" within "#offers #offers_row_1" # features/step_definitions/web_steps.rb:256
And I should see a link for "View note" within "#offers #offers_row_1" # features/step_definitions/web_steps.rb:237
When I follow "View note" within "#offers #offers_row_1" # features/step_definitions/web_steps.rb:169
Then I should see "Accepted:" within "#colorbox" # features/step_definitions/web_steps.rb:256
And I should see "This is my 'accepted' note." within "#colorbox" # features/step_definitions/web_steps.rb:256
Feature: Media Planner Create Media plan
Media Planner must be able to create media plans
Background: # features/mp_media_plans.feature:4
Given loaded fixtures # features/step_definitions/object_steps.rb:222
Given reportable data exists # features/step_definitions/object_steps.rb:95
Given I am logged in as media_planner user bob who belongs to the Display department # features/step_definitions/user_steps.rb:59
Given an active user named am # features/step_definitions/user_steps.rb:1
Given user am belongs to the account_manager user role # features/step_definitions/user_steps.rb:71
Given I have these companies: # features/step_definitions/company_steps.rb:1
| Name | Internal |
| RMM | true |
| LIN | true |
Given I have these sales reps: # features/step_definitions/sales_rep_steps.rb:2
| Company | Name | Initials | Email | Phone | Manager |
| RMM | Sales Rep 1 | SR1 | [email protected] | 512-123-1234 | [email protected] |
| LIN | Sales Rep 2 | SR2 | [email protected] | 512-123-1235 | [email protected] |
Given I have these media plan requests: # features/step_definitions/media_plan_request_steps.rb:1
| Department | Sales Rep |
| Display | Sales Rep 1 |
| Display | Sales Rep 2 |
When I follow "Sales" within "#tabs" # features/step_definitions/web_steps.rb:169
Then I follow "Proposals" within "#subnav" # features/step_definitions/web_steps.rb:169
@selenium
Scenario: As a Media Planner, when creating media plan, i want the list of emails checked for invalid format # features/mp_media_plans.feature:27
When I follow "Media Plan Request 0" within "#media_plan_requests_list" # features/step_definitions/web_steps.rb:169
When I follow "Add Plan" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
And I fill in "media_plan_emails" with "notarealemail.com" # features/step_definitions/web_steps.rb:174
And I press "Save" # features/step_definitions/web_steps.rb:164
Then I should see "failed to add media plan." within "#flash" # features/step_definitions/web_steps.rb:256
And I should see "Additional E-mails appears to contain an invalid address" within ".errorExplanation" # features/step_definitions/web_steps.rb:256
And I fill in "media_plan_emails" with "[email protected]" # features/step_definitions/web_steps.rb:174
And I press "Save" # features/step_definitions/web_steps.rb:164
And I should not see "Additional E-mails appears to contain an invalid address" within ".errorExplanation" # features/step_definitions/web_steps.rb:275
@selenium
Scenario: As a Media Planner, when creating media plan, i want the list of emails checked for invalid format # features/mp_media_plans.feature:41
Then I follow "New" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Then I select "Display" from "media_plan_request_department_id" # features/step_definitions/web_steps.rb:203
Then wait for the page to load # features/step_definitions/web_steps.rb:455
Feature: Media Planner Publisher
As a Media Buyer I must be able to create and manage publishers
Background: # features/mp_publisher.feature:4
Given loaded fixtures # features/step_definitions/object_steps.rb:222
Given reportable data exists # features/step_definitions/object_steps.rb:95
And I am logged in as media_planner user bob who belongs to the Display department # features/step_definitions/user_steps.rb:59
Then I follow "Sites" within "#tabs" # features/step_definitions/web_steps.rb:169
Then I follow "Publishers" within "#subnav" # features/step_definitions/web_steps.rb:169
Then I follow "Publisher 0" # features/step_definitions/web_steps.rb:169
# Then show me the page
# FIXME - cuke says field present but not visible
@selenium
Scenario: As a Media Planner, I must be able to remove a publisher contact from a publisher record # features/mp_publisher.feature:28
Then I follow "Edit Publisher" # features/step_definitions/web_steps.rb:169
Then I follow "remove" within "#publisher_contacts_attributes_0" # features/step_definitions/web_steps.rb:169
And I choose "publisher_contacts_attributes_1_kind_primary" # features/step_definitions/web_steps.rb:218
Then I press "Save" # features/step_definitions/web_steps.rb:164
Then I should see "Publisher was successfully updated" within "#flash" # features/step_definitions/web_steps.rb:256
Then I follow "Edit Publisher" # features/step_definitions/web_steps.rb:169
Then the "publisher_contacts_attributes_0_email" field within "#publisher_contacts_attributes_0" should contain "[email protected]" # features/step_definitions/web_steps.rb:337
@selenium
Scenario: As a Media Planner, When removing a primary contact I must promote another contact to primary when one exists # features/mp_publisher.feature:39
Then I follow "Edit Publisher" # features/step_definitions/web_steps.rb:169
Then I follow "remove" within "#publisher_contacts_attributes_0" # features/step_definitions/web_steps.rb:169
Then I press "Save" # features/step_definitions/web_steps.rb:164
Then I should see "1 error" # features/step_definitions/web_steps.rb:256
Then I should see "the primary contact must be set when contacts exist" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a Media Planner, When removing a primary contact I must promote another contact to primary when one exists # features/mp_publisher.feature:48
Then I follow "Edit Publisher" # features/step_definitions/web_steps.rb:169
Then I follow "remove" within "#publisher_contacts_attributes_0" # features/step_definitions/web_steps.rb:169
Then I follow "remove" within "#publisher_contacts_attributes_1" # features/step_definitions/web_steps.rb:169
Then I press "Save" # features/step_definitions/web_steps.rb:164
Then I should see "Publisher was successfully updated" within "#flash" # features/step_definitions/web_steps.rb:256
# FIXME - when all contacts marked for removal i get the error message the primary contact must be set when contacts exist
@selenium
Scenario: As a Media Planner, I must be able to change the primary contact for a publisher record # features/mp_publisher.feature:58
Then I follow "Edit Publisher" # features/step_definitions/web_steps.rb:169
Then the "publisher_contacts_attributes_0_kind_primary" field should be checked # features/step_definitions/web_steps.rb:373
Then I choose "publisher_contacts_attributes_1_kind_primary" # features/step_definitions/web_steps.rb:218
Then I press "Save" # features/step_definitions/web_steps.rb:164
Then I should see "Publisher was successfully updated" within "#flash" # features/step_definitions/web_steps.rb:256
Then I follow "Edit Publisher" # features/step_definitions/web_steps.rb:169
Then the "publisher_contacts_attributes_0_kind_primary" field should not be checked # features/step_definitions/web_steps.rb:383
Then the "publisher_contacts_attributes_1_kind_primary" field should be checked # features/step_definitions/web_steps.rb:373
@selenium
Scenario: As a Media Planner, when I edit a publisher I want to be able to specify what T&C will be sent to the publisher. # features/mp_publisher.feature:70
Then I follow "Edit Publisher" # features/step_definitions/web_steps.rb:169
Then I should see "Offer Terms & Conditions" # features/step_definitions/web_steps.rb:256
And I should see "RMM" within "#publisher_offer_terms_and_conditions_type" # features/step_definitions/web_steps.rb:256
And I should see "IAB" within "#publisher_offer_terms_and_conditions_type" # features/step_definitions/web_steps.rb:256
And I should see "CUSTOM" within "#publisher_offer_terms_and_conditions_type" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a Media Planner, I want to be able to set custom T&C text for a publisher to receive. # features/mp_publisher.feature:79
Then I follow "Edit Publisher" # features/step_definitions/web_steps.rb:169
Then I should see "Offer Terms & Conditions" # features/step_definitions/web_steps.rb:256
And I should see "CUSTOM" within "#publisher_offer_terms_and_conditions_type" # features/step_definitions/web_steps.rb:256
When I select "CUSTOM" from "publisher_offer_terms_and_conditions_type" # features/step_definitions/web_steps.rb:203
Then wait for the page to load # features/step_definitions/web_steps.rb:455
And I fill in "publisher_offer_terms_and_conditions_custom_text" with "my special terms and conditions copy" # features/step_definitions/web_steps.rb:174
And I press "Save" # features/step_definitions/web_steps.rb:164
Then I follow "Edit Publisher" # features/step_definitions/web_steps.rb:169
Then I should see "my special terms and conditions copy" within "#publisher_offer_terms_and_conditions_custom_text" # features/step_definitions/web_steps.rb:256
Feature: Media Planner Sites
As a Media Planner I want to search the site catalogue for sites
Background: # features/mp_sites.feature:4
Given loaded fixtures # features/step_definitions/object_steps.rb:222
Given reportable data exists # features/step_definitions/object_steps.rb:95
And I am logged in as media_planner user bob who belongs to the Display department # features/step_definitions/user_steps.rb:59
@selenium
Scenario: As a Media Planner I want to view the site catalog # features/mp_sites.feature:11
When I go to the home page # features/step_definitions/web_steps.rb:161
When I follow "Sites" within "#tabs" # features/step_definitions/web_steps.rb:169
And I should see "Site 0" # features/step_definitions/web_steps.rb:256
And I should see "Site 1" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a Media Planner I want to search the site catalog # features/mp_sites.feature:19
When I go to the home page # features/step_definitions/web_steps.rb:161
When I follow "Sites" within "#tabs" # features/step_definitions/web_steps.rb:169
When I fill in "search" with "Site 0" # features/step_definitions/web_steps.rb:174
@selenium
Scenario: As a Media Planner I must be able to create a Site # features/mp_sites.feature:26
When I go to the home page # features/step_definitions/web_steps.rb:161
When I follow "Sites" within "#tabs" # features/step_definitions/web_steps.rb:169
When I follow "New" # features/step_definitions/web_steps.rb:169
When I select "Publisher 0" from "site_publisher_id" # features/step_definitions/web_steps.rb:203
When I fill in "site_name" with "Site 333" # features/step_definitions/web_steps.rb:174
When I fill in "site_url" with "http://www.site333.com" # features/step_definitions/web_steps.rb:174
When I fill in "site_tag_names" with "site333" # features/step_definitions/web_steps.rb:174
And I press "Save" # features/step_definitions/web_steps.rb:164
Then I should see "Site was successfully created" within "#flash" # features/step_definitions/web_steps.rb:256
Feature: Neuron Ad Ops Create Blocked Referrers
Neuron Ad Ops must be able to create and manage blocked referrers
Background: # features/nao_blocked_referrers.feature:4
Given loaded fixtures # features/step_definitions/object_steps.rb:222
Given reportable data exists for the Video Network department # features/step_definitions/object_steps.rb:95
Given I am logged in as neuron_ad_ops user bob who belongs to the Video Network department # features/step_definitions/user_steps.rb:59
Then I follow "Admin" within "#tabs" # features/step_definitions/web_steps.rb:169
Then I follow "Neuron" within "#subnav" # features/step_definitions/web_steps.rb:169
Then I follow "Blocked Referers" within "#context_menu" # features/step_definitions/web_steps.rb:169
Unable to find css "#context_menu" (Capybara::ElementNotFound)
(eval):2:in `find'
./features/step_definitions/web_steps.rb:153:in `with_scope'
./features/step_definitions/web_steps.rb:170:in `/^(?:|I )follow "([^"]*)"(?: within "([^"]*)")?$/'
features/nao_blocked_referrers.feature:10:in `Then I follow "Blocked Referers" within "#context_menu"'
Scenario: As an Neuron Ad Ops, I can create and delete Blocked Referrers # features/nao_blocked_referrers.feature:13
Then I follow "New Blocked Referer" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Then I fill in "blocked_referer_referer" with "MyBlockedReferer" # features/step_definitions/web_steps.rb:174
Then I press "Save" # features/step_definitions/web_steps.rb:164
Then I should see "Blocked Referer was successfully created" within "#flash" # features/step_definitions/web_steps.rb:256
Then I should see "MyBlockedReferer" within "#mainContent" # features/step_definitions/web_steps.rb:256
And I confirm a js popup on the next step # features/step_definitions/web_steps.rb:445
Then I follow "Delete MyBlockedReferer" within "#mainContent" # features/step_definitions/web_steps.rb:169
Then I should see "Blocked Referer MyBlockedReferer was successfully removed" within "#flash" # features/step_definitions/web_steps.rb:256
Then I should not see "MyBlockedReferer" within "#mainContent" # features/step_definitions/web_steps.rb:275
Feature: Neuron Ad Ops Create Blocked User Agents
Neuron Ad Ops must be able to create and manage blocked User Agents
Background: # features/nao_blocked_user_agents.feature:4
Given loaded fixtures # features/step_definitions/object_steps.rb:222
Given reportable data exists for the Video Network department # features/step_definitions/object_steps.rb:95
Given I am logged in as neuron_ad_ops user bob who belongs to the Video Network department # features/step_definitions/user_steps.rb:59
Then I follow "Admin" within "#tabs" # features/step_definitions/web_steps.rb:169
Then I follow "Neuron" within "#subnav" # features/step_definitions/web_steps.rb:169
Then I follow "Blocked User Agents" within "#context_menu" # features/step_definitions/web_steps.rb:169
Unable to find css "#context_menu" (Capybara::ElementNotFound)
(eval):2:in `find'
./features/step_definitions/web_steps.rb:153:in `with_scope'
./features/step_definitions/web_steps.rb:170:in `/^(?:|I )follow "([^"]*)"(?: within "([^"]*)")?$/'
features/nao_blocked_user_agents.feature:10:in `Then I follow "Blocked User Agents" within "#context_menu"'
@selenium
Scenario: As an Neuron Ad Ops, I can create and edit Blocked Referrers # features/nao_blocked_user_agents.feature:14
Then I follow "New Blocked User Agent" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Then I fill in "blocked_user_agent_user_agent" with "MyBlockedUserAgent" # features/step_definitions/web_steps.rb:174
Then I press "Save" # features/step_definitions/web_steps.rb:164
Then I should see "Blocked User Agent was successfully created" within "#flash" # features/step_definitions/web_steps.rb:256
Then I should see "MyBlockedUserAgent" within "#mainContent" # features/step_definitions/web_steps.rb:256
And I confirm a js popup on the next step # features/step_definitions/web_steps.rb:445
Then I follow "Delete MyBlockedUserAgent" within "#mainContent" # features/step_definitions/web_steps.rb:169
Then I should see "Blocked User Agent MyBlockedUserAgent was successfully removed" within "#flash" # features/step_definitions/web_steps.rb:256
Then I should not see "MyBlockedReferer" within "#mainContent" # features/step_definitions/web_steps.rb:275
Feature: Neuron Ad Ops Create And Manage Campaign Ads
Neuron Ad Ops must be able to create and Campaign Ads
Background: # features/nao_campaign_ads.feature:4
Given loaded fixtures # features/step_definitions/object_steps.rb:222
Given reportable data exists for the Video Network department # features/step_definitions/object_steps.rb:95
Given I am logged in as neuron_ad_ops user bob who belongs to the Video Network department # features/step_definitions/user_steps.rb:59
Then I follow "Campaigns" within "#tabs" # features/step_definitions/web_steps.rb:169
@selenium
Scenario: As Neuron Ad Ops, I can create an ad and assign it to a campaign # features/nao_campaign_ads.feature:12
When I follow "Campaigns" # features/step_definitions/web_steps.rb:169
When I follow "New" # features/step_definitions/web_steps.rb:169
When I select "Video Network" from "campaign_department_id" # features/step_definitions/web_steps.rb:203
When I fill in "campaign_name" with "Bobs Video Campaign" # features/step_definitions/web_steps.rb:174
When I fill in "campaign_advertiser_id" with "adv" # features/step_definitions/web_steps.rb:174
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "Advertiser 0" within "li.ui-menu-item" # features/step_definitions/web_steps.rb:256
expected there to be content "Advertiser 0" in "Create New" (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/web_steps.rb:259:in `block (2 levels) in <top (required)>'
./features/step_definitions/web_steps.rb:153:in `block in with_scope'
./features/step_definitions/web_steps.rb:153:in `with_scope'
./features/step_definitions/web_steps.rb:257:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
features/nao_campaign_ads.feature:19:in `And I should see "Advertiser 0" within "li.ui-menu-item"'
When I select "Advertiser 0" from the autocomplete on "#campaign_advertiser_id" # features/step_definitions/web_steps.rb:416
And I fill in "campaign_start_date" with "2010-09-01" # features/step_definitions/web_steps.rb:174
And I fill in "campaign_end_date" with "2010-09-30" # features/step_definitions/web_steps.rb:174
And I press "Continue" # features/step_definitions/web_steps.rb:164
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "Bobs Video Campaign" # features/step_definitions/web_steps.rb:256
And I check "Unknown" # features/step_definitions/web_steps.rb:208
And I check "300x250 Video" # features/step_definitions/web_steps.rb:208
And I press "Continue" # features/step_definitions/web_steps.rb:164
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I follow "Ads" within "#context_menu" # features/step_definitions/web_steps.rb:169
Then I follow "New Ad" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Then I fill in "ad_name" with "NewVideoAd" # features/step_definitions/web_steps.rb:174
Then I select "300x250 Video" from "ad_product_id" # features/step_definitions/web_steps.rb:203
And I fill in "ad_rate" with "0.25" # features/step_definitions/web_steps.rb:174
Then I select "January" from "ad_start_date_2i" # features/step_definitions/web_steps.rb:203
Then I select "1" from "ad_start_date_3i" # features/step_definitions/web_steps.rb:203
Then I select "08" from "ad_start_date_4i" # features/step_definitions/web_steps.rb:203
Then I select "00" from "ad_start_date_5i" # features/step_definitions/web_steps.rb:203
Then I select "2012" from "ad_end_date_1i" # features/step_definitions/web_steps.rb:203
Then I select "January" from "ad_end_date_2i" # features/step_definitions/web_steps.rb:203
Then I select "1" from "ad_end_date_3i" # features/step_definitions/web_steps.rb:203
Then I select "08" from "ad_end_date_4i" # features/step_definitions/web_steps.rb:203
Then I select "00" from "ad_end_date_5i" # features/step_definitions/web_steps.rb:203
Then I press "Save" # features/step_definitions/web_steps.rb:164
Then I should see "Ad was successfully created" within "#flash" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As Neuron Ad Ops, I can create an ad and specify caps # features/nao_campaign_ads.feature:49
When I follow "Campaigns" # features/step_definitions/web_steps.rb:169
When I follow "New" # features/step_definitions/web_steps.rb:169
When I select "Video Network" from "campaign_department_id" # features/step_definitions/web_steps.rb:203
When I fill in "campaign_name" with "Bobs Video Campaign" # features/step_definitions/web_steps.rb:174
When I fill in "campaign_advertiser_id" with "adv" # features/step_definitions/web_steps.rb:174
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "Advertiser 0" within "li.ui-menu-item" # features/step_definitions/web_steps.rb:256
expected there to be content "Advertiser 0" in "Create New" (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/web_steps.rb:259:in `block (2 levels) in <top (required)>'
./features/step_definitions/web_steps.rb:153:in `block in with_scope'
./features/step_definitions/web_steps.rb:153:in `with_scope'
./features/step_definitions/web_steps.rb:257:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
features/nao_campaign_ads.feature:56:in `And I should see "Advertiser 0" within "li.ui-menu-item"'
When I select "Advertiser 0" from the autocomplete on "#campaign_advertiser_id" # features/step_definitions/web_steps.rb:416
And I fill in "campaign_start_date" with "2010-09-01" # features/step_definitions/web_steps.rb:174
And I fill in "campaign_end_date" with "2010-09-30" # features/step_definitions/web_steps.rb:174
And I press "Continue" # features/step_definitions/web_steps.rb:164
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "Bobs Video Campaign" # features/step_definitions/web_steps.rb:256
And I check "Unknown" # features/step_definitions/web_steps.rb:208
And I check "300x250 Video" # features/step_definitions/web_steps.rb:208
And I press "Continue" # features/step_definitions/web_steps.rb:164
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I follow "Ads" within "#context_menu" # features/step_definitions/web_steps.rb:169
Then I follow "New Ad" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Then I fill in "ad_name" with "NewVideoAd" # features/step_definitions/web_steps.rb:174
Then I select "300x250 Video" from "ad_product_id" # features/step_definitions/web_steps.rb:203
Then I fill in "ad_overall_cap" with "1000000" # features/step_definitions/web_steps.rb:174
Then I fill in "ad_daily_cap" with "100000" # features/step_definitions/web_steps.rb:174
Then I fill in "ad_ideal_impressions_per_hour" with "10000" # features/step_definitions/web_steps.rb:174
And I fill in "ad_rate" with "0.25" # features/step_definitions/web_steps.rb:174
Then I select "2011" from "ad_start_date_1i" # features/step_definitions/web_steps.rb:203
Then I select "January" from "ad_start_date_2i" # features/step_definitions/web_steps.rb:203
Then I select "1" from "ad_start_date_3i" # features/step_definitions/web_steps.rb:203
Then I select "08" from "ad_start_date_4i" # features/step_definitions/web_steps.rb:203
Then I select "00" from "ad_start_date_5i" # features/step_definitions/web_steps.rb:203
Then I select "2012" from "ad_end_date_1i" # features/step_definitions/web_steps.rb:203
Then I select "January" from "ad_end_date_2i" # features/step_definitions/web_steps.rb:203
Then I select "1" from "ad_end_date_3i" # features/step_definitions/web_steps.rb:203
Then I select "08" from "ad_end_date_4i" # features/step_definitions/web_steps.rb:203
Then I select "00" from "ad_end_date_5i" # features/step_definitions/web_steps.rb:203
Then I press "Save" # features/step_definitions/web_steps.rb:164
Then I should see "Ad was successfully created" within "#flash" # features/step_definitions/web_steps.rb:256
Feature: Neuron Ad Ops Create And Manage Campaigns
Neuron Ad Ops must be able to create and Campaigns
Background: # features/nao_campaigns.feature:4
Given loaded fixtures # features/step_definitions/object_steps.rb:222
Given reportable data exists for the Video Network department # features/step_definitions/object_steps.rb:95
Given I am logged in as neuron_ad_ops user bob who belongs to the Video Network department # features/step_definitions/user_steps.rb:59
Then I follow "Campaigns" within "#tabs" # features/step_definitions/web_steps.rb:169
@selenium
Scenario: As an Account Manager, I can view Campaigns for departments to which I belong # features/nao_campaigns.feature:12
Then I should see "Campaign 0" # features/step_definitions/web_steps.rb:256
Then I should not see "Campaign 2" # features/step_definitions/web_steps.rb:275
@selenium
Scenario: As Neuron Ad Ops, I can create a campaign and assign it to Video Network Department # features/nao_campaigns.feature:17
When I follow "Campaigns" # features/step_definitions/web_steps.rb:169
When I follow "New" # features/step_definitions/web_steps.rb:169
When I select "Video Network" from "campaign_department_id" # features/step_definitions/web_steps.rb:203
When I fill in "campaign_name" with "Bobs Video Campaign" # features/step_definitions/web_steps.rb:174
When I fill in "campaign_advertiser_id" with "adv" # features/step_definitions/web_steps.rb:174
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "Advertiser 0" within "li.ui-menu-item" # features/step_definitions/web_steps.rb:256
expected there to be content "Advertiser 0" in "Create New" (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/web_steps.rb:259:in `block (2 levels) in <top (required)>'
./features/step_definitions/web_steps.rb:153:in `block in with_scope'
./features/step_definitions/web_steps.rb:153:in `with_scope'
./features/step_definitions/web_steps.rb:257:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
features/nao_campaigns.feature:24:in `And I should see "Advertiser 0" within "li.ui-menu-item"'
When I select "Advertiser 0" from the autocomplete on "#campaign_advertiser_id" # features/step_definitions/web_steps.rb:416
And I fill in "campaign_start_date" with "2010-09-01" # features/step_definitions/web_steps.rb:174
And I fill in "campaign_end_date" with "2010-09-30" # features/step_definitions/web_steps.rb:174
And I press "Continue" # features/step_definitions/web_steps.rb:164
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "Bobs Video Campaign" # features/step_definitions/web_steps.rb:256
Feature: Neuron Ad Ops Create Channels
Neuron Ad Ops must be able to create and manage channels
Background: # features/nao_channels.feature:4
Given loaded fixtures # features/step_definitions/object_steps.rb:222
Given reportable data exists for the Video Network department # features/step_definitions/object_steps.rb:95
Given I am logged in as neuron_ad_ops user bob who belongs to the Video Network department # features/step_definitions/user_steps.rb:59
Then I follow "Admin" within "#tabs" # features/step_definitions/web_steps.rb:169
Then I follow "Neuron" within "#subnav" # features/step_definitions/web_steps.rb:169
Then I follow "Content Channels" within "#context_menu" # features/step_definitions/web_steps.rb:169
Unable to find css "#context_menu" (Capybara::ElementNotFound)
(eval):2:in `find'
./features/step_definitions/web_steps.rb:153:in `with_scope'
./features/step_definitions/web_steps.rb:170:in `/^(?:|I )follow "([^"]*)"(?: within "([^"]*)")?$/'
features/nao_channels.feature:10:in `Then I follow "Content Channels" within "#context_menu"'
@selenium
Scenario: As an Neuron Ad Ops, I can create and edit Content Channels # features/nao_channels.feature:14
Then I follow "New Content Channel" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Then I fill in "content_channel_name" with "SuperContentChannel" # features/step_definitions/web_steps.rb:174
Then I press "Save" # features/step_definitions/web_steps.rb:164
Then I should see "Content Channel was successfully created" within "#flash" # features/step_definitions/web_steps.rb:256
Then I should see "SuperContentChannel" within "#mainContent" # features/step_definitions/web_steps.rb:256
Then I follow "SuperContentChannel" within "#mainContent" # features/step_definitions/web_steps.rb:169
Then I fill in "content_channel_name" with "SuperDuperContentChannel" # features/step_definitions/web_steps.rb:174
Then I press "Save" # features/step_definitions/web_steps.rb:164
Then I should see "Content Channel was successfully updated" within "#flash" # features/step_definitions/web_steps.rb:256
Then I should see "SuperDuperContentChannel" within "#mainContent" # features/step_definitions/web_steps.rb:256
Feature: Publisher responding to site offers
Publisher must be able to respond to site offers
Background: # features/publisher_site_offers.feature:4
Given loaded fixtures # features/step_definitions/object_steps.rb:222
Given reportable data exists # features/step_definitions/object_steps.rb:95
And I am logged in as media_buyer user bob who belongs to the Display department # features/step_definitions/user_steps.rb:59
@selenium
Scenario: As a publisher, I should see a Reject Offer link in the email # features/publisher_site_offers.feature:11
And I have these campaigns with these site allocations: # features/step_definitions/site_allocation_steps.rb:1
[1]
[1]
| Department | Campaign Name | Site Name | Number of Zones | Number of Flights |
| Display | Campaign 0 | Site 0 | 3 | 2 |
| Display | Campaign 0 | Site 1 | 3 | 2 |
When I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I follow "Sites" within "#context_menu" # features/step_definitions/web_steps.rb:169
When I check "site_0_select" # features/step_definitions/web_steps.rb:208
When I check "site_1_select" # features/step_definitions/web_steps.rb:208
And I follow "Send Offer" # features/step_definitions/web_steps.rb:169
And there are no delayed jobs # features/step_definitions/delayed_job_steps.rb:1
And a clear email queue # features/step_definitions/email_steps.rb:43
And I press "Send" # features/step_definitions/web_steps.rb:164
And I log out # features/step_definitions/user_steps.rb:67
Then all delayed jobs are run # features/step_definitions/delayed_job_steps.rb:24
Then 0 delayed job objects should exist # features/step_definitions/delayed_job_steps.rb:15
Then "[email protected]" should receive an email # features/step_definitions/email_steps.rb:51
When "[email protected]" opens the email # features/step_definitions/email_steps.rb:76
When I follow "To reject this offer click here" in the email # features/step_definitions/email_steps.rb:178
Then I should see "Thank you for your feedback. We look forward to doing business with you another time." # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a publisher, I can provide a note when I reject an offer # features/publisher_site_offers.feature:34
And I have these campaigns with these site allocations: # features/step_definitions/site_allocation_steps.rb:1
[1]
[1]
| Department | Campaign Name | Site Name | Number of Zones | Number of Flights |
| Display | Campaign 0 | Site 0 | 3 | 2 |
| Display | Campaign 0 | Site 1 | 3 | 2 |
When I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I follow "Sites" within "#context_menu" # features/step_definitions/web_steps.rb:169
When I check "site_0_select" # features/step_definitions/web_steps.rb:208
When I check "site_1_select" # features/step_definitions/web_steps.rb:208
And I follow "Send Offer" # features/step_definitions/web_steps.rb:169
And there are no delayed jobs # features/step_definitions/delayed_job_steps.rb:1
And a clear email queue # features/step_definitions/email_steps.rb:43
And I press "Send" # features/step_definitions/web_steps.rb:164
And I log out # features/step_definitions/user_steps.rb:67
Then all delayed jobs are run # features/step_definitions/delayed_job_steps.rb:24
Then 0 delayed job objects should exist # features/step_definitions/delayed_job_steps.rb:15
Then "[email protected]" should receive an email # features/step_definitions/email_steps.rb:51
When "[email protected]" opens the email # features/step_definitions/email_steps.rb:76
When I follow "To reject this offer click here" in the email # features/step_definitions/email_steps.rb:178
Then I should see "Thank you for your feedback. We look forward to doing business with you another time." # features/step_definitions/web_steps.rb:256
And I fill in "offer_note" with "I cannot accept your offer" # features/step_definitions/web_steps.rb:174
And I follow "Add Comment" # features/step_definitions/web_steps.rb:169
Then I should see "Thank you for your feedback." # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a publisher, I should see an Accept Offer link in the email # features/publisher_site_offers.feature:60
And I have these campaigns with these site allocations: # features/step_definitions/site_allocation_steps.rb:1
[1]
[1]
| Department | Campaign Name | Site Name | Number of Zones | Number of Flights |
| Display | Campaign 0 | Site 0 | 3 | 2 |
| Display | Campaign 0 | Site 1 | 3 | 2 |
When I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I follow "Sites" within "#context_menu" # features/step_definitions/web_steps.rb:169
When I check "site_0_select" # features/step_definitions/web_steps.rb:208
When I check "site_1_select" # features/step_definitions/web_steps.rb:208
And I follow "Send Offer" # features/step_definitions/web_steps.rb:169
And there are no delayed jobs # features/step_definitions/delayed_job_steps.rb:1
And a clear email queue # features/step_definitions/email_steps.rb:43
And I press "Send" # features/step_definitions/web_steps.rb:164
Then all delayed jobs are run # features/step_definitions/delayed_job_steps.rb:24
Then 0 delayed job objects should exist # features/step_definitions/delayed_job_steps.rb:15
Then "[email protected]" should receive an email # features/step_definitions/email_steps.rb:51
When "[email protected]" opens the email # features/step_definitions/email_steps.rb:76
When I follow "To accept this offer click here" in the email # features/step_definitions/email_steps.rb:178
And I should see "Thank you for accepting our offer" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a publisher, I can provide a note when I accept an offer # features/publisher_site_offers.feature:82
And I have these campaigns with these site allocations: # features/step_definitions/site_allocation_steps.rb:1
[1]
[1]
| Department | Campaign Name | Site Name | Number of Zones | Number of Flights |
| Display | Campaign 0 | Site 0 | 3 | 2 |
| Display | Campaign 0 | Site 1 | 3 | 2 |
When I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I follow "Sites" within "#context_menu" # features/step_definitions/web_steps.rb:169
When I check "site_0_select" # features/step_definitions/web_steps.rb:208
When I check "site_1_select" # features/step_definitions/web_steps.rb:208
And I follow "Send Offer" # features/step_definitions/web_steps.rb:169
And there are no delayed jobs # features/step_definitions/delayed_job_steps.rb:1
And a clear email queue # features/step_definitions/email_steps.rb:43
And I press "Send" # features/step_definitions/web_steps.rb:164
And I log out # features/step_definitions/user_steps.rb:67
Then all delayed jobs are run # features/step_definitions/delayed_job_steps.rb:24
Then 0 delayed job objects should exist # features/step_definitions/delayed_job_steps.rb:15
Then "[email protected]" should receive an email # features/step_definitions/email_steps.rb:51
When "[email protected]" opens the email # features/step_definitions/email_steps.rb:76
When I follow "To accept this offer click here" in the email # features/step_definitions/email_steps.rb:178
And I should see "Thank you for accepting our offer" # features/step_definitions/web_steps.rb:256
When I fill in "offer_note" with "I'm happy to accept your offer" # features/step_definitions/web_steps.rb:174
And I follow "Add Comment" # features/step_definitions/web_steps.rb:169
Then I should see "Thank you for your feedback." # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a new publisher, when I accept an offer, I want to create an account. # features/publisher_site_offers.feature:108
And I have these campaigns with these site allocations: # features/step_definitions/site_allocation_steps.rb:1
[1]
[1]
| Department | Campaign Name | Site Name | Number of Zones | Number of Flights |
| Display | Campaign 0 | Site 0 | 3 | 2 |
| Display | Campaign 0 | Site 1 | 3 | 2 |
When I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I follow "Sites" within "#context_menu" # features/step_definitions/web_steps.rb:169
When I check "site_0_select" # features/step_definitions/web_steps.rb:208
When I check "site_1_select" # features/step_definitions/web_steps.rb:208
And I follow "Send Offer" # features/step_definitions/web_steps.rb:169
And there are no delayed jobs # features/step_definitions/delayed_job_steps.rb:1
And a clear email queue # features/step_definitions/email_steps.rb:43
And I press "Send" # features/step_definitions/web_steps.rb:164
And I log out # features/step_definitions/user_steps.rb:67
Then all delayed jobs are run # features/step_definitions/delayed_job_steps.rb:24
Then 0 delayed job objects should exist # features/step_definitions/delayed_job_steps.rb:15
Then "[email protected]" should receive an email # features/step_definitions/email_steps.rb:51
When "[email protected]" opens the email # features/step_definitions/email_steps.rb:76
When I follow "To accept this offer click here" in the email # features/step_definitions/email_steps.rb:178
And I should see "Thank you for accepting our offer" # features/step_definitions/web_steps.rb:256
When I fill in "offer_note" with "I'm happy to accept your offer" # features/step_definitions/web_steps.rb:174
And I follow "Add Comment" # features/step_definitions/web_steps.rb:169
Then I should see "Thank you for your feedback." # features/step_definitions/web_steps.rb:256
And I should see "Sign up for a New Account" # features/step_definitions/web_steps.rb:256
Then I fill in "user_email" with "[email protected]" # features/step_definitions/web_steps.rb:174
And I fill in "user_first_name" with "NewPublisherFirst" # features/step_definitions/web_steps.rb:174
And I fill in "user_last_name" with "NewPublisherLast" # features/step_definitions/web_steps.rb:174
And I fill in "user_password" with "As$umpt10n" # features/step_definitions/web_steps.rb:174
And I fill in "user_password_confirmation" with "As$umpt10n" # features/step_definitions/web_steps.rb:174
And I press "Create Account" # features/step_definitions/web_steps.rb:164
Then I should see "Thank you for registering. Please check your e-mail. You'll need to click the activation link we just sent you before your registration is complete." # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a new publisher, When I create an account I want to be notified of errors in account creation # features/publisher_site_offers.feature:142
And I have these campaigns with these site allocations: # features/step_definitions/site_allocation_steps.rb:1
[1]
[1]
| Department | Campaign Name | Site Name | Number of Zones | Number of Flights |
| Display | Campaign 0 | Site 0 | 3 | 2 |
| Display | Campaign 0 | Site 1 | 3 | 2 |
When I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I follow "Sites" within "#context_menu" # features/step_definitions/web_steps.rb:169
When I check "site_0_select" # features/step_definitions/web_steps.rb:208
When I check "site_1_select" # features/step_definitions/web_steps.rb:208
And I follow "Send Offer" # features/step_definitions/web_steps.rb:169
And there are no delayed jobs # features/step_definitions/delayed_job_steps.rb:1
And a clear email queue # features/step_definitions/email_steps.rb:43
And I press "Send" # features/step_definitions/web_steps.rb:164
And I log out # features/step_definitions/user_steps.rb:67
Then all delayed jobs are run # features/step_definitions/delayed_job_steps.rb:24
Then 0 delayed job objects should exist # features/step_definitions/delayed_job_steps.rb:15
Then "[email protected]" should receive an email # features/step_definitions/email_steps.rb:51
When "[email protected]" opens the email # features/step_definitions/email_steps.rb:76
When I follow "To accept this offer click here" in the email # features/step_definitions/email_steps.rb:178
And I should see "Thank you for accepting our offer" # features/step_definitions/web_steps.rb:256
When I fill in "offer_note" with "I'm happy to accept your offer" # features/step_definitions/web_steps.rb:174
And I follow "Add Comment" # features/step_definitions/web_steps.rb:169
Then I should see "Thank you for your feedback." # features/step_definitions/web_steps.rb:256
And I should see "Sign up for a New Account" # features/step_definitions/web_steps.rb:256
Then I fill in "user_email" with "[email protected]" # features/step_definitions/web_steps.rb:174
And I press "Create Account" # features/step_definitions/web_steps.rb:164
Then I should see "2 errors" # features/step_definitions/web_steps.rb:256
And I should see "First name can't be blank" # features/step_definitions/web_steps.rb:256
And I should see "Last name can't be blank" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As the publisher, when I first create my account, I want to be prompted to check my email on a confirmation screen to activate my account. # features/publisher_site_offers.feature:175
And I have these campaigns with these site allocations: # features/step_definitions/site_allocation_steps.rb:1
[1]
[1]
| Department | Campaign Name | Site Name | Number of Zones | Number of Flights |
| Display | Campaign 0 | Site 0 | 3 | 2 |
| Display | Campaign 0 | Site 1 | 3 | 2 |
When I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I follow "Sites" within "#context_menu" # features/step_definitions/web_steps.rb:169
When I check "site_0_select" # features/step_definitions/web_steps.rb:208
When I check "site_1_select" # features/step_definitions/web_steps.rb:208
And I follow "Send Offer" # features/step_definitions/web_steps.rb:169
And there are no delayed jobs # features/step_definitions/delayed_job_steps.rb:1
And a clear email queue # features/step_definitions/email_steps.rb:43
And I press "Send" # features/step_definitions/web_steps.rb:164
And I log out # features/step_definitions/user_steps.rb:67
Then all delayed jobs are run # features/step_definitions/delayed_job_steps.rb:24
Then 0 delayed job objects should exist # features/step_definitions/delayed_job_steps.rb:15
Then "[email protected]" should receive an email # features/step_definitions/email_steps.rb:51
When "[email protected]" opens the email # features/step_definitions/email_steps.rb:76
When I follow "To accept this offer click here" in the email # features/step_definitions/email_steps.rb:178
And I should see "Thank you for accepting our offer" # features/step_definitions/web_steps.rb:256
When I fill in "offer_note" with "I'm happy to accept your offer" # features/step_definitions/web_steps.rb:174
And I follow "Add Comment" # features/step_definitions/web_steps.rb:169
Then I should see "Thank you for your feedback." # features/step_definitions/web_steps.rb:256
And I should see "Sign up for a New Account" # features/step_definitions/web_steps.rb:256
Then I fill in "user_email" with "[email protected]" # features/step_definitions/web_steps.rb:174
And I fill in "user_first_name" with "NewPublisherFirst" # features/step_definitions/web_steps.rb:174
And I fill in "user_last_name" with "NewPublisherLast" # features/step_definitions/web_steps.rb:174
And I fill in "user_password" with "As$umpt10n" # features/step_definitions/web_steps.rb:174
And I fill in "user_password_confirmation" with "As$umpt10n" # features/step_definitions/web_steps.rb:174
And a clear email queue # features/step_definitions/email_steps.rb:43
And I press "Create Account" # features/step_definitions/web_steps.rb:164
Then I should see "Thank you for registering. Please check your e-mail. You'll need to click the activation link we just sent you before your registration is complete." # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a publisher, after I accept an offer, I wish to be shown any other pending offers which might need my attention # features/publisher_site_offers.feature:210
And I have these campaigns with these site allocations: # features/step_definitions/site_allocation_steps.rb:1
[1]
[1]
[1]
[1, 2]
| Department | Campaign Name | Site Name | Number of Zones | Number of Flights |
| Display | Campaign 0 | Site 0 | 3 | 2 |
| Display | Campaign 0 | Site 1 | 3 | 2 |
| Display | Campaign 3 | Site 6 | 3 | 2 |
| Display | Campaign 3 | Site 7 | 3 | 2 |
And "Campaign 3" with "pending" offer for "Publisher 0" # features/step_definitions/campaign_steps.rb:66
When I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I follow "Sites" within "#context_menu" # features/step_definitions/web_steps.rb:169
When I check "site_0_select" # features/step_definitions/web_steps.rb:208
When I check "site_1_select" # features/step_definitions/web_steps.rb:208
And I follow "Send Offer" # features/step_definitions/web_steps.rb:169
And there are no delayed jobs # features/step_definitions/delayed_job_steps.rb:1
And a clear email queue # features/step_definitions/email_steps.rb:43
And I press "Send" # features/step_definitions/web_steps.rb:164
Then all delayed jobs are run # features/step_definitions/delayed_job_steps.rb:24
Then 0 delayed job objects should exist # features/step_definitions/delayed_job_steps.rb:15
And I log out # features/step_definitions/user_steps.rb:67
Then "[email protected]" should receive an email # features/step_definitions/email_steps.rb:51
When "[email protected]" opens the email # features/step_definitions/email_steps.rb:76
When I follow "To accept this offer click here" in the email # features/step_definitions/email_steps.rb:178
And I should see "Thank you for accepting our offer" # features/step_definitions/web_steps.rb:256
When I fill in "offer_note" with "I'm happy to accept your offer" # features/step_definitions/web_steps.rb:174
And I follow "Add Comment" # features/step_definitions/web_steps.rb:169
Then I should see "Thank you for your feedback." # features/step_definitions/web_steps.rb:256
And I should see "Sign up for a New Account" # features/step_definitions/web_steps.rb:256
Then I fill in "user_email" with "[email protected]" # features/step_definitions/web_steps.rb:174
And I fill in "user_first_name" with "NewPublisherFirst" # features/step_definitions/web_steps.rb:174
And I fill in "user_last_name" with "NewPublisherLast" # features/step_definitions/web_steps.rb:174
And I fill in "user_password" with "As$umpt10n" # features/step_definitions/web_steps.rb:174
And I fill in "user_password_confirmation" with "As$umpt10n" # features/step_definitions/web_steps.rb:174
And a clear email queue # features/step_definitions/email_steps.rb:43
And I press "Create Account" # features/step_definitions/web_steps.rb:164
Then I should see "Thank you for registering. Please check your e-mail. You'll need to click the activation link we just sent you before your registration is complete." # features/step_definitions/web_steps.rb:256
Then "[email protected]" should receive an email # features/step_definitions/email_steps.rb:51
When "[email protected]" opens the email # features/step_definitions/email_steps.rb:76
And they click the first link in the email # features/step_definitions/email_steps.rb:182
And I should see "Pending" within ".pending" # features/step_definitions/web_steps.rb:256
And I should see "Accepted" within ".accepted" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a publisher, after receiving a PO, I must be able to return to the site to get ad code # features/publisher_site_offers.feature:255
And I have these campaigns with these site allocations: # features/step_definitions/site_allocation_steps.rb:1
[1]
[1]
| Department | Campaign Name | Site Name | Number of Zones | Number of Flights | Start Date | End Date | Active |
| Display | Campaign 0 | Site 0 | 2 | 1 | 20100801 | 20100901 | 1 |
| Display | Campaign 0 | Site 1 | 2 | 1 | 20100901 | 20101001 | 1 |
And "Campaign 0" with "accepted" offer # features/step_definitions/campaign_steps.rb:66
Then I follow "Offers" within "#context_menu" # features/step_definitions/web_steps.rb:169
When I check "publisher_0_select" # features/step_definitions/web_steps.rb:208
And there are no delayed jobs # features/step_definitions/delayed_job_steps.rb:1
And a clear email queue # features/step_definitions/email_steps.rb:43
Then I follow "Send PO" # features/step_definitions/web_steps.rb:169
And I log out # features/step_definitions/user_steps.rb:67
Then all delayed jobs are run # features/step_definitions/delayed_job_steps.rb:24
Then 0 delayed job objects should exist # features/step_definitions/delayed_job_steps.rb:15
Then "[email protected]" should receive an email # features/step_definitions/email_steps.rb:51
When "[email protected]" opens the email # features/step_definitions/email_steps.rb:76
Then they should see "PO for Campaign : 2010_09_15" in the email subject # features/step_definitions/email_steps.rb:100
And they should see "The 2010_09_15 campaign we offered you has been approved" in the email body # features/step_definitions/email_steps.rb:108
And they should see "Your tags are available on that page." in the email body # features/step_definitions/email_steps.rb:108
And they click the first link in the email # features/step_definitions/email_steps.rb:182
Then I should see "Purchase Order for Publisher 0" # features/step_definitions/web_steps.rb:256
And I should see "Campaign: 2010_09_15" # features/step_definitions/web_steps.rb:256
And I should see "Tags" within "#tags" # features/step_definitions/web_steps.rb:256
And I should see "Site 0" within "#tags" # features/step_definitions/web_steps.rb:256
And I should see "Site 1" within "#tags" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a publisher, When viewing the PO, I must be able to "Accept" the offer by entering my name and title. # features/publisher_site_offers.feature:285
And I have these campaigns with these site allocations: # features/step_definitions/site_allocation_steps.rb:1
[1]
[1]
| Department | Campaign Name | Site Name | Number of Zones | Number of Flights | Start Date | End Date | Active |
| Display | Campaign 0 | Site 0 | 2 | 1 | 20100801 | 20100901 | 1 |
| Display | Campaign 0 | Site 1 | 2 | 1 | 20100901 | 20101001 | 1 |
And "Campaign 0" with "pending" offer # features/step_definitions/campaign_steps.rb:66
Then I follow "Offers" within "#context_menu" # features/step_definitions/web_steps.rb:169
When I check "publisher_0_select" # features/step_definitions/web_steps.rb:208
And there are no delayed jobs # features/step_definitions/delayed_job_steps.rb:1
And a clear email queue # features/step_definitions/email_steps.rb:43
Then I follow "Send PO" # features/step_definitions/web_steps.rb:169
And I log out # features/step_definitions/user_steps.rb:67
Then all delayed jobs are run # features/step_definitions/delayed_job_steps.rb:24
Then 0 delayed job objects should exist # features/step_definitions/delayed_job_steps.rb:15
Then "[email protected]" should receive an email # features/step_definitions/email_steps.rb:51
When "[email protected]" opens the email # features/step_definitions/email_steps.rb:76
Then they should see "PO for Campaign : 2010_09_15" in the email subject # features/step_definitions/email_steps.rb:100
And they should see "The 2010_09_15 campaign we offered you has been approved" in the email body # features/step_definitions/email_steps.rb:108
And they should see "Your tags are available on that page." in the email body # features/step_definitions/email_steps.rb:108
And they click the first link in the email # features/step_definitions/email_steps.rb:182
Then I should see "Purchase Order for Publisher 0" # features/step_definitions/web_steps.rb:256
And I should see "Campaign: 2010_09_15" # features/step_definitions/web_steps.rb:256
And I fill in "offer_signature_name" with "Bob Roberts" # features/step_definitions/web_steps.rb:174
And I fill in "offer_signature_title" with "HMIC" # features/step_definitions/web_steps.rb:174
And I press "offer_submit" # features/step_definitions/web_steps.rb:164
no button with value or id or text 'offer_submit' found (Capybara::ElementNotFound)
(eval):2:in `click_button'
./features/step_definitions/web_steps.rb:166:in `block (2 levels) in <top (required)>'
./features/step_definitions/web_steps.rb:153:in `with_scope'
./features/step_definitions/web_steps.rb:165:in `/^(?:|I )press "([^"]*)"(?: within "([^"]*)")?$/'
features/publisher_site_offers.feature:311:in `And I press "offer_submit"'
Then I should see "PO was signed and accepted on September 15th, 2010 by Bob Roberts, HMIC" # features/step_definitions/web_steps.rb:256
@selenium @manual
Scenario: As a publisher when I print the PO I want it to be countersigned by Sam Moffett # features/publisher_site_offers.feature:316
And I have these campaigns with these site allocations: # features/step_definitions/site_allocation_steps.rb:1
[1]
[1]
| Department | Campaign Name | Site Name | Number of Zones | Number of Flights |
| Display | Campaign 0 | Site 0 | 3 | 2 |
| Display | Campaign 0 | Site 1 | 3 | 2 |
And "Campaign 0" with "accepted" offer # features/step_definitions/campaign_steps.rb:66
Then I follow "Offers" within "#context_menu" # features/step_definitions/web_steps.rb:169
When I check "publisher_0_select" # features/step_definitions/web_steps.rb:208
And there are no delayed jobs # features/step_definitions/delayed_job_steps.rb:1
And a clear email queue # features/step_definitions/email_steps.rb:43
Then I follow "Send PO" # features/step_definitions/web_steps.rb:169
And I log out # features/step_definitions/user_steps.rb:67
Then all delayed jobs are run # features/step_definitions/delayed_job_steps.rb:24
Then 0 delayed job objects should exist # features/step_definitions/delayed_job_steps.rb:15
Then "[email protected]" should receive an email # features/step_definitions/email_steps.rb:51
When "[email protected]" opens the email # features/step_definitions/email_steps.rb:76
Then they should see "PO for Campaign : 2010_09_15" in the email subject # features/step_definitions/email_steps.rb:100
And they should see "The 2010_09_15 campaign we offered you has been approved. To view your PO, please click here :" in the email body # features/step_definitions/email_steps.rb:108
And they should see "Your tags are available on that page." in the email body # features/step_definitions/email_steps.rb:108
And they click the first link in the email # features/step_definitions/email_steps.rb:182
Then I should see "Purchase Order for Publisher 0" # features/step_definitions/web_steps.rb:256
And I should see "Campaign: 2010_09_15" # features/step_definitions/web_steps.rb:256
# Then show me the page
# When I follow "Print PO"
@selenium
Scenario: As a publisher, when viewing my account information, I want to be able to enter my contact address. # features/publisher_site_offers.feature:345
And I have these campaigns with these site allocations: # features/step_definitions/site_allocation_steps.rb:1
[1]
[1]
| Department | Campaign Name | Site Name | Number of Zones | Number of Flights |
| Display | Campaign 0 | Site 0 | 3 | 2 |
| Display | Campaign 0 | Site 1 | 3 | 2 |
When I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I follow "Sites" within "#context_menu" # features/step_definitions/web_steps.rb:169
When I check "site_0_select" # features/step_definitions/web_steps.rb:208
When I check "site_1_select" # features/step_definitions/web_steps.rb:208
And I follow "Send Offer" # features/step_definitions/web_steps.rb:169
And there are no delayed jobs # features/step_definitions/delayed_job_steps.rb:1
And a clear email queue # features/step_definitions/email_steps.rb:43
And I press "Send" # features/step_definitions/web_steps.rb:164
And I log out # features/step_definitions/user_steps.rb:67
Then all delayed jobs are run # features/step_definitions/delayed_job_steps.rb:24
Then 0 delayed job objects should exist # features/step_definitions/delayed_job_steps.rb:15
Then "[email protected]" should receive an email # features/step_definitions/email_steps.rb:51
When "[email protected]" opens the email # features/step_definitions/email_steps.rb:76
When I follow "To accept this offer click here" in the email # features/step_definitions/email_steps.rb:178
And I should see "Thank you for accepting our offer!" # features/step_definitions/web_steps.rb:256
When I fill in "offer_note" with "I'm happy to accept your offer" # features/step_definitions/web_steps.rb:174
And I follow "Add Comment" # features/step_definitions/web_steps.rb:169
Then I should see "Thank you for your feedback." # features/step_definitions/web_steps.rb:256
And I should see "Sign up for a New Account" # features/step_definitions/web_steps.rb:256
Then I fill in "user_email" with "[email protected]" # features/step_definitions/web_steps.rb:174
And I fill in "user_first_name" with "NewPublisherFirst" # features/step_definitions/web_steps.rb:174
And I fill in "user_last_name" with "NewPublisherLast" # features/step_definitions/web_steps.rb:174
And I fill in "user_password" with "As$umpt10n" # features/step_definitions/web_steps.rb:174
And I fill in "user_password_confirmation" with "As$umpt10n" # features/step_definitions/web_steps.rb:174
And a clear email queue # features/step_definitions/email_steps.rb:43
And I press "Create Account" # features/step_definitions/web_steps.rb:164
Then I should see "Thank you for registering. Please check your e-mail. You'll need to click the activation link we just sent you before your registration is complete." # features/step_definitions/web_steps.rb:256
Then "[email protected]" should receive an email # features/step_definitions/email_steps.rb:51
When "[email protected]" opens the email # features/step_definitions/email_steps.rb:76
And they click the first link in the email # features/step_definitions/email_steps.rb:182
Then I follow "My Account" # features/step_definitions/web_steps.rb:169
Then I fill in "user_address_attributes_street1" with "newstreet1" # features/step_definitions/web_steps.rb:174
Then I fill in "user_address_attributes_street2" with "newstreet2" # features/step_definitions/web_steps.rb:174
Then I fill in "user_address_attributes_city" with "newCity" # features/step_definitions/web_steps.rb:174
Then I fill in "user_address_attributes_state" with "newState" # features/step_definitions/web_steps.rb:174
Then I fill in "user_address_attributes_zip" with "12345" # features/step_definitions/web_steps.rb:174
And I select "United States" from "user_address_attributes_country" # features/step_definitions/web_steps.rb:203
Then I press "Save" # features/step_definitions/web_steps.rb:164
Then I should see "Your profile was successfully updated" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a publisher, when viewing my account information, I want to be able to enter my tax id and payable to information. # features/publisher_site_offers.feature:393
And I have these campaigns with these site allocations: # features/step_definitions/site_allocation_steps.rb:1
[1]
[1]
| Department | Campaign Name | Site Name | Number of Zones | Number of Flights |
| Display | Campaign 0 | Site 0 | 3 | 2 |
| Display | Campaign 0 | Site 1 | 3 | 2 |
When I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I follow "Sites" within "#context_menu" # features/step_definitions/web_steps.rb:169
When I check "site_0_select" # features/step_definitions/web_steps.rb:208
When I check "site_1_select" # features/step_definitions/web_steps.rb:208
And I follow "Send Offer" # features/step_definitions/web_steps.rb:169
And there are no delayed jobs # features/step_definitions/delayed_job_steps.rb:1
And a clear email queue # features/step_definitions/email_steps.rb:43
And I press "Send" # features/step_definitions/web_steps.rb:164
And I log out # features/step_definitions/user_steps.rb:67
Then all delayed jobs are run # features/step_definitions/delayed_job_steps.rb:24
Then show me the delayed jobs # features/step_definitions/delayed_job_steps.rb:5
Then 0 delayed job objects should exist # features/step_definitions/delayed_job_steps.rb:15
Then "[email protected]" should receive an email # features/step_definitions/email_steps.rb:51
When "[email protected]" opens the email # features/step_definitions/email_steps.rb:76
When I follow "To accept this offer click here" in the email # features/step_definitions/email_steps.rb:178
And I should see "Thank you for accepting our offer!" # features/step_definitions/web_steps.rb:256
When I fill in "offer_note" with "I'm happy to accept your offer" # features/step_definitions/web_steps.rb:174
And I follow "Add Comment" # features/step_definitions/web_steps.rb:169
Then I should see "Thank you for your feedback." # features/step_definitions/web_steps.rb:256
And I should see "Sign up for a New Account" # features/step_definitions/web_steps.rb:256
Then I fill in "user_email" with "[email protected]" # features/step_definitions/web_steps.rb:174
And I fill in "user_first_name" with "NewPublisherFirst" # features/step_definitions/web_steps.rb:174
And I fill in "user_last_name" with "NewPublisherLast" # features/step_definitions/web_steps.rb:174
And I fill in "user_password" with "As$umpt10n" # features/step_definitions/web_steps.rb:174
And I fill in "user_password_confirmation" with "As$umpt10n" # features/step_definitions/web_steps.rb:174
And a clear email queue # features/step_definitions/email_steps.rb:43
And I press "Create Account" # features/step_definitions/web_steps.rb:164
Then I should see "Thank you for registering. Please check your e-mail. You'll need to click the activation link we just sent you before your registration is complete." # features/step_definitions/web_steps.rb:256
Then "[email protected]" should receive an email # features/step_definitions/email_steps.rb:51
When "[email protected]" opens the email # features/step_definitions/email_steps.rb:76
And they click the first link in the email # features/step_definitions/email_steps.rb:182
Then I follow "My Account" # features/step_definitions/web_steps.rb:169
Then I fill in "user_group_tax_id" with "1234567890" # features/step_definitions/web_steps.rb:174
Then I fill in "user_group_check_payable_to" with "Santa Clause" # features/step_definitions/web_steps.rb:174
And I select "United States" from "user_address_attributes_country" # features/step_definitions/web_steps.rb:203
Then I press "Save" # features/step_definitions/web_steps.rb:164
Then I should see "Your profile was successfully updated" # features/step_definitions/web_steps.rb:256
Then I follow "My Account" # features/step_definitions/web_steps.rb:169
@selenium
Scenario: As a publisher, when viewing a PO that has been deleted or removed, I want to see a notice that states "We are not able to locate an active offer from the information provided. Your offer could have been recended or the link is invalid. Please contact <link to support> if you believe this was an error." # features/publisher_site_offers.feature:439
And I have these campaigns with these site allocations: # features/step_definitions/site_allocation_steps.rb:1
[1]
[1]
| Department | Campaign Name | Site Name | Number of Zones | Number of Flights |
| Display | Campaign 0 | Site 0 | 3 | 2 |
| Display | Campaign 0 | Site 1 | 3 | 2 |
When I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
Then I follow "Sites" within "#context_menu" # features/step_definitions/web_steps.rb:169
When I check "site_0_select" # features/step_definitions/web_steps.rb:208
When I check "site_1_select" # features/step_definitions/web_steps.rb:208
And I follow "Send Offer" # features/step_definitions/web_steps.rb:169
And there are no delayed jobs # features/step_definitions/delayed_job_steps.rb:1
And a clear email queue # features/step_definitions/email_steps.rb:43
And I press "Send" # features/step_definitions/web_steps.rb:164
Then show me the delayed jobs # features/step_definitions/delayed_job_steps.rb:5
#<Delayed::Backend::ActiveRecord::Job id: 13, priority: 0, attempts: 0, handler: "--- !ruby/object:Delayed::PerformableMethod\nobject:...", last_error: nil, run_at: "2010-09-15 09:30:19", locked_at: nil, failed_at: nil, locked_by: nil, created_at: "2010-09-15 09:30:19", updated_at: "2010-09-15 09:30:19">
"--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:SiteAllocation\n attributes:\n id: 1\n start_date: 2010-09-15\n end_date: 2010-10-15\n geo: \n total_delivery: 1000000\n delivery_notes: \n created_at: 2010-09-15 15:00:12.000000000 +05:30\n updated_at: 2010-09-15 15:00:19.953123399 +05:30\n offer_id: 1\n campaign_site_id: 1\n rate_type: CPM\n name: Site Allocation 176\n cancellation_policy: 1 business day\n frequency_cap: \n custom_geo: \n custom_dimensions_1: \n custom_dimensions_2: \n custom_dimensions_3: \n active: 0\n default_rate: 0.5\n make_zones_for_products: '1'\n make_zones_for_geo_targets: \n make_zones_for_custom_1: \n make_zones_for_custom_2: \n make_zones_for_custom_3: \n capped_ads_only: \n app_version: 4.0\n only_this_campaign: \nmethod_name: :after_save_callbacks_without_delay\nargs: []\n"
#<Delayed::Backend::ActiveRecord::Job id: 14, priority: 0, attempts: 0, handler: "--- !ruby/object:Delayed::PerformableMethod\nobject:...", last_error: nil, run_at: "2010-09-15 09:30:20", locked_at: nil, failed_at: nil, locked_by: nil, created_at: "2010-09-15 09:30:20", updated_at: "2010-09-15 09:30:20">
"--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:SiteAllocation\n attributes:\n id: 2\n start_date: 2010-09-15\n end_date: 2010-10-15\n geo: \n total_delivery: 1000000\n delivery_notes: \n created_at: 2010-09-15 15:00:12.000000000 +05:30\n updated_at: 2010-09-15 15:00:20.001465672 +05:30\n offer_id: 1\n campaign_site_id: 1\n rate_type: CPM\n name: Site Allocation 177\n cancellation_policy: 1 business day\n frequency_cap: \n custom_geo: \n custom_dimensions_1: \n custom_dimensions_2: \n custom_dimensions_3: \n active: 0\n default_rate: 0.5\n make_zones_for_products: '1'\n make_zones_for_geo_targets: \n make_zones_for_custom_1: \n make_zones_for_custom_2: \n make_zones_for_custom_3: \n capped_ads_only: \n app_version: 4.0\n only_this_campaign: \nmethod_name: :after_save_callbacks_without_delay\nargs: []\n"
#<Delayed::Backend::ActiveRecord::Job id: 15, priority: 0, attempts: 0, handler: "--- !ruby/object:Delayed::PerformableMethod\nobject:...", last_error: nil, run_at: "2010-09-15 09:30:20", locked_at: nil, failed_at: nil, locked_by: nil, created_at: "2010-09-15 09:30:20", updated_at: "2010-09-15 09:30:20">
"--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:SiteAllocation\n attributes:\n id: 3\n start_date: 2010-09-15\n end_date: 2010-10-15\n geo: \n total_delivery: 1000000\n delivery_notes: \n created_at: 2010-09-15 15:00:12.000000000 +05:30\n updated_at: 2010-09-15 15:00:20.017139240 +05:30\n offer_id: 1\n campaign_site_id: 2\n rate_type: CPM\n name: Site Allocation 178\n cancellation_policy: 1 business day\n frequency_cap: \n custom_geo: \n custom_dimensions_1: \n custom_dimensions_2: \n custom_dimensions_3: \n active: 0\n default_rate: 0.5\n make_zones_for_products: '1'\n make_zones_for_geo_targets: \n make_zones_for_custom_1: \n make_zones_for_custom_2: \n make_zones_for_custom_3: \n capped_ads_only: \n app_version: 4.0\n only_this_campaign: \nmethod_name: :after_save_callbacks_without_delay\nargs: []\n"
#<Delayed::Backend::ActiveRecord::Job id: 16, priority: 0, attempts: 0, handler: "--- !ruby/object:Delayed::PerformableMethod\nobject:...", last_error: nil, run_at: "2010-09-15 09:30:20", locked_at: nil, failed_at: nil, locked_by: nil, created_at: "2010-09-15 09:30:20", updated_at: "2010-09-15 09:30:20">
"--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:SiteAllocation\n attributes:\n id: 4\n start_date: 2010-09-15\n end_date: 2010-10-15\n geo: \n total_delivery: 1000000\n delivery_notes: \n created_at: 2010-09-15 15:00:13.000000000 +05:30\n updated_at: 2010-09-15 15:00:20.031930065 +05:30\n offer_id: 1\n campaign_site_id: 2\n rate_type: CPM\n name: Site Allocation 179\n cancellation_policy: 1 business day\n frequency_cap: \n custom_geo: \n custom_dimensions_1: \n custom_dimensions_2: \n custom_dimensions_3: \n active: 0\n default_rate: 0.5\n make_zones_for_products: '1'\n make_zones_for_geo_targets: \n make_zones_for_custom_1: \n make_zones_for_custom_2: \n make_zones_for_custom_3: \n capped_ads_only: \n app_version: 4.0\n only_this_campaign: \nmethod_name: :after_save_callbacks_without_delay\nargs: []\n"
#<Delayed::Backend::ActiveRecord::Job id: 17, priority: 0, attempts: 0, handler: "--- !ruby/object:Delayed::PerformableMailer\nobject:...", last_error: nil, run_at: "2010-09-15 09:30:20", locked_at: nil, failed_at: nil, locked_by: nil, created_at: "2010-09-15 09:30:20", updated_at: "2010-09-15 09:30:20">
"--- !ruby/object:Delayed::PerformableMailer\nobject: !ruby/class 'OfferMailer'\nmethod_name: :offer\nargs:\n- 1\n- 2\n"
Then 1 delayed job objects should exist # features/step_definitions/delayed_job_steps.rb:15
expected: 1
got: 5 (using ==) (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/delayed_job_steps.rb:16:in `/^(\d+) delayed job objects should exist$/'
features/publisher_site_offers.feature:453:in `Then 1 delayed job objects should exist'
Then all delayed jobs are run # features/step_definitions/delayed_job_steps.rb:24
Then 0 delayed job objects should exist # features/step_definitions/delayed_job_steps.rb:15
Then I follow "Offers" within "#context_menu" # features/step_definitions/web_steps.rb:169
When I check "publisher_0_select" # features/step_definitions/web_steps.rb:208
When I mouse over the offers table more actions link # features/step_definitions/web_steps.rb:428
And I confirm a js popup on the next step # features/step_definitions/web_steps.rb:445
Then I follow "Delete" # features/step_definitions/web_steps.rb:169
And I log out # features/step_definitions/user_steps.rb:67
Then "[email protected]" should receive an email # features/step_definitions/email_steps.rb:51
When "[email protected]" opens the email # features/step_definitions/email_steps.rb:76
When I follow "To accept this offer click here" in the email # features/step_definitions/email_steps.rb:178
Then I should see "We are not able to locate an active offer from the information provided." # features/step_definitions/web_steps.rb:256
Feature: Report Reader View Delivery Reports
Report Reader must be able to view Delivery Reports
Background: # features/rr_delivery_reports.feature:4
Given loaded fixtures # features/step_definitions/object_steps.rb:222
Given reportable data exists # features/step_definitions/object_steps.rb:95
And I am logged in as report_admin user bob who belongs to the Display department # features/step_definitions/user_steps.rb:59
When I follow "Reports" within "#tabs" # features/step_definitions/web_steps.rb:169
@selenium
Scenario: Report Reader views Reports # features/rr_delivery_reports.feature:12
Then I should see a link for "ABL Report" # features/step_definitions/web_steps.rb:237
Then I should see a link for "GP Report" # features/step_definitions/web_steps.rb:237
Then I should see a link for "Rep Manager Sales Report" # features/step_definitions/web_steps.rb:237
Then I should see a link for "Pacing Report" # features/step_definitions/web_steps.rb:237
Then I should see a link for "Rep Sales Report" # features/step_definitions/web_steps.rb:237
Then I should see a link for "Delivery Report Template 1" # features/step_definitions/web_steps.rb:237
# Then show me the page
@selenium
Scenario: Report Reader creates and remembers a report # features/rr_delivery_reports.feature:23
When I follow "Delivery Report Template 1" # features/step_definitions/web_steps.rb:169
And I fill in "delivery_report_name" with "My Delivery Report" # features/step_definitions/web_steps.rb:174
And I check "delivery_report_active" # features/step_definitions/web_steps.rb:208
And the "filters_date_range" field within "#filters_date_range_input" should be selected for "Yesterday" # features/step_definitions/web_steps.rb:360
And I press "Save" # features/step_definitions/web_steps.rb:164
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "My Delivery Report" within "#mainTitle" # features/step_definitions/web_steps.rb:256
Unable to find css "#mainTitle" (Capybara::ElementNotFound)
(eval):2:in `find'
./features/step_definitions/web_steps.rb:153:in `with_scope'
./features/step_definitions/web_steps.rb:257:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
features/rr_delivery_reports.feature:30:in `And I should see "My Delivery Report" within "#mainTitle"'
When I follow "Reports" within "#subnav" # features/step_definitions/web_steps.rb:169
Then I follow "View All" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Then I should see a link for "My Delivery Report" within "tr.odd" # features/step_definitions/web_steps.rb:237
@selenium
Scenario: Report Reader edits a report # features/rr_delivery_reports.feature:37
When I follow "Delivery Report Template 1" # features/step_definitions/web_steps.rb:169
And I fill in "delivery_report_name" with "My Delivery Report" # features/step_definitions/web_steps.rb:174
And I check "delivery_report_active" # features/step_definitions/web_steps.rb:208
And the "filters_date_range" field within "#filters_date_range_input" should be selected for "Yesterday" # features/step_definitions/web_steps.rb:360
And I press "Save" # features/step_definitions/web_steps.rb:164
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "My Delivery Report" within "#mainTitle" # features/step_definitions/web_steps.rb:256
When I follow "Reports" within "#subnav" # features/step_definitions/web_steps.rb:169
Then I follow "View All" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Then I should see a link for "My Delivery Report" within "tr.odd" # features/step_definitions/web_steps.rb:237
When I follow "My Delivery Report" # features/step_definitions/web_steps.rb:169
Then I should see "My Delivery Report" within "#mainTitle" # features/step_definitions/web_steps.rb:256
When I follow "Edit" # features/step_definitions/web_steps.rb:169
And I fill in "delivery_report_name" with "My Edited Delivery Report" # features/step_definitions/web_steps.rb:174
And I press "Save" # features/step_definitions/web_steps.rb:164
Then I should see "Report was successfully updated" # features/step_definitions/web_steps.rb:256
And I should see "My Edited Delivery Report" within "#mainTitle" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: Report Reader runs a report # features/rr_delivery_reports.feature:59
When I follow "Delivery Report Template 1" # features/step_definitions/web_steps.rb:169
And I fill in "delivery_report_name" with "My Delivery Report" # features/step_definitions/web_steps.rb:174
And I check "delivery_report_active" # features/step_definitions/web_steps.rb:208
And the "filters_date_range" field within "#filters_date_range_input" should be selected for "Yesterday" # features/step_definitions/web_steps.rb:360
And I press "Save" # features/step_definitions/web_steps.rb:164
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "My Delivery Report" within "#mainTitle" # features/step_definitions/web_steps.rb:256
When I follow "Reports" within "#subnav" # features/step_definitions/web_steps.rb:169
Then I follow "View All" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Then I should see a link for "My Delivery Report" within "tr.odd" # features/step_definitions/web_steps.rb:237
When I follow "My Delivery Report" # features/step_definitions/web_steps.rb:169
Then I should see "My Delivery Report" within "#mainTitle" # features/step_definitions/web_steps.rb:256
When I follow "Edit" # features/step_definitions/web_steps.rb:169
Then I follow "Run" # features/step_definitions/web_steps.rb:169
@selenium
Scenario: Report Reader copies a report # features/rr_delivery_reports.feature:77
When I follow "Delivery Report Template 1" # features/step_definitions/web_steps.rb:169
And I fill in "delivery_report_name" with "My Delivery Report" # features/step_definitions/web_steps.rb:174
And I check "delivery_report_active" # features/step_definitions/web_steps.rb:208
And the "filters_date_range" field within "#filters_date_range_input" should be selected for "Yesterday" # features/step_definitions/web_steps.rb:360
And I press "Save" # features/step_definitions/web_steps.rb:164
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "My Delivery Report" within "#mainTitle" # features/step_definitions/web_steps.rb:256
When I follow "Reports" within "#subnav" # features/step_definitions/web_steps.rb:169
Then I follow "View All" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Then I should see a link for "My Delivery Report" within "tr.odd" # features/step_definitions/web_steps.rb:237
When I follow "My Delivery Report" # features/step_definitions/web_steps.rb:169
Then I should see "My Delivery Report" within "#mainTitle" # features/step_definitions/web_steps.rb:256
When I follow "Copy" # features/step_definitions/web_steps.rb:169
And I fill in "delivery_report_name" with "My Copied Delivery Report" # features/step_definitions/web_steps.rb:174
And I press "Save" # features/step_definitions/web_steps.rb:164
Then I should see "My Copied Delivery Report" within "#mainTitle" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: Report Reader forgets a report # features/rr_delivery_reports.feature:97
When I follow "Delivery Report Template 1" # features/step_definitions/web_steps.rb:169
And I fill in "delivery_report_name" with "My Delivery Report" # features/step_definitions/web_steps.rb:174
And I check "delivery_report_active" # features/step_definitions/web_steps.rb:208
And the "filters_date_range" field within "#filters_date_range_input" should be selected for "Yesterday" # features/step_definitions/web_steps.rb:360
And I press "Save" # features/step_definitions/web_steps.rb:164
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "My Delivery Report" within "#mainTitle" # features/step_definitions/web_steps.rb:256
When I follow "Reports" within "#subnav" # features/step_definitions/web_steps.rb:169
Then I follow "View All" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Then I should see a link for "My Delivery Report" within "tr.odd" # features/step_definitions/web_steps.rb:237
When I follow "My Delivery Report" # features/step_definitions/web_steps.rb:169
Then I should see "My Delivery Report" within "#mainTitle" # features/step_definitions/web_steps.rb:256
And I confirm a js popup on the next step # features/step_definitions/web_steps.rb:445
When I follow "Forget" # features/step_definitions/web_steps.rb:169
Then I should not see a link for "My Delivery Report" within "tr.odd" # features/step_definitions/web_steps.rb:246
@selenium
Scenario: Report Reader can view a MTD Pacing Report # features/rr_delivery_reports.feature:116
When I follow "Pacing Report" # features/step_definitions/web_steps.rb:169
And I fill in "delivery_report_name" with "MTD Pacing Report" # features/step_definitions/web_steps.rb:174
And I check "delivery_report_active" # features/step_definitions/web_steps.rb:208
And the "filters_date_range" field within "#filters_date_range_input" should be selected for "Yesterday" # features/step_definitions/web_steps.rb:360
And I press "Save" # features/step_definitions/web_steps.rb:164
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "Premium / Volume" # features/step_definitions/web_steps.rb:256
Then I should see "Department" # features/step_definitions/web_steps.rb:256
Then I should see "Campaign" # features/step_definitions/web_steps.rb:256
Then I should see "Revenue" # features/step_definitions/web_steps.rb:256
Then I should see "Profit" # features/step_definitions/web_steps.rb:256
And I should see "MTD Pacing Report" within "#mainTitle" # features/step_definitions/web_steps.rb:256
When I follow "Edit" # features/step_definitions/web_steps.rb:169
Then I select "This Month" from "filters_date_range" # features/step_definitions/web_steps.rb:203
And I press "Save" # features/step_definitions/web_steps.rb:164
When I follow "Reports" within "#subnav" # features/step_definitions/web_steps.rb:169
Then I follow "View All" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Then I should see a link for "MTD Pacing Report" within "tr.odd" # features/step_definitions/web_steps.rb:237
@selenium
Scenario: Report Reader can view a Weekly Sales Report # features/rr_delivery_reports.feature:138
When I follow "Rep Sales Report" # features/step_definitions/web_steps.rb:169
And I fill in "delivery_report_name" with "WeeklySalesReport" # features/step_definitions/web_steps.rb:174
And I check "delivery_report_active" # features/step_definitions/web_steps.rb:208
And the "filters_date_range" field within "#filters_date_range_input" should be selected for "Yesterday" # features/step_definitions/web_steps.rb:360
And I press "Save" # features/step_definitions/web_steps.rb:164
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "Campaign" # features/step_definitions/web_steps.rb:256
Then I should see "Product" # features/step_definitions/web_steps.rb:256
Then I should see "Revenue" # features/step_definitions/web_steps.rb:256
And I should see "WeeklySalesReport" within "#mainTitle" # features/step_definitions/web_steps.rb:256
When I follow "Edit" # features/step_definitions/web_steps.rb:169
Then I select "Past Week" from "filters_date_range" # features/step_definitions/web_steps.rb:203
And I press "Save" # features/step_definitions/web_steps.rb:164
When I follow "Reports" within "#subnav" # features/step_definitions/web_steps.rb:169
Then I follow "View All" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Then I should see a link for "WeeklySalesReport" within "tr.odd" # features/step_definitions/web_steps.rb:237
@selenium
Scenario: Report Reader can view a GP Report # features/rr_delivery_reports.feature:158
When I follow "GP Report" # features/step_definitions/web_steps.rb:169
And I fill in "delivery_report_name" with "GPReport" # features/step_definitions/web_steps.rb:174
And I check "delivery_report_active" # features/step_definitions/web_steps.rb:208
And the "filters_date_range" field within "#filters_date_range_input" should be selected for "Yesterday" # features/step_definitions/web_steps.rb:360
And I press "Save" # features/step_definitions/web_steps.rb:164
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "Premium / Volume" # features/step_definitions/web_steps.rb:256
Then I should see "Core / Synergy" # features/step_definitions/web_steps.rb:256
Then I should see "Department" # features/step_definitions/web_steps.rb:256
Then I should see "Revenue" # features/step_definitions/web_steps.rb:256
Then I should see "Cost" # features/step_definitions/web_steps.rb:256
Then I should see "Overhead" # features/step_definitions/web_steps.rb:256
Then I should see "Gross Profit" # features/step_definitions/web_steps.rb:256
Then I should see "Gross Profit Margin" # features/step_definitions/web_steps.rb:256
And I should see "GPReport" within "#mainTitle" # features/step_definitions/web_steps.rb:256
When I follow "Edit" # features/step_definitions/web_steps.rb:169
Then I select "This Month" from "filters_date_range" # features/step_definitions/web_steps.rb:203
And I press "Save" # features/step_definitions/web_steps.rb:164
When I follow "Reports" within "#subnav" # features/step_definitions/web_steps.rb:169
Then I follow "View All" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Then I should see a link for "GPReport" within "tr.odd" # features/step_definitions/web_steps.rb:237
@selenium
Scenario: Report Reader can view a Rep Manager Sales Report # features/rr_delivery_reports.feature:184
When I follow "Rep Manager Sales Report" # features/step_definitions/web_steps.rb:169
And I fill in "delivery_report_name" with "RepManagerSalesReport" # features/step_definitions/web_steps.rb:174
And I check "delivery_report_active" # features/step_definitions/web_steps.rb:208
And the "filters_date_range" field within "#filters_date_range_input" should be selected for "Yesterday" # features/step_definitions/web_steps.rb:360
And I press "Save" # features/step_definitions/web_steps.rb:164
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "Sales Reps" # features/step_definitions/web_steps.rb:256
Then I should see "Campaign" # features/step_definitions/web_steps.rb:256
Then I should see "Product" # features/step_definitions/web_steps.rb:256
Then I should see "Revenue" # features/step_definitions/web_steps.rb:256
And I should see "RepManagerSalesReport" within "#mainTitle" # features/step_definitions/web_steps.rb:256
When I follow "Edit" # features/step_definitions/web_steps.rb:169
Then I select "Past Week" from "filters_date_range" # features/step_definitions/web_steps.rb:203
And I press "Save" # features/step_definitions/web_steps.rb:164
When I follow "Reports" within "#subnav" # features/step_definitions/web_steps.rb:169
Then I follow "View All" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Then I should see a link for "RepManagerSalesReport" within "tr.odd" # features/step_definitions/web_steps.rb:237
@selenium
Scenario: Report Reader can view a ABL Report # features/rr_delivery_reports.feature:205
When I follow "ABL Report" # features/step_definitions/web_steps.rb:169
And I fill in "delivery_report_name" with "ABLReport" # features/step_definitions/web_steps.rb:174
And I check "delivery_report_active" # features/step_definitions/web_steps.rb:208
And the "filters_date_range" field within "#filters_date_range_input" should be selected for "Yesterday" # features/step_definitions/web_steps.rb:360
And I press "Save" # features/step_definitions/web_steps.rb:164
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "ABLReport" within "#mainTitle" # features/step_definitions/web_steps.rb:256
Then I should see "Account Executive" # features/step_definitions/web_steps.rb:256
Then I should see "Account Manager" # features/step_definitions/web_steps.rb:256
Then I should see "Media Buyer" # features/step_definitions/web_steps.rb:256
Then I should see "Campaign" # features/step_definitions/web_steps.rb:256
Then I should see "Client" # features/step_definitions/web_steps.rb:256
Then I should see "Revenue" # features/step_definitions/web_steps.rb:256
Then I should see "Delivered Yesterday" # features/step_definitions/web_steps.rb:256
Feature: Site Profiler Create Sites Profiles
Site Profiler must be able to create and manage site profiles (publisher survey)
Background: # features/sp_site_profiles.feature:4
Given loaded fixtures # features/step_definitions/object_steps.rb:222
Given reportable data exists # features/step_definitions/object_steps.rb:95
And I am logged in as site_profiler user bob who belongs to the Display department # features/step_definitions/user_steps.rb:59
Then I follow "Sites" within "#tabs" # features/step_definitions/web_steps.rb:169
@selenium
Scenario: As a Site Profiler I can create a profile for an existing site # features/sp_site_profiles.feature:12
Then I follow "Site 0" within "#mainContent" # features/step_definitions/web_steps.rb:169
Then I follow "Profile" within "#contentNav" # features/step_definitions/web_steps.rb:169
Then I fill in "site_contact_name" with "Contact 0" # features/step_definitions/web_steps.rb:174
Then I fill in "site_contact_email" with "[email protected]" # features/step_definitions/web_steps.rb:174
Then I press "Save" # features/step_definitions/web_steps.rb:164
Then I should see "Site Profile was successfully updated" within "#flash" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a Site Profiler I want to see a percentage completion for site profiles # features/sp_site_profiles.feature:22
Then I follow "Site 0" within "#mainContent" # features/step_definitions/web_steps.rb:169
Then I follow "Profile" within "#contentNav" # features/step_definitions/web_steps.rb:169
Then I fill in "site_contact_name" with "Contact 0" # features/step_definitions/web_steps.rb:174
Then I fill in "site_contact_email" with "[email protected]" # features/step_definitions/web_steps.rb:174
Then I press "Save" # features/step_definitions/web_steps.rb:164
Then I should see "Site Profile was successfully updated" within "#flash" # features/step_definitions/web_steps.rb:256
Then I follow "Sites" within "#tabs" # features/step_definitions/web_steps.rb:169
Then I should see a link for "16.667%" within "#mainContent" # features/step_definitions/web_steps.rb:237
Then I follow "Site 0" within "#mainContent" # features/step_definitions/web_steps.rb:169
Then I should see a link for "Profile (16.667%)" within "#contentNav" # features/step_definitions/web_steps.rb:237
@selenium
Scenario: As a Site Profiler I want to be able to assign one to many categories for a site # features/sp_site_profiles.feature:36
Then I follow "Site 0" within "#mainContent" # features/step_definitions/web_steps.rb:169
Then I follow "Profile" within "#contentNav" # features/step_definitions/web_steps.rb:169
Then I should see "Site 0" # features/step_definitions/web_steps.rb:256
Then I fill in "site_contact_name" with "Contact 0" # features/step_definitions/web_steps.rb:174
Then I fill in "site_contact_email" with "[email protected]" # features/step_definitions/web_steps.rb:174
Then I check "Men" within "#categories_list" # features/step_definitions/web_steps.rb:208
Then I check "Dating" within "#categories_list" # features/step_definitions/web_steps.rb:208
Then I check "African American" within "#categories_list" # features/step_definitions/web_steps.rb:208
Then I check "Moms" within "#categories_list" # features/step_definitions/web_steps.rb:208
Then I press "Save" # features/step_definitions/web_steps.rb:164
Then I should see "Site Profile was successfully updated" within "#flash" # features/step_definitions/web_steps.rb:256
Then I follow "Profile" within "#contentNav" # features/step_definitions/web_steps.rb:169
Feature: Sales Rep Create Campaign
Sales Rep must be able to create but not manage proposals
Background: # features/sr_media_plan_requests.feature:4
Given loaded fixtures # features/step_definitions/object_steps.rb:222
Given reportable data exists # features/step_definitions/object_steps.rb:95
Given an active user named am # features/step_definitions/user_steps.rb:1
Given user am belongs to the account_manager user role # features/step_definitions/user_steps.rb:71
Given I have these markets: # features/step_definitions/market_steps.rb:1
| Call Sign |
| Market 1 |
| Market 2 |
| Market 3 |
Given I have these companies: # features/step_definitions/company_steps.rb:1
| Name | Internal |
| RMM | true |
| LIN | true |
| Petry | true |
Given I have these sales reps: # features/step_definitions/sales_rep_steps.rb:2
| Company | Name | Initials | Email | Phone | Manager |
| RMM | Sales Rep 1 | SR1 | [email protected] | 512-123-1234 | [email protected] |
| LIN | Sales Rep 2 | SR2 | [email protected] | 512-123-1235 | [email protected] |
| Petry | Sales Rep 3 | SR3 | [email protected] | 512-123-1236 | [email protected] |
Given I am logged in as sales_rep user bob who belongs to the Display department # features/step_definitions/user_steps.rb:59
Given user bob can access market Market 1 # features/step_definitions/user_steps.rb:114
Given user bob can access market Market 2 # features/step_definitions/user_steps.rb:114
Given user bob can access market Market 3 # features/step_definitions/user_steps.rb:114
Given user bob can access sales rep Sales Rep 1 # features/step_definitions/user_steps.rb:120
Given user bob can access sales rep Sales Rep 2 # features/step_definitions/user_steps.rb:120
Given user bob can access sales rep Sales Rep 3 # features/step_definitions/user_steps.rb:120
When I follow "Sales" within "#tabs" # features/step_definitions/web_steps.rb:169
Then I follow "Proposals" within "#subnav" # features/step_definitions/web_steps.rb:169
@selenium
Scenario: As a Sales Rep, when creating a proposal, I want to be able to specify the creative pricing model # features/sr_media_plan_requests.feature:37
Then I follow "New" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Then I select "Sales Rep 1" from "media_plan_request_sales_rep_id" # features/step_definitions/web_steps.rb:203
And I select "Region 0 - Market 1" from "media_plan_request_market_id" # features/step_definitions/web_steps.rb:203
And I fill in "media_plan_request_name" with "My Super Awesome Campaign" # features/step_definitions/web_steps.rb:174
And I select "50%" from "media_plan_request_confidence" # features/step_definitions/web_steps.rb:203
And I fill in "media_plan_request_due_on" with "2012-01-01" # features/step_definitions/web_steps.rb:174
And I select "Display" from "media_plan_request_department_id" # features/step_definitions/web_steps.rb:203
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I check "Agency (large)" # features/step_definitions/web_steps.rb:208
And I fill in "media_plan_request_notes" with "My Amazing Proposal Note goes here" # features/step_definitions/web_steps.rb:174
And I fill in "media_plan_request_flight_start" with "2012-01-01" # features/step_definitions/web_steps.rb:174
And I fill in "media_plan_request_budget" with "1000000" # features/step_definitions/web_steps.rb:174
And I choose "media_plan_request_client_rate_type_net" # features/step_definitions/web_steps.rb:218
And I check "media_plan_request_budget_estimate_rate_type_cpm" # features/step_definitions/web_steps.rb:208
And I choose "media_plan_request_creative_pricing_line_item" # features/step_definitions/web_steps.rb:218
And I choose "media_plan_request_creative_provider_rmm" # features/step_definitions/web_steps.rb:218
And I choose "media_plan_request_hosting_provider_rmm" # features/step_definitions/web_steps.rb:218
And I press "Submit Request" # features/step_definitions/web_steps.rb:164
Then I should see "Successfully created media plan request" within "#flash" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a sales rep I can filter the media plan requests # features/sr_media_plan_requests.feature:61
Given I have these media plan requests: # features/step_definitions/media_plan_request_steps.rb:1
| Department | Sales Rep |
| Display | Sales Rep 1 |
| Display | Sales Rep 2 |
Then I follow "Proposals" within "#subnav" # features/step_definitions/web_steps.rb:169
Feature: Admin manage Advertiser Creatives
Admins must be able to manage advertiser creatives
Background: # features/su_advertiser_creatives.feature:4
Given loaded fixtures # features/step_definitions/object_steps.rb:222
Given reportable data exists # features/step_definitions/object_steps.rb:95
Given I am logged in as super user bob # features/step_definitions/user_steps.rb:53
When I follow "Campaigns" within "#tabs" # features/step_definitions/web_steps.rb:169
When I follow "Advertisers" within "#subnav" # features/step_definitions/web_steps.rb:169
When I follow "Advertiser 0" # features/step_definitions/web_steps.rb:169
Then I follow "Creatives" # features/step_definitions/web_steps.rb:169
Scenario: Administrator views Advertiser Creatives # features/su_advertiser_creatives.feature:14
Feature: Admin Ad Blocks
Admins must be able to create
Background: # features/su_advertiser_order_ad_blocks.feature:4
Given loaded fixtures # features/step_definitions/object_steps.rb:222
Given reportable data exists # features/step_definitions/object_steps.rb:95
Given I am logged in as super user bob # features/step_definitions/user_steps.rb:53
When I follow "Campaigns" within "#tabs" # features/step_definitions/web_steps.rb:169
When I follow "Advertisers" within "#subnav" # features/step_definitions/web_steps.rb:169
When I follow "Advertiser 0" within "#mainContent" # features/step_definitions/web_steps.rb:169
When I follow "Orders" within "#context_menu" # features/step_definitions/web_steps.rb:169
When I follow "Order 0" within "#mainContent" # features/step_definitions/web_steps.rb:169
Feature: Admin Ad Deployment
Admins must be able to create Campaigns
Background: # features/su_advertiser_order_ad_deployment.feature:4
Given loaded fixtures # features/step_definitions/object_steps.rb:222
Given reportable data exists # features/step_definitions/object_steps.rb:95
Given I am logged in as super user bob # features/step_definitions/user_steps.rb:53
When I follow "Campaigns" within "#tabs" # features/step_definitions/web_steps.rb:169
When I follow "Advertisers" within "#subnav" # features/step_definitions/web_steps.rb:169
When I follow "Advertiser 0" within "#mainContent" # features/step_definitions/web_steps.rb:169
When I follow "Orders" within "#context_menu" # features/step_definitions/web_steps.rb:169
When I follow "Order 0" within "#mainContent" # features/step_definitions/web_steps.rb:169
When I follow "Ads" within "#context_menu" # features/step_definitions/web_steps.rb:169
Then show me the page # features/step_definitions/web_steps.rb:436
When I follow "Ad 0" within "#mainContent" # features/step_definitions/web_steps.rb:169
When I follow "Deployment" within "#context_menu" # features/step_definitions/web_steps.rb:169
@selenium
Scenario: Administrator filters sites to add to Ad deployments # features/su_advertiser_order_ad_deployment.feature:27
Then I follow "Modify Deployment" within "#contentNav" # features/step_definitions/web_steps.rb:169
Then I follow "Sites" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
And I fill in "search" with "site" # features/step_definitions/web_steps.rb:174
Element is not currently visible and so may not be interacted with (Selenium::WebDriver::Error::ElementNotVisibleError)
[remote server] file:///tmp/webdriver-profile20100915-22481-x5pm3k/extensions/[email protected]/components/command_processor.js:5865:in `unknown'
[remote server] file:///tmp/webdriver-profile20100915-22481-x5pm3k/extensions/[email protected]/components/command_processor.js:9903:in `unknown'
[remote server] file:///tmp/webdriver-profile20100915-22481-x5pm3k/extensions/[email protected]/components/command_processor.js:9924:in `unknown'
[remote server] file:///tmp/webdriver-profile20100915-22481-x5pm3k/extensions/[email protected]/components/command_processor.js:9929:in `unknown'
[remote server] file:///tmp/webdriver-profile20100915-22481-x5pm3k/extensions/[email protected]/components/command_processor.js:9875:in `unknown'
(eval):2:in `fill_in'
./features/step_definitions/web_steps.rb:176:in `block (2 levels) in <top (required)>'
./features/step_definitions/web_steps.rb:153:in `with_scope'
./features/step_definitions/web_steps.rb:175:in `/^(?:|I )fill in "([^"]*)" with "([^"]*)"(?: within "([^"]*)")?$/'
features/su_advertiser_order_ad_deployment.feature:30:in `And I fill in "search" with "site"'
And I should see "Site 0" within "#sites" # features/step_definitions/web_steps.rb:256
And I should see "Site 1" within "#sites" # features/step_definitions/web_steps.rb:256
And I should see "Site 2" within "#sites" # features/step_definitions/web_steps.rb:256
And I should see "Site 3" within "#sites" # features/step_definitions/web_steps.rb:256
And I should see "Site 4" within "#sites" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: Administrator filters sites to add to Ad deployments # features/su_advertiser_order_ad_deployment.feature:39
Then I follow "Modify Deployment" within "#contentNav" # features/step_definitions/web_steps.rb:169
Then I follow "Sites" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
And I fill in "search" with "si" # features/step_definitions/web_steps.rb:174
Element is not currently visible and so may not be interacted with (Selenium::WebDriver::Error::ElementNotVisibleError)
[remote server] file:///tmp/webdriver-profile20100915-22481-x5pm3k/extensions/[email protected]/components/command_processor.js:5865:in `unknown'
[remote server] file:///tmp/webdriver-profile20100915-22481-x5pm3k/extensions/[email protected]/components/command_processor.js:9903:in `unknown'
[remote server] file:///tmp/webdriver-profile20100915-22481-x5pm3k/extensions/[email protected]/components/command_processor.js:9924:in `unknown'
[remote server] file:///tmp/webdriver-profile20100915-22481-x5pm3k/extensions/[email protected]/components/command_processor.js:9929:in `unknown'
[remote server] file:///tmp/webdriver-profile20100915-22481-x5pm3k/extensions/[email protected]/components/command_processor.js:9875:in `unknown'
(eval):2:in `fill_in'
./features/step_definitions/web_steps.rb:176:in `block (2 levels) in <top (required)>'
./features/step_definitions/web_steps.rb:153:in `with_scope'
./features/step_definitions/web_steps.rb:175:in `/^(?:|I )fill in "([^"]*)" with "([^"]*)"(?: within "([^"]*)")?$/'
features/su_advertiser_order_ad_deployment.feature:42:in `And I fill in "search" with "si"'
Then wait for the page to load # features/step_definitions/web_steps.rb:455
Then I follow "add_site_2" within "#sites" # features/step_definitions/web_steps.rb:169
Then I should see "Site 2" within "#zones" # features/step_definitions/web_steps.rb:256
Then I follow "add_site_3" within "#sites" # features/step_definitions/web_steps.rb:169
Then I should see "Site 3" within "#zones" # features/step_definitions/web_steps.rb:256
Then I follow "add_site_4" within "#sites" # features/step_definitions/web_steps.rb:169
Then I should see "Site 4" within "#zones" # features/step_definitions/web_steps.rb:256
Feature: Admin View Advertisers
Admins must be able to view Advertisers
Background: # features/su_advertisers.feature:4
Given loaded fixtures # features/step_definitions/object_steps.rb:222
Given reportable data exists # features/step_definitions/object_steps.rb:95
Given I am logged in as super user bob # features/step_definitions/user_steps.rb:53
When I follow "Campaigns" within "#tabs" # features/step_definitions/web_steps.rb:169
When I follow "Advertisers" within "#subnav" # features/step_definitions/web_steps.rb:169
Scenario: Administrator views Advertisers # features/su_advertisers.feature:12
Then I should be on the advertisers page # features/step_definitions/web_steps.rb:394
Scenario: When creating Advertiser must enter a name for the advertiser # features/su_advertisers.feature:16
When I follow "New" # features/step_definitions/web_steps.rb:169
Then I should be on the new advertiser page # features/step_definitions/web_steps.rb:394
When I fill in "advertiser_name" with "" # features/step_definitions/web_steps.rb:174
And I press "Save" # features/step_definitions/web_steps.rb:164
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "Name can't be blank" # features/step_definitions/web_steps.rb:256
Feature: Admin View Announcements
In order to keep my finger on the pulse of the application
Admins must be able to view announcement messages
Background: # features/su_announcements.feature:5
Given loaded fixtures # features/step_definitions/object_steps.rb:222
Given reportable data exists # features/step_definitions/object_steps.rb:95
Given I am logged in as super user bob # features/step_definitions/user_steps.rb:53
Scenario: Administrator views announcements # features/su_announcements.feature:11
When I go to the admin page # features/step_definitions/web_steps.rb:161
Then I should be on the users page # features/step_definitions/web_steps.rb:394
When I follow "Announcements" # features/step_definitions/web_steps.rb:169
Then I should be on the announcements page # features/step_definitions/web_steps.rb:394
Feature: Super User Create Campaign
Super User must be able to create Campaigns
Background: # features/su_campaign.feature:4
Given loaded fixtures # features/step_definitions/object_steps.rb:222
Given reportable data exists # features/step_definitions/object_steps.rb:95
And I am logged in as super user bob who belongs to the Display department # features/step_definitions/user_steps.rb:59
When I go to the home page # features/step_definitions/web_steps.rb:161
When I follow "Campaigns" # features/step_definitions/web_steps.rb:169
@selenium
Scenario: As a Super User I am not allowed to create a Campaign without filling in required fields # features/su_campaign.feature:13
When I follow "New" # features/step_definitions/web_steps.rb:169
And I press "Continue" # features/step_definitions/web_steps.rb:164
Then I should see "5 errors" # features/step_definitions/web_steps.rb:256
expected there to be content "5 errors" in "Wiki Support My Account Log out\nCampaigns\nSites\nSales\nAccounting\nReports\nAdmin\nCampaigns\nAdvertisers\nAgencies\nDepartments\nCampaign Surveys\nNew Campaign\nCampaigns\nEdit\nHELP\n3 errors\nName can't be blank\nAdvertiser required\nDepartment required\nDepartment*\nCreative Production\nDisplay\nEmail\nList Management\nMobile\nOnline Publishing\nPPC\nRemnant Banners\nSEM\nSEO\nSocial Media\nVideo Network\nWeb Design\nrequired\nAd server\nDart\nNeuron\nCategory*\nPremium\nVolume\nClient*\nrequired\nCampaign Name*\ncan't be blank\nStart date*\nEnd date*\nYou can't change Department or Client later." (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/web_steps.rb:259:in `block (2 levels) in <top (required)>'
./features/step_definitions/web_steps.rb:153:in `with_scope'
./features/step_definitions/web_steps.rb:257:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
features/su_campaign.feature:16:in `Then I should see "5 errors"'
And I should see "Department required" # features/step_definitions/web_steps.rb:256
And I should see "Name can't be blank" # features/step_definitions/web_steps.rb:256
And I should see "Advertiser required" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a Super User i can view Campaigns # features/su_campaign.feature:23
Then I should see "Campaign 0" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a Super User I must be able to create a Campaign and assign it to a department # features/su_campaign.feature:28
When I follow "Campaigns" # features/step_definitions/web_steps.rb:169
When I follow "New" # features/step_definitions/web_steps.rb:169
When I select "SEM" from "campaign_department_id" # features/step_definitions/web_steps.rb:203
When I fill in "campaign_name" with "Bobs Marketing Blitz" # features/step_definitions/web_steps.rb:174
When I fill in "campaign_advertiser_id" with "adv" # features/step_definitions/web_steps.rb:174
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "Advertiser 0" within "li.ui-menu-item" # features/step_definitions/web_steps.rb:256
expected there to be content "Advertiser 0" in "Create New" (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/web_steps.rb:259:in `block (2 levels) in <top (required)>'
./features/step_definitions/web_steps.rb:153:in `block in with_scope'
./features/step_definitions/web_steps.rb:153:in `with_scope'
./features/step_definitions/web_steps.rb:257:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
features/su_campaign.feature:35:in `And I should see "Advertiser 0" within "li.ui-menu-item"'
When I select "Advertiser 0" from the autocomplete on "#campaign_advertiser_id" # features/step_definitions/web_steps.rb:416
And I fill in "campaign_start_date" with "2010-09-01" # features/step_definitions/web_steps.rb:174
And I fill in "campaign_end_date" with "2010-09-30" # features/step_definitions/web_steps.rb:174
And I press "Continue" # features/step_definitions/web_steps.rb:164
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "Bobs Marketing Blitz" # features/step_definitions/web_steps.rb:256
And I should see "sem campaign" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a Super User I am allowed to create an Advertiser from the create campaign form # features/su_campaign.feature:46
When I follow "Campaigns" # features/step_definitions/web_steps.rb:169
When I follow "New" # features/step_definitions/web_steps.rb:169
When I select "SEM" from "campaign_department_id" # features/step_definitions/web_steps.rb:203
When I fill in "campaign_name" with "Bobs Marketing Blitz" # features/step_definitions/web_steps.rb:174
And I fill in "campaign_start_date" with "2010-09-01" # features/step_definitions/web_steps.rb:174
And I fill in "campaign_end_date" with "2010-09-30" # features/step_definitions/web_steps.rb:174
And I press "Continue" # features/step_definitions/web_steps.rb:164
Then I should see "1 error" # features/step_definitions/web_steps.rb:256
And I should see "Advertiser required" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a Super User I must provide a name to create a Campaign # features/su_campaign.feature:59
When I follow "Campaigns" # features/step_definitions/web_steps.rb:169
When I follow "New" # features/step_definitions/web_steps.rb:169
When I select "SEM" from "campaign_department_id" # features/step_definitions/web_steps.rb:203
When I fill in "campaign_advertiser_id" with "adv" # features/step_definitions/web_steps.rb:174
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "Advertiser 0" # features/step_definitions/web_steps.rb:256
expected there to be content "Advertiser 0" in "Wiki Support My Account Log out\nCampaigns\nSites\nSales\nAccounting\nReports\nAdmin\nCampaigns\nAdvertisers\nAgencies\nDepartments\nCampaign Surveys\nNew Campaign\nCampaigns > New Campaign\nNew Campaign\nHELP\nDepartment*\nCreative Production\nDisplay\nEmail\nList Management\nMobile\nOnline Publishing\nPPC\nRemnant Banners\nSEM\nSEO\nSocial Media\nVideo Network\nWeb Design\nAd server\nDart\nNeuron\nCategory*\nPremium\nVolume\nClient*\nCampaign Name*\nStart date*\nEnd date*\nYou can't change Department or Client later.\nCreate New" (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/web_steps.rb:259:in `block (2 levels) in <top (required)>'
./features/step_definitions/web_steps.rb:153:in `with_scope'
./features/step_definitions/web_steps.rb:257:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
features/su_campaign.feature:65:in `And I should see "Advertiser 0"'
And I should see "Create New" # features/step_definitions/web_steps.rb:256
When I select "Advertiser 0" from the autocomplete on "#campaign_advertiser_id" # features/step_definitions/web_steps.rb:416
And I fill in "campaign_start_date" with "2010-09-01" # features/step_definitions/web_steps.rb:174
And I fill in "campaign_end_date" with "2010-09-30" # features/step_definitions/web_steps.rb:174
And I press "Continue" # features/step_definitions/web_steps.rb:164
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "1 error" # features/step_definitions/web_steps.rb:256
And I should see "Name can't be blank" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a Super User I am allowed to create assign a user to access a campaign # features/su_campaign.feature:77
When I follow "Campaigns" # features/step_definitions/web_steps.rb:169
When I follow "New" # features/step_definitions/web_steps.rb:169
When I select "SEM" from "campaign_department_id" # features/step_definitions/web_steps.rb:203
When I fill in "campaign_name" with "Bobs Marketing Blitz" # features/step_definitions/web_steps.rb:174
When I fill in "campaign_advertiser_id" with "adv" # features/step_definitions/web_steps.rb:174
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "Advertiser 0" within "li.ui-menu-item" # features/step_definitions/web_steps.rb:256
expected there to be content "Advertiser 0" in "Create New" (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/web_steps.rb:259:in `block (2 levels) in <top (required)>'
./features/step_definitions/web_steps.rb:153:in `block in with_scope'
./features/step_definitions/web_steps.rb:153:in `with_scope'
./features/step_definitions/web_steps.rb:257:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
features/su_campaign.feature:84:in `And I should see "Advertiser 0" within "li.ui-menu-item"'
When I select "Advertiser 0" from the autocomplete on "#campaign_advertiser_id" # features/step_definitions/web_steps.rb:416
And I fill in "campaign_start_date" with "2010-09-01" # features/step_definitions/web_steps.rb:174
And I fill in "campaign_end_date" with "2010-09-30" # features/step_definitions/web_steps.rb:174
And I press "Continue" # features/step_definitions/web_steps.rb:164
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "Bobs Marketing Blitz" # features/step_definitions/web_steps.rb:256
When I follow "Users" # features/step_definitions/web_steps.rb:169
And I fill in "object_users_add" with "bob" # features/step_definitions/web_steps.rb:174
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "bob Foo" within "li.ui-menu-item" # features/step_definitions/web_steps.rb:256
When I select "bob Foo" from the autocomplete on "#object_users_add" # features/step_definitions/web_steps.rb:416
Then I should see a link for "bob Foo" within "#object_users" # features/step_definitions/web_steps.rb:237
When I follow "bob Foo" within "#object_users" # features/step_definitions/web_steps.rb:169
Then I should see a link for "Campaign - Bobs Marketing Blitz" # features/step_definitions/web_steps.rb:237
@selenium
Scenario: As a Super User, I want the department's premium/volume default to be assigned to a campaign if none is selected # features/su_campaign.feature:102
When I follow "Campaigns" # features/step_definitions/web_steps.rb:169
When I follow "New" # features/step_definitions/web_steps.rb:169
When I select "Display" from "campaign_department_id" # features/step_definitions/web_steps.rb:203
When I fill in "campaign_name" with "Bobs Marketing Blitz" # features/step_definitions/web_steps.rb:174
When I fill in "campaign_advertiser_id" with "adv" # features/step_definitions/web_steps.rb:174
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "Advertiser 0" within "li.ui-menu-item" # features/step_definitions/web_steps.rb:256
expected there to be content "Advertiser 0" in "Create New" (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/web_steps.rb:259:in `block (2 levels) in <top (required)>'
./features/step_definitions/web_steps.rb:153:in `block in with_scope'
./features/step_definitions/web_steps.rb:153:in `with_scope'
./features/step_definitions/web_steps.rb:257:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
features/su_campaign.feature:109:in `And I should see "Advertiser 0" within "li.ui-menu-item"'
When I select "Advertiser 0" from the autocomplete on "#campaign_advertiser_id" # features/step_definitions/web_steps.rb:416
And I fill in "campaign_start_date" with "2010-09-01" # features/step_definitions/web_steps.rb:174
And I fill in "campaign_end_date" with "2010-09-30" # features/step_definitions/web_steps.rb:174
And I press "Continue" # features/step_definitions/web_steps.rb:164
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "Bobs Marketing Blitz" # features/step_definitions/web_steps.rb:256
Then I should see "premium display campaign" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a Super User, I want to be able to override the department's premium/volume default with a campaign setting of premium/volume # features/su_campaign.feature:120
When I follow "Campaigns" # features/step_definitions/web_steps.rb:169
When I follow "New" # features/step_definitions/web_steps.rb:169
When I select "Display" from "campaign_department_id" # features/step_definitions/web_steps.rb:203
When I fill in "campaign_name" with "Bobs Marketing Blitz" # features/step_definitions/web_steps.rb:174
When I fill in "campaign_advertiser_id" with "adv" # features/step_definitions/web_steps.rb:174
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "Advertiser 0" within "li.ui-menu-item" # features/step_definitions/web_steps.rb:256
expected there to be content "Advertiser 0" in "Create New" (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/web_steps.rb:259:in `block (2 levels) in <top (required)>'
./features/step_definitions/web_steps.rb:153:in `block in with_scope'
./features/step_definitions/web_steps.rb:153:in `with_scope'
./features/step_definitions/web_steps.rb:257:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
features/su_campaign.feature:127:in `And I should see "Advertiser 0" within "li.ui-menu-item"'
When I select "Advertiser 0" from the autocomplete on "#campaign_advertiser_id" # features/step_definitions/web_steps.rb:416
And I fill in "campaign_start_date" with "2010-01-01" # features/step_definitions/web_steps.rb:174
And I fill in "campaign_end_date" with "3010-01-01" # features/step_definitions/web_steps.rb:174
And I press "Continue" # features/step_definitions/web_steps.rb:164
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "Bobs Marketing Blitz" # features/step_definitions/web_steps.rb:256
Then I should see "premium display campaign" # features/step_definitions/web_steps.rb:256
When I choose "campaign_premium_volume_volume" # features/step_definitions/web_steps.rb:218
And I press "Continue" # features/step_definitions/web_steps.rb:164
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "Bobs Marketing Blitz" # features/step_definitions/web_steps.rb:256
Then I should see "volume display campaign" # features/step_definitions/web_steps.rb:256
# And I press "Start Import"
# Then I press "Complete Import"
# Then I should see "You successfully associated 14 sites with this campaign."
# FIXME - created sphinx error on import
@selenium
Scenario: As a Super User, I create a new campaign with a blank order name and order name gets set to default # features/su_campaign.feature:156
When I follow "Campaigns" # features/step_definitions/web_steps.rb:169
When I follow "New" # features/step_definitions/web_steps.rb:169
When I select "Display" from "campaign_department_id" # features/step_definitions/web_steps.rb:203
When I fill in "campaign_name" with "Bobs Marketing Blitz" # features/step_definitions/web_steps.rb:174
When I fill in "campaign_advertiser_id" with "adv" # features/step_definitions/web_steps.rb:174
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "Advertiser 0" within "li.ui-menu-item" # features/step_definitions/web_steps.rb:256
expected there to be content "Advertiser 0" in "Create New" (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/web_steps.rb:259:in `block (2 levels) in <top (required)>'
./features/step_definitions/web_steps.rb:153:in `block in with_scope'
./features/step_definitions/web_steps.rb:153:in `with_scope'
./features/step_definitions/web_steps.rb:257:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
features/su_campaign.feature:163:in `And I should see "Advertiser 0" within "li.ui-menu-item"'
And I select "Advertiser 0" from the autocomplete on "#campaign_advertiser_id" # features/step_definitions/web_steps.rb:416
And I fill in "campaign_start_date" with "2010-09-01" # features/step_definitions/web_steps.rb:174
And I fill in "campaign_end_date" with "2010-09-30" # features/step_definitions/web_steps.rb:174
And I press "Continue" # features/step_definitions/web_steps.rb:164
Then the "campaign_order_name" field should contain "Agency0-Advertiser0-BobsMarketingBlitz-2010-09" # features/step_definitions/web_steps.rb:337
And I fill in "campaign_order_name" with "" # features/step_definitions/web_steps.rb:174
Then I check "Unknown" # features/step_definitions/web_steps.rb:208
Then I check "160x600 Standard" # features/step_definitions/web_steps.rb:208
And I press "Continue" # features/step_definitions/web_steps.rb:164
And I follow "Setup" # features/step_definitions/web_steps.rb:169
Then the "campaign_order_name" field should contain "Agency0-Advertiser0-BobsMarketingBlitz-2010-09" # features/step_definitions/web_steps.rb:337
@selenium
Scenario: As a Super User, I create a new campaign with a default order name and the order name should be saved # features/su_campaign.feature:178
When I follow "Campaigns" # features/step_definitions/web_steps.rb:169
When I follow "New" # features/step_definitions/web_steps.rb:169
When I select "Display" from "campaign_department_id" # features/step_definitions/web_steps.rb:203
When I fill in "campaign_name" with "Bobs Marketing Blitz" # features/step_definitions/web_steps.rb:174
When I fill in "campaign_advertiser_id" with "adv" # features/step_definitions/web_steps.rb:174
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "Advertiser 0" within "li.ui-menu-item" # features/step_definitions/web_steps.rb:256
expected there to be content "Advertiser 0" in "Create New" (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/web_steps.rb:259:in `block (2 levels) in <top (required)>'
./features/step_definitions/web_steps.rb:153:in `block in with_scope'
./features/step_definitions/web_steps.rb:153:in `with_scope'
./features/step_definitions/web_steps.rb:257:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
features/su_campaign.feature:185:in `And I should see "Advertiser 0" within "li.ui-menu-item"'
And I select "Advertiser 0" from the autocomplete on "#campaign_advertiser_id" # features/step_definitions/web_steps.rb:416
And I fill in "campaign_start_date" with "2010-09-01" # features/step_definitions/web_steps.rb:174
And I fill in "campaign_end_date" with "2010-09-30" # features/step_definitions/web_steps.rb:174
And I press "Continue" # features/step_definitions/web_steps.rb:164
Then the "campaign_order_name" field should contain "Agency0-Advertiser0-BobsMarketingBlitz-2010-09" # features/step_definitions/web_steps.rb:337
Then I check "Unknown" # features/step_definitions/web_steps.rb:208
Then I check "160x600 Standard" # features/step_definitions/web_steps.rb:208
And I press "Continue" # features/step_definitions/web_steps.rb:164
And I follow "Setup" # features/step_definitions/web_steps.rb:169
Then the "campaign_order_name" field should contain "Agency0-Advertiser0-BobsMarketingBlitz-2010-09" # features/step_definitions/web_steps.rb:337
@selenium
Scenario: As a Super User, I create a new campaign and enter an order name, the order name should be saved # features/su_campaign.feature:199
When I follow "Campaigns" # features/step_definitions/web_steps.rb:169
When I follow "New" # features/step_definitions/web_steps.rb:169
When I select "Display" from "campaign_department_id" # features/step_definitions/web_steps.rb:203
When I fill in "campaign_name" with "Bobs Marketing Blitz" # features/step_definitions/web_steps.rb:174
When I fill in "campaign_advertiser_id" with "adv" # features/step_definitions/web_steps.rb:174
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "Advertiser 0" within "li.ui-menu-item" # features/step_definitions/web_steps.rb:256
expected there to be content "Advertiser 0" in "Create New" (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/web_steps.rb:259:in `block (2 levels) in <top (required)>'
./features/step_definitions/web_steps.rb:153:in `block in with_scope'
./features/step_definitions/web_steps.rb:153:in `with_scope'
./features/step_definitions/web_steps.rb:257:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
features/su_campaign.feature:206:in `And I should see "Advertiser 0" within "li.ui-menu-item"'
And I select "Advertiser 0" from the autocomplete on "#campaign_advertiser_id" # features/step_definitions/web_steps.rb:416
And I fill in "campaign_start_date" with "2010-09-01" # features/step_definitions/web_steps.rb:174
And I fill in "campaign_end_date" with "2010-09-30" # features/step_definitions/web_steps.rb:174
And I press "Continue" # features/step_definitions/web_steps.rb:164
Then the "campaign_order_name" field should contain "Agency0-Advertiser0-BobsMarketingBlitz-2010-09" # features/step_definitions/web_steps.rb:337
And I fill in "campaign_order_name" with "My_Special_Order_Name" # features/step_definitions/web_steps.rb:174
Then I check "Unknown" # features/step_definitions/web_steps.rb:208
Then I check "160x600 Standard" # features/step_definitions/web_steps.rb:208
And I press "Continue" # features/step_definitions/web_steps.rb:164
And I follow "Setup" # features/step_definitions/web_steps.rb:169
Then the "campaign_order_name" field should contain "My_Special_Order_Name" # features/step_definitions/web_steps.rb:337
@selenium
Scenario: As a Super User, I edit an existing campaign, clearing the order name and the order name gets set to the default # features/su_campaign.feature:221
When I follow "Campaigns" # features/step_definitions/web_steps.rb:169
When I follow "New" # features/step_definitions/web_steps.rb:169
When I select "Display" from "campaign_department_id" # features/step_definitions/web_steps.rb:203
When I fill in "campaign_name" with "Bobs Marketing Blitz" # features/step_definitions/web_steps.rb:174
When I fill in "campaign_advertiser_id" with "adv" # features/step_definitions/web_steps.rb:174
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "Advertiser 0" within "li.ui-menu-item" # features/step_definitions/web_steps.rb:256
expected there to be content "Advertiser 0" in "Create New" (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/web_steps.rb:259:in `block (2 levels) in <top (required)>'
./features/step_definitions/web_steps.rb:153:in `block in with_scope'
./features/step_definitions/web_steps.rb:153:in `with_scope'
./features/step_definitions/web_steps.rb:257:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
features/su_campaign.feature:228:in `And I should see "Advertiser 0" within "li.ui-menu-item"'
And I select "Advertiser 0" from the autocomplete on "#campaign_advertiser_id" # features/step_definitions/web_steps.rb:416
And I fill in "campaign_start_date" with "2010-09-01" # features/step_definitions/web_steps.rb:174
And I fill in "campaign_end_date" with "2010-09-30" # features/step_definitions/web_steps.rb:174
And I press "Continue" # features/step_definitions/web_steps.rb:164
Then the "campaign_order_name" field should contain "Agency0-Advertiser0-BobsMarketingBlitz-2010-09" # features/step_definitions/web_steps.rb:337
And I fill in "campaign_order_name" with "My_Special_Order_Name" # features/step_definitions/web_steps.rb:174
Then I check "Unknown" # features/step_definitions/web_steps.rb:208
Then I check "160x600 Standard" # features/step_definitions/web_steps.rb:208
And I press "Continue" # features/step_definitions/web_steps.rb:164
And I follow "Setup" # features/step_definitions/web_steps.rb:169
Then the "campaign_order_name" field should contain "My_Special_Order_Name" # features/step_definitions/web_steps.rb:337
And I fill in "campaign_order_name" with "" # features/step_definitions/web_steps.rb:174
And I press "Continue" # features/step_definitions/web_steps.rb:164
And I follow "Setup" # features/step_definitions/web_steps.rb:169
Then the "campaign_order_name" field should contain "Agency0-Advertiser0-BobsMarketingBlitz-2010-09" # features/step_definitions/web_steps.rb:337
@selenium
Scenario: As a Super User, I edit an existing campaign with an existing order name, update the order name and my new order name should be saved # features/su_campaign.feature:247
When I follow "New" # features/step_definitions/web_steps.rb:169
When I select "Display" from "campaign_department_id" # features/step_definitions/web_steps.rb:203
When I fill in "campaign_name" with "Bobs Marketing Blitz" # features/step_definitions/web_steps.rb:174
When I fill in "campaign_advertiser_id" with "adv" # features/step_definitions/web_steps.rb:174
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "Advertiser 0" within "li.ui-menu-item" # features/step_definitions/web_steps.rb:256
expected there to be content "Advertiser 0" in "Create New" (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/web_steps.rb:259:in `block (2 levels) in <top (required)>'
./features/step_definitions/web_steps.rb:153:in `block in with_scope'
./features/step_definitions/web_steps.rb:153:in `with_scope'
./features/step_definitions/web_steps.rb:257:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
features/su_campaign.feature:253:in `And I should see "Advertiser 0" within "li.ui-menu-item"'
And I select "Advertiser 0" from the autocomplete on "#campaign_advertiser_id" # features/step_definitions/web_steps.rb:416
And I fill in "campaign_start_date" with "2010-09-01" # features/step_definitions/web_steps.rb:174
And I fill in "campaign_end_date" with "2010-09-30" # features/step_definitions/web_steps.rb:174
And I press "Continue" # features/step_definitions/web_steps.rb:164
Then the "campaign_order_name" field should contain "Agency0-Advertiser0-BobsMarketingBlitz-2010-09" # features/step_definitions/web_steps.rb:337
And I fill in "campaign_order_name" with "My_Special_Order_Name" # features/step_definitions/web_steps.rb:174
Then I check "Unknown" # features/step_definitions/web_steps.rb:208
Then I check "160x600 Standard" # features/step_definitions/web_steps.rb:208
And I press "Continue" # features/step_definitions/web_steps.rb:164
And I follow "Setup" # features/step_definitions/web_steps.rb:169
Then the "campaign_order_name" field should contain "My_Special_Order_Name" # features/step_definitions/web_steps.rb:337
And I fill in "campaign_order_name" with "My_NEW_Special_Order_Name" # features/step_definitions/web_steps.rb:174
And I press "Continue" # features/step_definitions/web_steps.rb:164
And I follow "Setup" # features/step_definitions/web_steps.rb:169
Then the "campaign_order_name" field should contain "My_NEW_Special_Order_Name" # features/step_definitions/web_steps.rb:337
@selenium
Scenario: As a Super User, when creating a non Display department campaign, I should not see geo-targets dimensions options # features/su_campaign.feature:272
When I follow "New" # features/step_definitions/web_steps.rb:169
When I select "SEO" from "campaign_department_id" # features/step_definitions/web_steps.rb:203
When I fill in "campaign_name" with "Bobs Marketing Blitz" # features/step_definitions/web_steps.rb:174
When I fill in "campaign_advertiser_id" with "adv" # features/step_definitions/web_steps.rb:174
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "Advertiser 0" within "li.ui-menu-item" # features/step_definitions/web_steps.rb:256
expected there to be content "Advertiser 0" in "Create New" (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/web_steps.rb:259:in `block (2 levels) in <top (required)>'
./features/step_definitions/web_steps.rb:153:in `block in with_scope'
./features/step_definitions/web_steps.rb:153:in `with_scope'
./features/step_definitions/web_steps.rb:257:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
features/su_campaign.feature:278:in `And I should see "Advertiser 0" within "li.ui-menu-item"'
And I select "Advertiser 0" from the autocomplete on "#campaign_advertiser_id" # features/step_definitions/web_steps.rb:416
And I fill in "campaign_start_date" with "2010-09-01" # features/step_definitions/web_steps.rb:174
And I fill in "campaign_end_date" with "2010-09-30" # features/step_definitions/web_steps.rb:174
And I press "Continue" # features/step_definitions/web_steps.rb:164
Then I should not see "Geo-targets" within "#dimensions" # features/step_definitions/web_steps.rb:275
@selenium
Scenario: As a Super User, when creating a Display department campaign, I should see geo-targets dimensions options # features/su_campaign.feature:287
When I follow "New" # features/step_definitions/web_steps.rb:169
When I select "Display" from "campaign_department_id" # features/step_definitions/web_steps.rb:203
When I fill in "campaign_name" with "Bobs Marketing Blitz" # features/step_definitions/web_steps.rb:174
When I fill in "campaign_advertiser_id" with "adv" # features/step_definitions/web_steps.rb:174
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "Advertiser 0" within "li.ui-menu-item" # features/step_definitions/web_steps.rb:256
expected there to be content "Advertiser 0" in "Create New" (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/web_steps.rb:259:in `block (2 levels) in <top (required)>'
./features/step_definitions/web_steps.rb:153:in `block in with_scope'
./features/step_definitions/web_steps.rb:153:in `with_scope'
./features/step_definitions/web_steps.rb:257:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
features/su_campaign.feature:293:in `And I should see "Advertiser 0" within "li.ui-menu-item"'
And I select "Advertiser 0" from the autocomplete on "#campaign_advertiser_id" # features/step_definitions/web_steps.rb:416
And I fill in "campaign_start_date" with "2010-09-01" # features/step_definitions/web_steps.rb:174
And I fill in "campaign_end_date" with "2010-09-30" # features/step_definitions/web_steps.rb:174
And I press "Continue" # features/step_definitions/web_steps.rb:164
Then I should see "Geo Targets" within "#dimensions" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a Super User, when creating a Display department campaign, I can create geo-targets and add them to the campaign dimensions # features/su_campaign.feature:302
When I follow "New" # features/step_definitions/web_steps.rb:169
When I select "Display" from "campaign_department_id" # features/step_definitions/web_steps.rb:203
When I fill in "campaign_name" with "Bobs Marketing Blitz" # features/step_definitions/web_steps.rb:174
When I fill in "campaign_advertiser_id" with "adv" # features/step_definitions/web_steps.rb:174
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "Advertiser 0" within "li.ui-menu-item" # features/step_definitions/web_steps.rb:256
expected there to be content "Advertiser 0" in "Create New" (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/web_steps.rb:259:in `block (2 levels) in <top (required)>'
./features/step_definitions/web_steps.rb:153:in `block in with_scope'
./features/step_definitions/web_steps.rb:153:in `with_scope'
./features/step_definitions/web_steps.rb:257:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
features/su_campaign.feature:309:in `And I should see "Advertiser 0" within "li.ui-menu-item"'
And I select "Advertiser 0" from the autocomplete on "#campaign_advertiser_id" # features/step_definitions/web_steps.rb:416
And I fill in "campaign_start_date" with "2010-09-01" # features/step_definitions/web_steps.rb:174
And I fill in "campaign_end_date" with "2010-09-30" # features/step_definitions/web_steps.rb:174
And I press "Continue" # features/step_definitions/web_steps.rb:164
Then I should see "Geo Targets" within "#dimensions" # features/step_definitions/web_steps.rb:256
And I fill in "add_geo_target" with "Geo Target 3" # features/step_definitions/web_steps.rb:174
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I click "Create New" # features/step_definitions/web_steps.rb:490
And wait for the page to load # features/step_definitions/web_steps.rb:455
# Then show me the page
# Then I fill in "geo_target_name" with "GeoTarget3"
# And I press "Create" within "#new_geo_target"
# And wait for the page to load
@selenium
Scenario: As a Super User, I want to enter a string that will be prepended to zone names when site allocations are created. # features/su_campaign.feature:327
When I follow "New" # features/step_definitions/web_steps.rb:169
When I select "Display" from "campaign_department_id" # features/step_definitions/web_steps.rb:203
When I fill in "campaign_name" with "Bobs Marketing Blitz" # features/step_definitions/web_steps.rb:174
When I fill in "campaign_advertiser_id" with "adv" # features/step_definitions/web_steps.rb:174
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "Advertiser 0" within "li.ui-menu-item" # features/step_definitions/web_steps.rb:256
expected there to be content "Advertiser 0" in "Create New" (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/web_steps.rb:259:in `block (2 levels) in <top (required)>'
./features/step_definitions/web_steps.rb:153:in `block in with_scope'
./features/step_definitions/web_steps.rb:153:in `with_scope'
./features/step_definitions/web_steps.rb:257:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
features/su_campaign.feature:333:in `And I should see "Advertiser 0" within "li.ui-menu-item"'
And I select "Advertiser 0" from the autocomplete on "#campaign_advertiser_id" # features/step_definitions/web_steps.rb:416
And I fill in "campaign_start_date" with "2010-09-01" # features/step_definitions/web_steps.rb:174
And I fill in "campaign_end_date" with "2010-09-30" # features/step_definitions/web_steps.rb:174
And I press "Continue" # features/step_definitions/web_steps.rb:164
Then I fill in "campaign_slug" with "my slug" # features/step_definitions/web_steps.rb:174
Then I check "Unknown" # features/step_definitions/web_steps.rb:208
Then I check "160x600 Standard" # features/step_definitions/web_steps.rb:208
And I press "Continue" # features/step_definitions/web_steps.rb:164
Then I should see "Campaign was successfully updated" within "#flash" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As a Super User, I want to search for Sales Reps to add to a campaign and not drag-n-drop them. # features/su_campaign.feature:346
Given an active user named am # features/step_definitions/user_steps.rb:1
Given user am belongs to the account_manager user role # features/step_definitions/user_steps.rb:71
Given I have these companies: # features/step_definitions/company_steps.rb:1
| Name | Internal |
| RMM | true |
| LIN | true |
| Petry | true |
Given I have these sales reps: # features/step_definitions/sales_rep_steps.rb:2
| Company | Name | Initials | Email | Phone | Manager |
| RMM | Sales Rep 1 | SR1 | [email protected] | 512-123-1234 | [email protected] |
| LIN | Sales Rep 2 | SR2 | [email protected] | 512-123-1235 | [email protected] |
| Petry | Sales Rep 3 | SR3 | [email protected] | 512-123-1236 | [email protected] |
When I follow "New" # features/step_definitions/web_steps.rb:169
When I select "Display" from "campaign_department_id" # features/step_definitions/web_steps.rb:203
When I fill in "campaign_name" with "Bobs Marketing Blitz" # features/step_definitions/web_steps.rb:174
When I fill in "campaign_advertiser_id" with "adv" # features/step_definitions/web_steps.rb:174
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "Advertiser 0" within "li.ui-menu-item" # features/step_definitions/web_steps.rb:256
expected there to be content "Advertiser 0" in "Create New" (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/web_steps.rb:259:in `block (2 levels) in <top (required)>'
./features/step_definitions/web_steps.rb:153:in `block in with_scope'
./features/step_definitions/web_steps.rb:153:in `with_scope'
./features/step_definitions/web_steps.rb:257:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
features/su_campaign.feature:364:in `And I should see "Advertiser 0" within "li.ui-menu-item"'
And I select "Advertiser 0" from the autocomplete on "#campaign_advertiser_id" # features/step_definitions/web_steps.rb:416
And I fill in "campaign_start_date" with "2010-09-01" # features/step_definitions/web_steps.rb:174
And I fill in "campaign_end_date" with "2010-09-30" # features/step_definitions/web_steps.rb:174
And I press "Continue" # features/step_definitions/web_steps.rb:164
Then I fill in "campaign_slug" with "my slug" # features/step_definitions/web_steps.rb:174
And I fill in "sales_reps_add" with "Rep" # features/step_definitions/web_steps.rb:174
And wait for the page to load # features/step_definitions/web_steps.rb:455
And I should see "Sales Rep 1" within "li.ui-menu-item" # features/step_definitions/web_steps.rb:256
And I select "Sales Rep 1" from the autocomplete on "#sales_reps_add" # features/step_definitions/web_steps.rb:416
And wait for the page to load # features/step_definitions/web_steps.rb:455
Then I should see "Sales Rep 1" within "#sales_reps" # features/step_definitions/web_steps.rb:256
Then I check "Unknown" # features/step_definitions/web_steps.rb:208
Then I check "160x600 Standard" # features/step_definitions/web_steps.rb:208
And I press "Continue" # features/step_definitions/web_steps.rb:164
Then I should see "Campaign was successfully updated" within "#flash" # features/step_definitions/web_steps.rb:256
Then I follow "Setup" within "#contentNavLinks" # features/step_definitions/web_steps.rb:169
Then I should see "Sales Rep 1" within "#sales_reps" # features/step_definitions/web_steps.rb:256
Feature: Super User Manage 3rd Party APIs
User must be able to create Campaigns and manage which 3rd party API will provide deliveries
Background: # features/su_campaign_3rd_party_apis.feature:4
Given loaded fixtures # features/step_definitions/object_steps.rb:222
Given reportable data exists for the SEM department # features/step_definitions/object_steps.rb:95
And I am logged in as super user bob who belongs to the SEM department # features/step_definitions/user_steps.rb:59
Given "Campaign 0" with discoverables from "Google" # features/step_definitions/campaign_steps.rb:142
Given "Campaign 0" with discoverables from "Microsoft" # features/step_definitions/campaign_steps.rb:142
Given "Campaign 2" with discoverables from "Google" # features/step_definitions/campaign_steps.rb:142
Given "Campaign 2" with discoverables from "Microsoft" # features/step_definitions/campaign_steps.rb:142
Given unassigned discoverables from "Google" # features/step_definitions/campaign_steps.rb:130
Given unassigned discoverables from "Microsoft" # features/step_definitions/campaign_steps.rb:130
When I follow "Campaigns" within "#tabs" # features/step_definitions/web_steps.rb:169
When I follow "Campaigns" # features/step_definitions/web_steps.rb:169
When I view the campaign titled "Campaign 0" # features/step_definitions/campaign_steps.rb:1
@selenium
Scenario: As an Admin, when working with a campaign, I want to view a page which lists third party API's which could provide deliveries. # features/su_campaign_3rd_party_apis.feature:20
And I follow "3rd Party Data" within "#context_menu" # features/step_definitions/web_steps.rb:169
And I should see "Data Associated With This Campaign" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As an Admin, when viewing third party API's, I want to select an API so that I can view deliverables from that API # features/su_campaign_3rd_party_apis.feature:26
And I follow "3rd Party Data" within "#context_menu" # features/step_definitions/web_steps.rb:169
And I should see "Google Adwords" within "#associated_with_other" # features/step_definitions/web_steps.rb:256
And I should see "Microsoft adCenter" within "#associated_with_other" # features/step_definitions/web_steps.rb:256
Then I select "Google Adwords" from "filter_source" # features/step_definitions/web_steps.rb:203
Then I press "Filter" # features/step_definitions/web_steps.rb:164
And I should see "Google Adwords" within "#associated_with_other" # features/step_definitions/web_steps.rb:256
And I should not see "Microsoft adCenter" within "#associated_with_other" # features/step_definitions/web_steps.rb:275
And I should see "Google Adwords" within "#unassociated" # features/step_definitions/web_steps.rb:256
And I should not see "Microsoft adCenter" within "#unassociated" # features/step_definitions/web_steps.rb:275
Then I select "Microsoft adCenter" from "filter_source" # features/step_definitions/web_steps.rb:203
Then I press "Filter" # features/step_definitions/web_steps.rb:164
And I should not see "Google Adwords" within "#associated_with_other" # features/step_definitions/web_steps.rb:275
And I should see "Microsoft adCenter" within "#associated_with_other" # features/step_definitions/web_steps.rb:256
And I should not see "Google Adwords" within "#unassociated" # features/step_definitions/web_steps.rb:275
And I should see "Microsoft adCenter" within "#unassociated" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As an Admin, when viewing deliverables, I want to see all deliverables which have been discovered by the API, but don't have a campaign assignment. # features/su_campaign_3rd_party_apis.feature:45
And I follow "3rd Party Data" within "#context_menu" # features/step_definitions/web_steps.rb:169
And I should see "Discoverable 4 (Discoverable Detail 4)" within "#unassociated" # features/step_definitions/web_steps.rb:256
And I should see "Discoverable 5 (Discoverable Detail 5)" within "#unassociated" # features/step_definitions/web_steps.rb:256
@selenium
Scenario: As an Admin, when viewing deliverables, I want to see all deliverables which have been discovered by the API and DO have a campaign assignment. # features/su_campaign_3rd_party_apis.feature:52
And I follow "3rd Party Data" within "#context_menu"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment