diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2018-10-18 15:09:06 +0100 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2018-10-18 15:09:06 +0100 |
commit | d6b684e42cfaec67887b97385cf819ea8afa91b8 (patch) | |
tree | c233b85666f9a2867c25d7a526d83efa91bee6fc | |
parent | 0621c8ba8c772966d38dea7e6440ac28e5421d4c (diff) | |
download | gitlab-ce-d6b684e42cfaec67887b97385cf819ea8afa91b8.tar.gz |
Fixes broken test in master for ci status bagde
-rw-r--r-- | changelogs/unreleased/52886-fix-broken-master.yml | 5 | ||||
-rw-r--r-- | spec/javascripts/vue_shared/components/ci_badge_link_spec.js | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/changelogs/unreleased/52886-fix-broken-master.yml b/changelogs/unreleased/52886-fix-broken-master.yml new file mode 100644 index 00000000000..c6488c83e3b --- /dev/null +++ b/changelogs/unreleased/52886-fix-broken-master.yml @@ -0,0 +1,5 @@ +--- +title: Fixes broken test in master +merge_request: +author: +type: fixed diff --git a/spec/javascripts/vue_shared/components/ci_badge_link_spec.js b/spec/javascripts/vue_shared/components/ci_badge_link_spec.js index 21e7afaf78f..4b0b7ba66e5 100644 --- a/spec/javascripts/vue_shared/components/ci_badge_link_spec.js +++ b/spec/javascripts/vue_shared/components/ci_badge_link_spec.js @@ -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; }); |