Better speccing and cleanup in between commit
This commit is contained in:
+4
-1
@@ -73,10 +73,13 @@ Feature: Supplier main board
|
||||
Then I should be redirected to the supplier section view
|
||||
|
||||
@javascript
|
||||
Scenario: Update table number if table chanes
|
||||
Scenario: Update table number and section if table changes
|
||||
Given there is an active list and order
|
||||
And I am signed in as supplier
|
||||
# wait until page is fully loaded
|
||||
And I wait 2 seconds
|
||||
When the active list changes to another table in another section
|
||||
And I wait 1 second
|
||||
Then the supplier main board table number should be updated to the new table number
|
||||
And the supplier main board section name should be updated to the new section
|
||||
|
||||
@@ -1,13 +1,11 @@
|
||||
step "the user scans a table QR code" do
|
||||
step 'there is a table'
|
||||
#page.execute_script "Quser.actions_for_table({table_id: '#{@table.id}'})"
|
||||
page.execute_script "App.__container__.lookup('route:application').transitionTo('table','#{@table.id}')"
|
||||
end
|
||||
|
||||
step "another user scans the QR code on the table" do
|
||||
step 'there is another signed in user user'
|
||||
visit user_root_path
|
||||
#page.execute_script "Quser.actions_for_table({table_id: '#{@table.id}'})"
|
||||
page.execute_script "App.__container__.lookup('route:application').transitionTo('table','#{@table.id}')"
|
||||
end
|
||||
|
||||
@@ -38,4 +36,3 @@ end
|
||||
step "the other user clicks the join table button" do
|
||||
find('.join-table-button').click
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user