summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--changelogs/unreleased/52886-fix-broken-master.yml5
-rw-r--r--spec/javascripts/vue_shared/components/ci_badge_link_spec.js2
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;
});