Acceptance tests for user

This commit is contained in:
2015-09-17 17:46:33 +02:00
parent 8e931cabd4
commit cb744943bd
35 changed files with 91 additions and 49 deletions
+5 -3
View File
@@ -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