You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

22 lines
759 B

const {init} = require('../utils');
describe('Modal', () => {
beforeAll(async () => {
await init();
await element(by.text('Modal')).tap();
});
it('can open and close modal', async () => {
await element(by.id('openModal')).tap();
await expect(element(by.id('day'))).toBeVisible();
await expect(element(by.id('minutes'))).toBeVisible();
await expect(element(by.id('hour'))).toBeVisible();
await expect(element(by.id('ampm'))).toBeVisible();
await expect(element(by.id('month'))).not.toExist();
await expect(element(by.id('date'))).not.toExist();
await expect(element(by.id('year'))).not.toExist();
await element(by.text('CONFIRM')).tap();
await expect(element(by.id('day'))).not.toBeVisible();
});
});