blob: 6c791a0ae0a391de9b2429619cfca9d12a80a7f9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# frozen_string_literal: true
module QA
RSpec.describe 'Data Stores', :smoke, product_group: :tenant_scale do
describe 'Project' do
shared_examples 'successful project creation' do
it 'creates a new project' do
Page::Project::Show.perform do |project_page|
expect(project_page).to have_content(project_name)
expect(project_page).to have_content('The repository for this project is empty')
end
end
end
before do
Flow::Login.sign_in
project
end
context 'in group', testcase: 'https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/347876' do
let(:project_name) { "project-in-group-#{SecureRandom.hex(8)}" }
let(:project) do
Resource::Project.fabricate_via_browser_ui! do |project|
project.name = project_name
project.description = nil
end
end
it_behaves_like 'successful project creation'
end
context(
'in personal namespace',
testcase: 'https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/347643',
quarantine: {
type: :investigating,
issue: 'https://gitlab.com/gitlab-org/gitlab/-/issues/425904'
}
) do
let(:project_name) { "project-in-personal-namespace-#{SecureRandom.hex(8)}" }
let(:project) do
Resource::Project.fabricate_via_browser_ui! do |project|
project.name = project_name
project.personal_namespace = Runtime::User.username
project.description = nil
end
end
it_behaves_like 'successful project creation'
end
end
end
end
|