Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Effective Scenarios

Effective Scenarios

Avatar for Iain Cambridge

Iain Cambridge

June 02, 2015

More Decks by Iain Cambridge

Other Decks in Technology

Transcript

  1. Warning •  I’m Scottish, so I talk fast by default

    •  If I start talking fast, wave or something
  2. Given I have a product called “Nokia Phone” with url

    slug “nokia-phone” for the price of “10” Given I have a phone called “Samsung Phone” which is recommend for “Nokia Phone” When I open “/products” When I click link “.product:contains(‘Nokia Phone’)” Then I should see “Nokia Phone” in h2 class “producttitle” Then I should see price of £12 Then I should see “Samsung Phone”
  3. Given I have a product called “Nokia Phone” with url

    slug “nokia-phone” for the price of “10” Given the following products exist: | Title | Price | Url Slug | | Nokia Phone | 10 | nokia-phone |
  4. Given I have a phone called “Samsung Phone” which is

    recommend for “Nokia Phone” Given the following products exist: | Title | Price | Url Slug | | Nokia Phone | 10 | nokia-phone | | Samsung Phone | 10 | samsung-phone | And “Samsung Phone” is recommended for “Nokia Phone”
  5. Then I should see “Nokia Phone” in h2 class “product-title”

    Then I should see the product title as “Nokia Phone”
  6. Then I should see price of £12 Then I should

    see a price that includes VAT of £12
  7. Given I have a product called “Nokia Phone” with url

    slug “nokia-phone” for the price of “10” Given I have a phone called “Samsung Phone” which is recommend for “Nokia Phone” When I open “/products” When I click link “.product:contains(‘Nokia Phone’)” Then I should see “Nokia Phone” in h2 class “producttitle” Then I should see price of £12 Then I should see “Samsung Phone”
  8. Given the following products exist: | Title | Price |

    Url Slug | | Nokia Phone | 10 | nokia-phone | | Samsung Phone | 10 | samsung-phone | And “Samsung Phone” is recommended for “Nokia Phone” When I open the product listing page And I go to the product page for “Nokia Phone” Then I should see the product title as “Nokia Phone” And I should see a price that includes VAT of £12 And I should be recommended “Samsung Phone”
  9. Given the following products exist: | Title | Price |

    Url Slug | | Nokia Phone | 10 | nokia-phone | | Samsung Phone | 10 | samsung-phone | And “Samsung Phone” is recommended for “Nokia Phone” When I open the product listing page And I go to the product page for “Nokia Phone” Then I should see the product title as “Nokia Phone” And I should see a price that includes VAT of £12 And I should be recommended “Samsung Phone”
  10. Given the following products exist: | Title | Price |

    Url Slug | | Nokia Phone | 10 | nokia-phone | | Samsung Phone | 10 | samsung-phone | And “Samsung Phone” is recommended for “Nokia Phone” When I open the product listing page And I go to the product page for “Nokia Phone” Then I should see the product title as “Nokia Phone” And I should see a price that includes VAT of £12 And I should be recommended “Samsung Phone”
  11. Given the following products exist: | Title | Price |

    Url Slug | | Nokia Phone | 10 | nokia-phone | When I open the product listing page And I go to the product page for “Nokia Phone” Then I should see the product title as “Nokia Phone” And I should see a price that includes VAT of £12
  12. Given the following products exist: | Title | Price |

    Url Slug | | Nokia Phone | 10 | nokia-phone | When I open the product listing page And I go to the product page for “Nokia Phone” Then I should see the product title as “Nokia Phone” And I should see a price that includes VAT of £12
  13. Given the following products exist: | Title | Price |

    Url Slug | | Nokia Phone | 10 | nokia-phone | When I go to the product page for “Nokia Phone” Then I should see the product title as “Nokia Phone” And I should see a price that includes VAT of £12
  14. Given the following products exist: | Title | Price |

    Url Slug | | Nokia Phone | 10 | nokia-phone | When I go to the product page for “Nokia Phone” Then I should see the product title as “Nokia Phone” And I should see a price that includes VAT of £12
  15. Given the following products exist: | Title | Price |

    Url Slug | | Nokia Phone | 10 | nokia-phone | When I go to the product page for “Nokia Phone” Then I should see the product title as “Nokia Phone”
  16. Given the following products exist: | Title | Price |

    Url Slug | | Nokia Phone | 10 | nokia-phone | When I go to the product page for “Nokia Phone” Then I should see the product title as “Nokia Phone”
  17. Given the following products exist: | Title | Price |

    Url Slug | | Nokia Phone | 10 | nokia-phone | When I go to the product page for “Nokia Phone” Then I should see the product information for “Nokia Phone”