diff options
Diffstat (limited to 'spec/frontend/vue_mr_widget/components/artifacts_list_app_spec.js')
-rw-r--r-- | spec/frontend/vue_mr_widget/components/artifacts_list_app_spec.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/frontend/vue_mr_widget/components/artifacts_list_app_spec.js b/spec/frontend/vue_mr_widget/components/artifacts_list_app_spec.js index 49ed796d9a8..7d593a77bf3 100644 --- a/spec/frontend/vue_mr_widget/components/artifacts_list_app_spec.js +++ b/spec/frontend/vue_mr_widget/components/artifacts_list_app_spec.js @@ -44,6 +44,7 @@ describe('Merge Requests Artifacts list app', () => { const findButtons = () => wrapper.findAll('button'); const findTitle = () => wrapper.find('.js-title'); + const findErrorMessage = () => wrapper.find('.js-error-state'); const findTableRows = () => wrapper.findAll('tbody tr'); describe('while loading', () => { @@ -109,13 +110,12 @@ describe('Merge Requests Artifacts list app', () => { }); it('renders the error state', () => { - expect(findTitle().text()).toBe('An error occurred while fetching the artifacts'); + expect(findErrorMessage().text()).toBe('An error occurred while fetching the artifacts'); }); - it('renders disabled buttons', () => { + it('does not render buttons', () => { const buttons = findButtons(); - expect(buttons.at(0).attributes('disabled')).toBe('disabled'); - expect(buttons.at(1).attributes('disabled')).toBe('disabled'); + expect(buttons.exists()).toBe(false); }); }); }); |