Fix some failing spec
This commit is contained in:
+2
-1
@@ -2,5 +2,6 @@ App.modals.CloseListController = App.modals.BaseController.extend
|
||||
title_path: 'list.close.modal.title'
|
||||
actions:
|
||||
confirm: ->
|
||||
@get('model').then (l)->l.close()
|
||||
model = @get('model')
|
||||
if model.then then model.then((l) -> l.close()) else model.close()
|
||||
@send 'closeModal'
|
||||
|
||||
@@ -10,7 +10,7 @@ App.ProductCategory = DS.Model.extend
|
||||
active_on_thursday: attr('boolean')
|
||||
active_on_friday: attr('boolean')
|
||||
active_on_saturday: attr('boolean')
|
||||
full_day: attr('boolean')
|
||||
full_day: attr 'boolean', defaultValue: true
|
||||
start_from: attr('number')
|
||||
end_on: attr('number')
|
||||
position: attr('number')
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user