before switch to ubuntu commit since apple has issues

This commit is contained in:
2015-08-13 12:54:02 +02:00
parent 6b764fcd39
commit 919474b54c
17 changed files with 81 additions and 41 deletions
@@ -3,12 +3,6 @@ step "the user scans a table QR code" do
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 "App.__container__.lookup('route:application').transitionTo('table','#{@table.id}')"
end
step "I am on the user homepage" do
step "the user is on the homepage"
end
@@ -14,6 +14,14 @@ step "the original user should not see the join request anymore" do
page.should_not have_content request_text
end
step "another user scans the QR code on the table" do
step 'there is another signed in user user'
visit user_root_path
when_ember_is_ready do
page.execute_script "App.__container__.lookup('route:application').transitionTo('table','#{@table.id}')"
end
end
step "the original user approves the other user's join request" do
find('.join-request-approve').click
end