Commit 236ad879 authored by Tanya Pazitny's avatar Tanya Pazitny

Merge branch 'qa-fix-instance-audit-log-spec' into 'master'

Fix instance audit log spec

Closes #34881

See merge request gitlab-org/gitlab!22131
parents 93916900 e97101e0
...@@ -11,7 +11,13 @@ module QA ...@@ -11,7 +11,13 @@ module QA
end end
def has_audit_log_row?(text) def has_audit_log_row?(text)
has_element?(:admin_audit_log_row_content, text: text) # Sometimes the audit logs are not displayed in the UI
# right away so a refresh may be needed.
# https://gitlab.com/gitlab-org/gitlab/issues/119203
# TODO: https://gitlab.com/gitlab-org/gitlab/issues/195424
wait(reload: true) do
has_element?(:admin_audit_log_row_content, text: text)
end
end end
end end
end end
......
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