add failing spec
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
|
||||
step "There is no user information stored in the local storage" do
|
||||
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
|
||||
@@ -10,8 +10,13 @@ step "I visit the user obtain token path" do
|
||||
visit user_root_path # obtain token through ember application
|
||||
end
|
||||
|
||||
step "I am signed in as a user" do
|
||||
step "there is a user" do
|
||||
@user ||= create :user
|
||||
end
|
||||
|
||||
step "I am signed in as a user" do
|
||||
step "there is a confirmed and open supplier"
|
||||
step "there is a user"
|
||||
visit test_login_admin_users_path(email: @user.email)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user