Skip to content

Instantly share code, notes, and snippets.

@detomastah
Created January 17, 2013 11:30
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save detomastah/4555335 to your computer and use it in GitHub Desktop.
# encoding: utf-8
Feature: Product cross selling
In order to maximize customer satisfaction (and our profit :])
As a potential customer
I want to see items related to product I am currently looking
Scenario: Product page should show cross sell items
Given the following products exists
| product | name | gross_price | available_amount | number | manufacturer_product_number |
| camera | Kamera | 1199 | 22 | HK029737 | 01G-P3-1556-KR |
| camera_stand | Kamerastativ | 99 | 22 | HK029738 | 01G-P3-1550-CS |
And the following navision_cross_sell_items exists
| product | cross_sell_product |
| product "camera" | product "camera_stand" |
And I am on the product page for "Kamera"
Then I should see "Zubehör"
Scenario: Product page should not show cross sell items
Given the following products exists
| product | name | gross_price | available_amount | number | manufacturer_product_number |
| camera | Kamera | 1199 | 22 | HK029737 | 01G-P3-1556-KR |
| camera_stand | Kamerastativ | 99 | 22 | HK029738 | 01G-P3-1550-CS |
And I am on the product page for "Kamera"
Then I should not see "Zubehör"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment