Commit a54fca67 authored by Sanad Liaquat's avatar Sanad Liaquat

Fix LDAP specs

parent b1fb5b7e
...@@ -14,7 +14,10 @@ module QA ...@@ -14,7 +14,10 @@ module QA
# Create an admin personal access token and use it for the remaining API calls # Create an admin personal access token and use it for the remaining API calls
@original_personal_access_token = Runtime::Env.personal_access_token @original_personal_access_token = Runtime::Env.personal_access_token
Page::Main::Menu.perform(&:sign_out)
Page::Main::Menu.perform do |menu|
menu.sign_out if menu.has_personal_area?
end
Page::Main::Login.perform(&:sign_in_using_admin_credentials) Page::Main::Login.perform(&:sign_in_using_admin_credentials)
Runtime::Env.personal_access_token = Resource::PersonalAccessToken.fabricate!.access_token Runtime::Env.personal_access_token = Resource::PersonalAccessToken.fabricate!.access_token
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment