|
|
Acceptance criteria
|
|
|
01
|
Given: shop page
When: add to the cart one or several products with cost more then 2267 CHF (i.e. = 2550 CHF) (no matter what products and what weight did you add to the cart, it can be tables, lamp etc.)
Then: see the shipping cost 191.25 CHF
|
One more example:

|
|
02
|
Given: shop page with lamps https://wsa.ch/de/shop?product-cata=148
When: add to the cart only lamps (small weight)
Then: see the shipping cost 30 CHF (7.5% des Nettowarenwerts, jedoch mindestens CHF 30.00)
|
|
|
03
|
Given: shop page with chairs https://wsa.ch/de/shop?product-cata=146
When: add to the cart only chairs (medium weight)
Then: see the shipping cost 90 CHF AND additional information: (7.5% des Nettowarenwerts, jedoch mindestens CHF 90.00)
|
|
|
04
|
Given: shop page
When: add to the cart at least one chair (shipping product type medium weight) AND total cost of the cart more then 1200 CHF (for example 1380)
Then: see the shipping cost 103.50 CHF AND additional information: (7.5% des Nettowarenwerts, jedoch mindestens CHF 90.00)
|
|
|
05
|
Given: shop page
When: add to the cart at least one chair (shipping product type medium weight) AND total cost of the cart less then 1200 CHF (for example 690)
Then: see the shipping cost 90 CHF (by default) AND additional information: (7.5% des Nettowarenwerts, jedoch mindestens CHF 90.00)
|
|
|
06
|
Given: shop page
When: add to the cart at least one chair and one table AND total cost of the cart more then 1200 but less then 2261 CHF (for example 1380)
Then: see the shipping cost 170 CHF AND additional information: (7.5% des Nettowarenwerts, jedoch mindestens CHF 170.00)
|
|
|
07
|
Given: shop page
When: add to the cart at least one chair and one lamp AND total cost of the cart more then 1200 but less then 2261 CHF (for example 1380)
Then: see the shipping cost 103.50 CHF AND additional information: (7.5% des Nettowarenwerts, jedoch mindestens CHF 90.00)
|
|
|
08
|
Given: shop page
When: add to the cart at least one chair, one lamp, and one table AND total cost of the cart less then 1200 (for example 690)
Then: see the shipping cost 170 CHF AND additional information: (7.5% des Nettowarenwerts, jedoch mindestens CHF 170.00)
|
|
|
09
|
Given: shop page
When: add to the cart one or several products with cost more then 2267 CHF (i.e. = 2550 CHF) (several lamps with 30 CHF shipping cost)
Then: see the shipping cost 191.25 CHF AND additional information: (7.5% des Nettowarenwerts, jedoch mindestens CHF 30.00)
|
|
|
10
|
Given: shop page
When: add to the cart one or several products with cost more then 2267 CHF (i.e. = 2550 CHF) (several chairs with 90 CHF shipping cost)
Then: see the shipping cost 191.25 CHF AND additional information: (7.5% des Nettowarenwerts, jedoch mindestens CHF 90.00)
|
|
|
11
|
Given: shop page
When: add to the cart one or several products with cost more then 2267 CHF (i.e. = 2550 CHF) (several tables with 170 CHF shipping cost)
Then: see the shipping cost 191.25 CHF AND additional information: (7.5% des Nettowarenwerts, jedoch mindestens CHF 170.00)
|
|
|
12
|
Given: thank you page https://wsa.ch/de/cart/order-received/23636?key=wc_order_DVOGeaiUN0srr
When: finalize the order with a cost more than 2267 CHF (i.e. = 2,748 CHF)
Then: see the shipping cost 7.5% – 206.10 CHF AND see the tax 8.1% – 239.30 CHF AND see the total of the order 3,193.40
|
incorrect:

|
|
13
|
Given: shop checkout page
When: shipping price is CHF 170.00 or more
Then: there should be the additional information: (7.5% des Nettowarenwerts, jedoch mindestens CHF 170.00)
|
|
|
14
|
Given: shop checkout page
When: shipping price is CHF 90.00
Then: there should be the additional information: (7.5% des Nettowarenwerts, jedoch mindestens CHF 90.00)
|
|