summaryrefslogtreecommitdiff
path: root/spec/javascripts/registry
diff options
context:
space:
mode:
authorNick Kipling <nkipling@gitlab.com>2019-08-21 18:55:42 +0000
committerClement Ho <408677-ClemMakesApps@users.noreply.gitlab.com>2019-08-21 18:55:42 +0000
commit646913f4e2c141327bacaf8ee20279c120fdeedf (patch)
treeffbbf587d177a1c56f34159b7f18357addbf347f /spec/javascripts/registry
parentf91282c90b3718a8ee1690ef4e32ffaae7106e51 (diff)
downloadgitlab-ce-646913f4e2c141327bacaf8ee20279c120fdeedf.tar.gz
Fixed tech debt of using custom component
Changed the container registry to use the empty state component Removed the custom svg-component
Diffstat (limited to 'spec/javascripts/registry')
-rw-r--r--spec/javascripts/registry/components/app_spec.js11
1 files changed, 4 insertions, 7 deletions
diff --git a/spec/javascripts/registry/components/app_spec.js b/spec/javascripts/registry/components/app_spec.js
index e7675669f7a..5ea3f85a247 100644
--- a/spec/javascripts/registry/components/app_spec.js
+++ b/spec/javascripts/registry/components/app_spec.js
@@ -84,12 +84,7 @@ describe('Registry List', () => {
it('should render empty message', done => {
setTimeout(() => {
- expect(
- vm.$el
- .querySelector('p')
- .textContent.trim()
- .replace(/[\r\n]+/g, ' '),
- ).toEqual(
+ expect(vm.$el.querySelector('.js-no-container-images-text').textContent).toEqual(
'With the Container Registry, every project can have its own space to store its Docker images. More Information',
);
done();
@@ -124,7 +119,9 @@ describe('Registry List', () => {
it('should render invalid characters error message', done => {
setTimeout(() => {
- expect(vm.$el.querySelector('.container-message')).not.toBe(null);
+ expect(vm.$el.querySelector('p')).not.toContain(
+ 'We are having trouble connecting to Docker, which could be due to an issue with your project name or path. More information',
+ );
done();
});
});