Last active
August 22, 2017 11:50
-
-
Save mfrachet/4813cae1886264ba3c93ed633837834a to your computer and use it in GitHub Desktop.
detox-assertion
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('Handle changes on input text', () => { | |
it('should have displayed the Add button when a text is filled in the input', async () => { | |
const itemAdder = await element(by.id('inputAdder')); | |
const touchableAdder = await element(by.id('touchableAdder')); | |
// Check that it's not visible before typing text | |
await expect(touchableAdder).toBeNotVisible(); | |
// Focus the input field | |
await itemAdder.tap(); | |
await itemAdder.typeText('Item'); | |
// Check that it's visible after typing text | |
await expect(touchableAdder).toBeVisible(); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment