Commit 90fd4c9c authored by Walmyr Lima e Silva Filho's avatar Walmyr Lima e Silva Filho

Merge branch 'qa-shl-fix-project-audit-logs-specs' into 'master'

Create a new project for teach spec and for each retry

Closes #35602

See merge request gitlab-org/gitlab!22022
parents 1e4f5d5b 9278b13a
...@@ -12,8 +12,8 @@ module QA ...@@ -12,8 +12,8 @@ module QA
end end
describe 'Project audit logs' do describe 'Project audit logs' do
before(:all) do let(:project) do
@project = Resource::Project.fabricate_via_api! do |project| Resource::Project.fabricate_via_api! do |project|
project.name = 'awesome-project' project.name = 'awesome-project'
project.initialize_with_readme = true project.initialize_with_readme = true
end end
...@@ -37,7 +37,7 @@ module QA ...@@ -37,7 +37,7 @@ module QA
context "Add user access as guest" do context "Add user access as guest" do
before do before do
@project.visit! project.visit!
Page::Project::Menu.perform(&:go_to_members_settings) Page::Project::Menu.perform(&:go_to_members_settings)
Page::Project::Settings::Members.perform do |members| Page::Project::Settings::Members.perform do |members|
...@@ -55,7 +55,7 @@ module QA ...@@ -55,7 +55,7 @@ module QA
deploy_key_value = key.public_key deploy_key_value = key.public_key
Resource::DeployKey.fabricate_via_browser_ui! do |resource| Resource::DeployKey.fabricate_via_browser_ui! do |resource|
resource.project = @project resource.project = project
resource.title = deploy_key_title resource.title = deploy_key_title
resource.key = deploy_key_value resource.key = deploy_key_value
end end
...@@ -66,7 +66,7 @@ module QA ...@@ -66,7 +66,7 @@ module QA
context "Change visibility" do context "Change visibility" do
before do before do
@project.visit! project.visit!
Page::Project::Menu.perform(&:go_to_general_settings) Page::Project::Menu.perform(&:go_to_general_settings)
Page::Project::Settings::Main.perform do |settings| Page::Project::Settings::Main.perform do |settings|
...@@ -82,7 +82,7 @@ module QA ...@@ -82,7 +82,7 @@ module QA
context "Export file download" do context "Export file download" do
before do before do
@project.visit! project.visit!
Page::Project::Menu.perform(&:go_to_general_settings) Page::Project::Menu.perform(&:go_to_general_settings)
Page::Project::Settings::Main.perform do |settings| Page::Project::Settings::Main.perform do |settings|
...@@ -99,7 +99,7 @@ module QA ...@@ -99,7 +99,7 @@ module QA
context "Project archive and unarchive" do context "Project archive and unarchive" do
before do before do
@project.visit! project.visit!
# Project archive # Project archive
Page::Project::Menu.perform(&:go_to_general_settings) Page::Project::Menu.perform(&:go_to_general_settings)
......
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