Merge branch '52886-fix-broken-master' into 'master'

Fixes broken test in master for ci status bagde

Closes #52886

See merge request gitlab-org/gitlab-ce!22465
This commit is contained in:
Phil Hughes 2018-10-18 15:59:36 +00:00
commit 80351981d2
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
title: Fixes broken test in master
merge_request:
author:
type: fixed

View file

@ -86,7 +86,7 @@ describe('CI Badge Link Component', () => {
expect(vm.$el.getAttribute('href')).toEqual(statuses[status].details_path);
expect(vm.$el.textContent.trim()).toEqual(statuses[status].text);
expect(vm.$el.getAttribute('class')).toEqual(`ci-status ci-${statuses[status].group}`);
expect(vm.$el.getAttribute('class')).toContain(`ci-status ci-${statuses[status].group}`);
expect(vm.$el.querySelector('svg')).toBeDefined();
return vm;
});