From 5eb42830fd2b9910a59709850749f60fcedc2bee Mon Sep 17 00:00:00 2001 From: mattwr18 Date: Thu, 16 Jan 2020 15:47:55 +0100 Subject: [PATCH] Revert unintended changes to ContributionForm.spec --- webapp/components/ContributionForm/ContributionForm.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) })