Skip to content

Instantly share code, notes, and snippets.

@Niryo
Created July 29, 2018 19:07
Show Gist options
  • Select an option

  • Save Niryo/4eb3f6dac40e9971d0ff64348d379773 to your computer and use it in GitHub Desktop.

Select an option

Save Niryo/4eb3f6dac40e9971d0ff64348d379773 to your computer and use it in GitHub Desktop.
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