Commit a11e51e8 authored by Andrejs Cunskis's avatar Andrejs Cunskis

Merge branch '345521-fix-npm-project-level-spec' into 'master'

Fix the project level NPM QA spec

See merge request gitlab-org/gitlab!74685
parents ab5a070c 320a1ba1
...@@ -199,7 +199,7 @@ module QA ...@@ -199,7 +199,7 @@ module QA
Page::Project::Artifact::Show.perform do |artifacts| Page::Project::Artifact::Show.perform do |artifacts|
artifacts.go_to_directory('node_modules') artifacts.go_to_directory('node_modules')
artifacts.go_to_directory("@#{registry_scope}") artifacts.go_to_directory("@#{registry_scope}")
expect(artifacts).to have_content( "#{project.name}") expect(artifacts).to have_content("#{project.name}")
end end
project.visit! project.visit!
......
...@@ -91,7 +91,7 @@ module QA ...@@ -91,7 +91,7 @@ module QA
file_path: 'package.json', file_path: 'package.json',
content: <<~JSON content: <<~JSON
{ {
"name": "@#{registry_scope}/mypackage", "name": "#{package.name}",
"version": "1.0.0", "version": "1.0.0",
"description": "Example package for GitLab npm registry", "description": "Example package for GitLab npm registry",
"publishConfig": { "publishConfig": {
...@@ -133,7 +133,7 @@ module QA ...@@ -133,7 +133,7 @@ module QA
end end
end end
it "push and pull a npm package via CI using a #{params[:token_name]}", quarantine: { issue: 'https://gitlab.com/gitlab-org/gitlab/-/issues/344537', type: :investigating } do it "push and pull a npm package via CI using a #{params[:token_name]}" do
Resource::Repository::Commit.fabricate_via_api! do |commit| Resource::Repository::Commit.fabricate_via_api! do |commit|
commit.project = project commit.project = project
commit.commit_message = 'Add .gitlab-ci.yml' commit.commit_message = 'Add .gitlab-ci.yml'
...@@ -168,7 +168,7 @@ module QA ...@@ -168,7 +168,7 @@ module QA
Page::Project::Artifact::Show.perform do |artifacts| Page::Project::Artifact::Show.perform do |artifacts|
artifacts.go_to_directory('node_modules') artifacts.go_to_directory('node_modules')
artifacts.go_to_directory("@#{registry_scope}") artifacts.go_to_directory("@#{registry_scope}")
expect(artifacts).to have_content("mypackage") expect(artifacts).to have_content('mypackage')
end end
project.visit! project.visit!
......
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