Skip to content

Instantly share code, notes, and snippets.

@CodingItWrong
Last active January 4, 2019 02:35
Show Gist options
  • Save CodingItWrong/5a90198f3c2f910572fd316933941339 to your computer and use it in GitHub Desktop.
Save CodingItWrong/5a90198f3c2f910572fd316933941339 to your computer and use it in GitHub Desktop.
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