Update test to not try to sign out
Because it will already be signed out
This commit is contained in:
parent
80e9f7f346
commit
eab7fa1a9f
|
@ -53,7 +53,14 @@ module QA
|
||||||
Page::Main::Login.perform { |login| login.sign_in_using_credentials(@user) }
|
Page::Main::Login.perform { |login| login.sign_in_using_credentials(@user) }
|
||||||
end
|
end
|
||||||
|
|
||||||
Resource::PersonalAccessToken.fabricate!.access_token
|
token = Resource::PersonalAccessToken.fabricate!.access_token
|
||||||
|
|
||||||
|
# If this is a new session, that tests that follow could fail if they
|
||||||
|
# try to sign in without starting a new session
|
||||||
|
# Sign out so the tests can successfully sign in
|
||||||
|
Page::Main::Menu.perform(&:sign_out) if @is_new_session
|
||||||
|
|
||||||
|
token
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -21,7 +21,6 @@ module QA
|
||||||
user_info[:api_client] = Runtime::API::Client.new(:gitlab, user: user_info[:user])
|
user_info[:api_client] = Runtime::API::Client.new(:gitlab, user: user_info[:user])
|
||||||
user_info[:api_client].personal_access_token
|
user_info[:api_client].personal_access_token
|
||||||
user_info[:project] = create_project(user_info[:user], user_info[:api_client], @project_name)
|
user_info[:project] = create_project(user_info[:user], user_info[:api_client], @project_name)
|
||||||
Page::Main::Menu.perform(&:sign_out)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -43,7 +42,7 @@ module QA
|
||||||
end
|
end
|
||||||
|
|
||||||
def create_project(user, api_client, project_name)
|
def create_project(user, api_client, project_name)
|
||||||
project = Resource::Project.fabricate! do |project|
|
project = Resource::Project.fabricate_via_api! do |project|
|
||||||
project.standalone = true
|
project.standalone = true
|
||||||
project.add_name_uuid = false
|
project.add_name_uuid = false
|
||||||
project.name = project_name
|
project.name = project_name
|
||||||
|
|
Loading…
Reference in New Issue