Specced supplier main board jumber
This commit is contained in:
@@ -59,3 +59,13 @@ Feature: Supplier main board
|
||||
When I reset the section selector in the supplier dashboard
|
||||
Then I should see the list and the new list
|
||||
And I should see the order and the new order
|
||||
|
||||
@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
|
||||
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
|
||||
|
||||
|
||||
@@ -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