diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-20 12:55:51 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-20 12:55:51 +0300 |
commit | e8d2c2579383897a1dd7f9debd359abe8ae8373d (patch) | |
tree | c42be41678c2586d49a75cabce89322082698334 /spec/features/projects/infrastructure_registry_spec.rb | |
parent | fc845b37ec3a90aaa719975f607740c22ba6a113 (diff) |
Add latest changes from gitlab-org/gitlab@14-1-stable-eev14.1.0-rc42
Diffstat (limited to 'spec/features/projects/infrastructure_registry_spec.rb')
-rw-r--r-- | spec/features/projects/infrastructure_registry_spec.rb | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/spec/features/projects/infrastructure_registry_spec.rb b/spec/features/projects/infrastructure_registry_spec.rb index 9cab4ebeb3a..c3cb3955092 100644 --- a/spec/features/projects/infrastructure_registry_spec.rb +++ b/spec/features/projects/infrastructure_registry_spec.rb @@ -28,13 +28,30 @@ RSpec.describe 'Infrastructure Registry' do visit_project_infrastructure_registry end - context 'when there are packages' do + context 'when there are modules' do let_it_be(:terraform_module) { create(:terraform_module_package, project: project, created_at: 1.day.ago, version: '1.0.0') } let_it_be(:terraform_module2) { create(:terraform_module_package, project: project, created_at: 2.days.ago, version: '2.0.0') } let_it_be(:packages) { [terraform_module, terraform_module2] } it_behaves_like 'packages list' + context 'details link' do + it 'navigates to the correct url' do + page.within(packages_table_selector) do + click_link terraform_module.name + end + + expect(page).to have_current_path(project_infrastructure_registry_path(terraform_module.project, terraform_module)) + + expect(page).to have_css('.packages-app h1[data-testid="title"]', text: terraform_module.name) + + page.within(%Q([name="#{terraform_module.name}"])) do + expect(page).to have_content('Provision instructions') + expect(page).to have_content('Registry setup') + end + end + end + context 'deleting a package' do let_it_be(:project) { create(:project) } let_it_be(:terraform_module) { create(:terraform_module_package, project: project) } |