Specced supplier main board jumber
This commit is contained in:
@@ -114,6 +114,15 @@ end
|
||||
step "I select the new section in the supplier dashboard" do
|
||||
find(%|.section_selector option[value="#{@new_section.id}"]|).select_option
|
||||
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'
|
||||
end
|
||||
|
||||
step "I click on the section main board section jumper" do
|
||||
find('.main-board-section-jumper').click
|
||||
end
|
||||
|
||||
@@ -64,3 +64,9 @@ step "the section table should not have any active list markings anymore" do
|
||||
css_class.should_not include 'active_order'
|
||||
css_class.should_not include 'needs_payment'
|
||||
end
|
||||
|
||||
step "I should be redirected to the supplier section view" do
|
||||
sleep 1
|
||||
#page.current_path.should == "/supplier/sections/#{@section.id}"
|
||||
page.evaluate_script('window.location.pathname').should == "/supplier/sections/#{@section.id}"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user