Fix some failing spec

This commit is contained in:
2014-11-27 20:16:30 +01:00
parent 3bc1e5685c
commit c36c88bc15
6 changed files with 14 additions and 14 deletions
@@ -69,7 +69,6 @@ Feature: Supplier main board
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
Then I should not see the supplier main board section jumper
When I select the section in the supplier dashboard
And I click on the section main board section jumper
Then I should be redirected to the supplier section view
+1 -1
View File
@@ -8,7 +8,7 @@ Feature: Changing table
And there is another table
When the user scans a QR code of another not occupied table
Then the user should see a popup asking the user if he would like to change table
When the uses indicates in the popup that he wants to change the table
When the user indicates in the popup that he wants to change the table
And I wait 1 second
Then the user should see the supplier menu having the other table as base
And the user list should have been moved to the other table
@@ -111,23 +111,23 @@ step "I should see the new list and new order but not the list and order" do
end
step "I select the section in the supplier dashboard" do
find(%|.section_selector option[value="#{@section.id}"]|).select_option
# find(%|.section_selector option[value="#{@section.id}"]|).select_option
find(%|.sections-header-container [data-section="#{@section.id}"] .section-header-title|).click
end
step "I select the other section in the supplier dashboard" do
find(%|.section_selector option[value="#{@other_section.id}"]|).select_option
# find(%|.section_selector option[value="#{@other_section.id}"]|).select_option
find(%|.sections-header-container [data-section="#{@other_section.id}"] .section-header-title|).click
end
step "I reset the section selector in the supplier dashboard" do
find(%|.section_selector option[value=""]|).select_option
end
step "I should not see the supplier main board section jumper" do
page.should_not have_selector '.main-board-section-jumper'
# find(%|.section_selector option[value=""]|).select_option
find(%|.sections-header-container [data-section="all"] .section-header-title|).click
end
step "I click on the section main board section jumper" do
find('.main-board-section-jumper').click
# find('.main-board-section-jumper').click
find(%|.sections-header-container [data-section="#{@section.id}"] .section-jumper|).click
end
step "the active list changes to another table in another section" do
@@ -163,5 +163,5 @@ step "the supplier placed orders counter should be reduced" do
end
step "confirm the supplier close list modal" do
find('.confirm-ok').click
find('.modal-confirm').click
end
@@ -9,7 +9,7 @@ step "the user should see a popup asking the user if he would like to change tab
page.should have_content move_table_body
end
step "the uses indicates in the popup that he wants to change the table" do
step "the user indicates in the popup that he wants to change the table" do
find('.confirm-ok').click
end