Fix all failing specs

This commit is contained in:
2015-01-21 19:18:12 +01:00
parent 9a8c364d38
commit 4462be55d1
11 changed files with 29 additions and 28 deletions
@@ -2,8 +2,8 @@
step "there is no user information stored in the local storage" do
visit '/'
page.execute_script %|Qstorage = window.localStorage|
page.evaluate_script(%|Qstorage.getItem('user_id')|).should be_blank
page.evaluate_script(%|Qstorage.getItem('auth_token')|).should be_blank
page.execute_script(%|Qstorage.removeItem('user_id')|)
page.execute_script(%|Qstorage.removeItem('auth_token')|)
end
step "I visit the user obtain token path" do
@@ -33,11 +33,7 @@ step "there is another table with an active list of another user" do
end
step "the user scans a QR code of another not occupied table" do
r = page.evaluate_script %|
c = App.__container__.lookup('controller:select_qrcode');
c.send('selectQr', {_id: "#{@other_table.id}"});
c.toString()
|
page.execute_script %|App.__container__.lookup('controller:select_qrcode').send('selectQr', {_id: "#{@other_table.id}"})|
#page.execute_script "Quser.actions_for_table({table_id: '#{@other_table.id}'})"
end
@@ -1,9 +1,9 @@
step "the user fills in the feedback field" do
find('.feedback-field').set "Nice app!"
js_set_field '.feedback-field', "Nice app!"
end
step "the user clicks on the submit feedback button" do
find(".submit-feedback-button").click
js_click ".submit-feedback-button"
end
step "the user should see the feedback submitted message" do
@@ -1,6 +1,5 @@
step "the user opens the side menu" do
page.execute_script %|$('.toggle-side-menu').click()|
sleep 1
js_click '.toggle-side-menu'
end
step "the user opens the side menu again" do
@@ -8,8 +7,7 @@ step "the user opens the side menu again" do
end
step "the user clicks on the lists link in the side menu" do
page.execute_script %|$('.side-menu-lists').click()|
sleep 2
js_click '.side-menu-lists'
end
step "the user clicks on the about link in the side menu" do