diff --git a/webapp/components/ContributionForm/ContributionForm.spec.js b/webapp/components/ContributionForm/ContributionForm.spec.js index a52169bd1..7bcaa8212 100644 --- a/webapp/components/ContributionForm/ContributionForm.spec.js +++ b/webapp/components/ContributionForm/ContributionForm.spec.js @@ -258,7 +258,7 @@ describe('ContributionForm.vue', () => { describe('cancel', () => { it('calls $router.back() when cancel button clicked', () => { - cancelBtn = wrapper.find('.cancel-button') + cancelBtn = wrapper.find('[data-test="cancel-button"]') cancelBtn.trigger('click') expect(mocks.$router.back).toHaveBeenCalledTimes(1) })