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
@@ -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