Last active
October 28, 2018 21:47
-
-
Save Robdel12/3766780fee0ed43f250c5a3e2e925734 to your computer and use it in GitHub Desktop.
For this blog post: https://medium.com/@robdel12/jest-bigtest-interactor-component-test-%EF%B8%8F-11b1947954c8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('Modal test' () => { | |
let modal = new ModalInteractor('.modal'); | |
it('has a disabled submit button with empty data', async () => { | |
await mount(()=> <Modal />); | |
expect(modal.confirmationButton.isDisabled).toBe(true); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment