Commit 34268f136ea11bf23b4494b2d81093f974ecac9d

Authored by Rodrigo Souto
1 parent 1dc25731

manage-products-features: fix tests

Showing 1 changed file with 18 additions and 15 deletions   Show diff stats
features/manage_products.feature
@@ -22,18 +22,18 @@ Feature: manage products @@ -22,18 +22,18 @@ Feature: manage products
22 | name | 22 | name |
23 | Bicycle | 23 | Bicycle |
24 And the following products 24 And the following products
25 - | owner | category | name | description |  
26 - | redemoinho | bicycle | Bike A | bicycle 1 |  
27 - | redemoinho | bicycle | Bike B | bicycle 2 |  
28 - | redemoinho | bicycle | Bike C | bicycle 3 |  
29 - | redemoinho | bicycle | Bike D | bicycle 4 |  
30 - | redemoinho | bicycle | Bike E | bicycle 5 |  
31 - | redemoinho | bicycle | Bike F | bicycle 6 |  
32 - | redemoinho | bicycle | Bike G | bicycle 7 |  
33 - | redemoinho | bicycle | Bike H | bicycle 8 |  
34 - | redemoinho | bicycle | Bike I | bicycle 9 |  
35 - | redemoinho | bicycle | Bike J | bicycle 10 |  
36 - | redemoinho | bicycle | Bike K | bicycle 11 | 25 + | owner | category | name | description | created_at |
  26 + | redemoinho | bicycle | Bike A | bicycle 1 | 2014-04-01 01:00:00 |
  27 + | redemoinho | bicycle | Bike B | bicycle 2 | 2014-04-01 02:00:00 |
  28 + | redemoinho | bicycle | Bike C | bicycle 3 | 2014-04-01 03:00:00 |
  29 + | redemoinho | bicycle | Bike D | bicycle 4 | 2014-04-01 04:00:00 |
  30 + | redemoinho | bicycle | Bike E | bicycle 5 | 2014-04-01 05:00:00 |
  31 + | redemoinho | bicycle | Bike F | bicycle 6 | 2014-04-01 06:00:00 |
  32 + | redemoinho | bicycle | Bike G | bicycle 7 | 2014-04-01 07:00:00 |
  33 + | redemoinho | bicycle | Bike H | bicycle 8 | 2014-04-01 08:00:00 |
  34 + | redemoinho | bicycle | Bike I | bicycle 9 | 2014-04-01 09:00:00 |
  35 + | redemoinho | bicycle | Bike J | bicycle 10 | 2014-04-01 10:00:00 |
  36 + | redemoinho | bicycle | Bike K | bicycle 11 | 2014-04-01 11:00:00 |
37 When I go to redemoinho's products page 37 When I go to redemoinho's products page
38 Then I should see "Bike A" within "#product-list" 38 Then I should see "Bike A" within "#product-list"
39 And I should see "Bike B" within "#product-list" 39 And I should see "Bike B" within "#product-list"
@@ -41,12 +41,15 @@ Feature: manage products @@ -41,12 +41,15 @@ Feature: manage products
41 And I should see "Bike D" within "#product-list" 41 And I should see "Bike D" within "#product-list"
42 And I should see "Bike E" within "#product-list" 42 And I should see "Bike E" within "#product-list"
43 And I should see "Bike F" within "#product-list" 43 And I should see "Bike F" within "#product-list"
44 - And I should see "Bike G" within "#product-list"  
45 - And I should see "Bike H" within "#product-list"  
46 - And I should see "Bike I" within "#product-list" 44 + And I should not see "Bike G" within "#product-list"
  45 + And I should not see "Bike H" within "#product-list"
  46 + And I should not see "Bike I" within "#product-list"
47 And I should not see "Bike J" within "#product-list" 47 And I should not see "Bike J" within "#product-list"
48 And I should not see "Bike K" within "#product-list" 48 And I should not see "Bike K" within "#product-list"
49 When I follow "Next" 49 When I follow "Next"
  50 + Then I should see "Bike G" within "#product-list"
  51 + Then I should see "Bike H" within "#product-list"
  52 + Then I should see "Bike I" within "#product-list"
50 Then I should see "Bike J" within "#product-list" 53 Then I should see "Bike J" within "#product-list"
51 Then I should see "Bike K" within "#product-list" 54 Then I should see "Bike K" within "#product-list"
52 55