Commit ab2a1f65 authored by Desiree Chevalier's avatar Desiree Chevalier

Update test to run regardless of initial state

parent ab34a5e3
...@@ -94,6 +94,18 @@ module QA ...@@ -94,6 +94,18 @@ module QA
select_element(:project_creation_level_dropdown, value) select_element(:project_creation_level_dropdown, value)
click_element :save_permissions_changes_button click_element :save_permissions_changes_button
end end
def toggle_request_access
expand_section :permission_lfs_2fa_section
if find_element(:request_access_checkbox).checked?
uncheck_element :request_access_checkbox
else
check_element :request_access_checkbox
end
click_element :save_permissions_changes_button
end
end end
end end
end end
......
...@@ -53,10 +53,10 @@ module QA ...@@ -53,10 +53,10 @@ module QA
sign_in sign_in
@group.visit! @group.visit!
Page::Group::Menu.perform(&:click_group_general_settings_item) Page::Group::Menu.perform(&:click_group_general_settings_item)
Page::Group::Settings::General.perform(&:set_request_access_disabled) Page::Group::Settings::General.perform(&:toggle_request_access)
Page::Group::Menu.perform(&:click_group_general_settings_item) Page::Group::Menu.perform(&:click_group_general_settings_item)
Page::Group::Settings::General.perform(&:set_request_access_enabled) Page::Group::Settings::General.perform(&:toggle_request_access)
end end
it_behaves_like 'group audit event logs', ["Change request access enabled from true to false", "Change request access enabled from false to true"] it_behaves_like 'group audit event logs', ["Change request access enabled from true to false", "Change request access enabled from false to true"]
......
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