summaryrefslogtreecommitdiff
path: root/spec/frontend/ci/runner/components/cells/runner_summary_cell_spec.js
diff options
context:
space:
mode:
Diffstat (limited to 'spec/frontend/ci/runner/components/cells/runner_summary_cell_spec.js')
-rw-r--r--spec/frontend/ci/runner/components/cells/runner_summary_cell_spec.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/frontend/ci/runner/components/cells/runner_summary_cell_spec.js b/spec/frontend/ci/runner/components/cells/runner_summary_cell_spec.js
index 23ec170961a..64e9c11a584 100644
--- a/spec/frontend/ci/runner/components/cells/runner_summary_cell_spec.js
+++ b/spec/frontend/ci/runner/components/cells/runner_summary_cell_spec.js
@@ -82,14 +82,15 @@ describe('RunnerTypeCell', () => {
it('Displays the runner description', () => {
expect(wrapper.text()).toContain(mockRunner.description);
+ expect(wrapper.findByText(I18N_NO_DESCRIPTION).exists()).toBe(false);
});
- it('Displays the no runner description', () => {
+ it('Displays "No description" for missing runner description', () => {
createComponent({
description: null,
});
- expect(wrapper.text()).toContain(I18N_NO_DESCRIPTION);
+ expect(wrapper.findByText(I18N_NO_DESCRIPTION).classes()).toContain('gl-text-secondary');
});
it('Displays last contact', () => {