Fixed failing tests
This commit is contained in:
parent
f48f51ac7e
commit
d5f145bf8b
2 changed files with 3 additions and 3 deletions
|
@ -12,7 +12,7 @@
|
||||||
%p
|
%p
|
||||||
Your private token is used to access application resources without authentication.
|
Your private token is used to access application resources without authentication.
|
||||||
.col-lg-9
|
.col-lg-9
|
||||||
= form_for @user, url: reset_private_token_profile_path, method: :put do |f|
|
= form_for @user, url: reset_private_token_profile_path, method: :put, html: {class: "private-token"} do |f|
|
||||||
%p.cgray
|
%p.cgray
|
||||||
- if current_user.private_token
|
- if current_user.private_token
|
||||||
= label_tag "token", "Private token", class: "label-light"
|
= label_tag "token", "Private token", class: "label-light"
|
||||||
|
|
|
@ -99,9 +99,9 @@ class Spinach::Features::Profile < Spinach::FeatureSteps
|
||||||
end
|
end
|
||||||
|
|
||||||
step 'I reset my token' do
|
step 'I reset my token' do
|
||||||
page.within '.update-token' do
|
page.within '.private-token' do
|
||||||
@old_token = @user.private_token
|
@old_token = @user.private_token
|
||||||
click_button "Reset"
|
click_button "Reset private token"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue