Last active
January 4, 2019 02:35
-
-
Save CodingItWrong/5a90198f3c2f910572fd316933941339 to your computer and use it in GitHub Desktop.
This file contains 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
const { reloadApp } = require('detox-expo-helpers'); | |
describe('Creating a message', () => { | |
beforeEach(async () => { | |
await reloadApp(); | |
}); | |
it('should add the message to the list', async () => { | |
await element(by.id('messageText')).tap(); | |
await element(by.id('messageText')).typeText('New message'); | |
await element(by.id('sendButton')).tap(); | |
await expect(element(by.id('messageText'))).toHaveText(''); | |
await expect(element(by.label('New message'))).toBeVisible(); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment