Skip to content

Commit

Permalink
refactor(form-fields.spec.js): change the way the randon field is acc…
Browse files Browse the repository at this point in the history
…essed and clicked on the test
  • Loading branch information
amoncaldas committed Jan 14, 2022
1 parent 6256c8e commit aeadef8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/integration/specs/form-fields.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ describe('Form-fields', () => {
expect(wrapper.contains('.form-fields')).toBe(true)
expect(wrapper.findComponent(FormFields).exists()).toBe(true)
await new Promise(resolve => setTimeout(resolve, 5000))
await wrapper.vm.$el.querySelectorAll('.generate-random')[0].click()
await wrapper.find('.generate-random').trigger('click')
await wrapper.vm.$nextTick()
expect(wrapper.emitted().fieldUpdated).toBeTruthy()
done()
Expand Down

0 comments on commit aeadef8

Please sign in to comment.