fix list section link by normalizing

This commit is contained in:
2014-08-15 14:24:31 +02:00
parent 4ab9f63b33
commit 95e42bb917
7 changed files with 25 additions and 8 deletions
+3 -2
View File
@@ -75,11 +75,12 @@ Feature: Supplier main board
@javascript
Scenario: Update table number and section if table changes
Given there is an active list and order
And there is another section with table
And I am signed in as supplier
# wait until page is fully loaded
And I wait 2 seconds
And I wait 4 seconds
When the active list changes to another table in another section
And I wait 1 second
And I wait 2 seconds
Then the supplier main board table number should be updated to the new table number
And the supplier main board section name should be updated to the new section
@@ -1,3 +1,12 @@
step 'there is a section' do
@section ||= create :section, supplier: @supplier
end
step "there is another section" do
@other_section = create :section, supplier: @supplier, title: 'New Section'
end
step "there is another section with table" do
step "there is another section"
@other_table = create :table, section: @other_section, supplier: @supplier, number: 65
end
@@ -131,8 +131,6 @@ step "I click on the section main board section jumper" do
end
step "the active list changes to another table in another section" do
@other_section = create :section, supplier: @supplier, title: 'New Section'
@other_table = create :table, section: @other_section, supplier: @supplier, number: 65
@list.move_to_table! @other_table
end
+4
View File
@@ -18,4 +18,8 @@ module SpecEmberHelpers
def js_path
page.evaluate_script 'location.pathname + location.hash'
end
def faye_log
page.evaluate_script(%|window.faye_log|)
end
end