Created
July 29, 2018 19:07
-
-
Save Niryo/4eb3f6dac40e9971d0ff64348d379773 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
| const Kompot = require('kompot'); | |
| const component = Kompot.kompotRequire('./Dropdown'); | |
| describe('Dropdown', () => { | |
| it('Should display a list of items', async () => { | |
| await component.withProps({items: ['a','b','c']}).mount(); | |
| await element(by.id('dropdownTitle')).tap(); | |
| await expect(element(by.text('a'))).toBeVisible(); | |
| await expect(element(by.text('b'))).toBeVisible(); | |
| await expect(element(by.text('c'))).toBeVisible(); | |
| }); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment