Commit 2d2a6137 authored by Walmyr Lima e Silva Filho's avatar Walmyr Lima e Silva Filho

Merge branch 'qa-update-group-audit-logs-2-spec' into 'master'

Update access request order in group audit logs 2 spec

Closes #196726

See merge request gitlab-org/gitlab!23012
parents db81a71f ab2a1f65
......@@ -94,6 +94,18 @@ module QA
select_element(:project_creation_level_dropdown, value)
click_element :save_permissions_changes_button
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
......
......@@ -53,10 +53,10 @@ module QA
sign_in
@group.visit!
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)
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)
end
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