Created
August 17, 2017 15:22
-
-
Save carlows/dffa77418c67e2589bde2c05f9de6995 to your computer and use it in GitHub Desktop.
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
test('Profile view should render User details', async () => { | |
const { wrapper, store } = setupTests(); | |
const waitFor = createWaitForElement('.profile-username'); | |
await waitFor(wrapper); | |
// data is present here | |
console.log(wrapper.debug()); | |
const tag = wrapper.find('.profile-username'); | |
expect(tag.text()).toEqual('Foo Bar'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment