Commit dbb9ad06 authored by Sanad Liaquat's avatar Sanad Liaquat Committed by Dan Davison

Fix create group audit event e2e spec

Ensure the group path is unique so that it always gets created
parent 02f99edf
......@@ -45,14 +45,14 @@ module QA
let(:user) { Resource::User.fabricate_or_use(Runtime::Env.gitlab_qa_username_1, Runtime::Env.gitlab_qa_password_1) }
context 'Add group', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/733' do
let(:group_name) { 'new group' }
before do
@event_count = 0
sign_in
Resource::Group.fabricate_via_browser_ui! do |group|
group.name = group_name
end.visit!
group = Resource::Group.fabricate_via_browser_ui! do |group|
group.path = "group-to-test-audit-event-log-#{SecureRandom.hex(8)}"
end
expect(page).to have_text("Group '#{group.path}' was successfully created")
end
it_behaves_like 'audit event', ['Added group']
......
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