Acceptance tests for user
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
step "the user scans a table QR code" do
|
||||
step 'there is a table'
|
||||
page.execute_script "App.__container__.lookup('route:application').transitionTo('table','#{@table.id}')"
|
||||
when_ember_is_ready do
|
||||
page.execute_script "MozoUser.__container__.lookup('route:application').transitionTo('table','#{@table.id}')"
|
||||
end
|
||||
end
|
||||
|
||||
step "I am on the user homepage" do
|
||||
@@ -8,12 +10,12 @@ step "I am on the user homepage" do
|
||||
end
|
||||
|
||||
step "the user is on the homepage" do
|
||||
visit '/user'
|
||||
user_visit '/'
|
||||
end
|
||||
|
||||
step "the user should be redirected to the user order overview page" do
|
||||
#route_should_be 'user#active_list'
|
||||
ember_route_should_be "/active_list"
|
||||
ember_route_should_be "/active-list"
|
||||
end
|
||||
|
||||
step "the user should be redirected to the archived list path" do
|
||||
|
||||
Reference in New Issue
Block a user