Feature: Ajax Interface for selecting products and services for a registered providers As a registered provider In order to select products and services for my projects I should be able to select products and services from the ajax style interface Scenario: a provider drilldowns and adds a product to their company Given an active provider_user named 'skeebo' When he logs in with username 'skeebo' and password 'turtles' And he clicks the 'My Company' link And he waits for the page to load And he clicks on the 'Products & Services' tab And he waits for the page to load Then the page should contain the text 'Manage Products & Services' When he clicks the 'On-Site Energy Generation' link Then a link 'Solar' should appear When he clicks the 'Solar' link Then a link 'Solar › Solar Electric' should appear When he clicks the 'Solar › Solar Electric' link Then a link 'Solar Photovoltaic Panels' should appear When he clicks the 'Solar Photovoltaic Panels' link Then a link 'Retail' should appear And a link 'Wholesale' should appear And a link 'Installation' should appear And a link 'Maintenance' should appear And a link 'Design & Consulting' should appear And a link 'Manufacturing' should appear When he clicks the 'Wholesale' link Scenario: a wattbot admin drills down and adds a product to a company Given an admin wattbot_user When he logs in with username 'addie' and password '1234addie' And he goes to /admin And he clicks on the 'Providers' tab And he waits for the page to load And he clicks the 'California Green Designs' link And he waits for the page to load And he clicks on the 'Products & Services' tab And he waits for the page to load And he clicks the 'On-Site Energy Generation' link Then a link 'Solar' should appear When he clicks the 'Solar' link Then a link 'Solar › Solar Electric' should appear When he clicks the 'Solar › Solar Electric' link Then a link 'Solar Photovoltaic Thin Film' should appear When he clicks the 'Solar Photovoltaic Thin Film' link Then a link 'Retail' should appear And a link 'Wholesale' should appear And a link 'Installation' should appear And a link 'Maintenance' should appear And a link 'Design & Consulting' should appear And a link 'Manufacturing' should appear When he clicks the 'Wholesale' link Scenario: wattbot admin can apply products and services to an Incentive Given an admin wattbot_user When he goes to /admin And he clicks the 'Incentives' link And he waits for the page to load And he clicks the 'First sales tax exemption' link And he waits for the page to load And he clicks on the 'Products & Services' tab And he waits for the page to load And he clicks the 'On-Site Energy Generation' link Then a link 'Solar' should appear When he clicks the 'Solar' link Then a link 'Solar › Solar Electric' should appear When he clicks the 'Solar › Solar Electric' link Then a link 'Solar Photovoltaic Thin Film' should appear When he clicks the 'Solar Photovoltaic Thin Film' link Then a link 'Solar Photovoltaic Thin Film' should appear