Revert unintended changes to ContributionForm.spec

This commit is contained in:
mattwr18 2020-01-16 15:47:55 +01:00
parent 851babeac3
commit 5eb42830fd

View File

@ -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)
})