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.
 
 
 
 
 
 

32 lines
873 B

const {scrollWheel, expectDate, setMinuteInterval, init} = require('../utils');
const scrollMinuteWheel = () => scrollWheel(2, 1);
describe('Minute interval', () => {
beforeAll(async () => {
await init();
await element(by.text('Advanced')).tap();
});
it('1 minute (default)', async () => {
await setMinuteInterval(1);
await scrollMinuteWheel();
await expectDate('2000-01-01 00:01:00');
});
it('5 minutes', async () => {
await setMinuteInterval(5);
await scrollMinuteWheel();
await expectDate('2000-01-01 00:05:00');
});
it('15 minutes', async () => {
await setMinuteInterval(15);
await scrollMinuteWheel();
await expectDate('2000-01-01 00:15:00');
await scrollMinuteWheel();
await expectDate('2000-01-01 00:30:00');
await scrollMinuteWheel();
await expectDate('2000-01-01 00:45:00');
});
});