Many improvements and fixes

This commit is contained in:
2014-07-22 17:37:33 +02:00
parent 8ca59c4e38
commit 3202ba8f19
23 changed files with 75 additions and 61 deletions
@@ -1,6 +1,6 @@
Feature: Supplier main board
@javascript @broken
@javascript
Scenario: the active list should be present and contained in row having its id
Given there is an active list and order
And I am signed in as supplier
@@ -47,7 +47,7 @@ Feature: Supplier main board
Then the list in the supplier dashboard should not be displayed anymore
And the list should be marked as closed
@javascript @broken
@javascript
Scenario: Selecting a specific section limits the result to the lists and orders of those sections
Given there is an active list and order
And I am signed in as supplier
@@ -62,7 +62,7 @@ Feature: Supplier main board
Then I should see the list and the new list
And I should see the order and the new order
@javascript @broken
@javascript
Scenario: Selecting a specific section and jumping towards section view
Given there is an active list and order
And I am signed in as supplier
@@ -71,7 +71,7 @@ Feature: Supplier main board
And I click on the section main board section jumper
Then I should be redirected to the supplier section view
@javascript @broken
@javascript
Scenario: Update table number if table chanes
Given there is an active list and order
And I am signed in as supplier
@@ -51,6 +51,7 @@ step "the list on the supplier dashboard should be marked as in need of payment"
end
step "the supplier dashboard list should display the updated price" do
sleep 0.5
el = find(".list-row-#{@list.id} .total_list_amount")
# original order is 3 * 2.11 = 6.33
# new order price = 5 * 2.22 = 11.10
@@ -160,7 +161,5 @@ end
step "the supplier placed orders counter should be reduced" do
sleep 0.5
binding.pry
puts page.driver.error_messages
find('.supplier-orders-placed-count-number').text.should == "10"
end
+1 -1
View File
@@ -77,7 +77,7 @@ RSpec.configure do |config|
OmniAuth.config.add_mock :facebook, {
info: {
nickname: 'Joey',
name: "Facebook Joe",
name: "Facebook Joe",
first_name: "Facebook Joe"
},
credentials: {