Descomentado test
gitea/salix/pipeline/head There was a failure building this commit Details

This commit is contained in:
Joan Sanchez 2020-08-18 13:55:38 +02:00
parent 540d5e9e71
commit 1bcf4ff8a6
1 changed files with 9 additions and 10 deletions

View File

@ -1,7 +1,7 @@
import selectors from '../../helpers/selectors.js';
import getBrowser from '../../helpers/puppeteer';
describe('Worker calendar path', () => {
fdescribe('Worker calendar path', () => {
let reasonableTimeBetweenClicks = 400;
let browser;
let page;
@ -122,17 +122,16 @@ describe('Worker calendar path', () => {
expect(result).toContain(' 5 ');
});
// #1361 worker.calendar "hopefully this test works straight away after refreshing holidays per year on each filtering."
// it('should use the year selector to go to the previous year', async() => {
// const date = new Date();
// const lastYear = (date.getFullYear() - 1).toString();
it('should use the year selector to go to the previous year', async() => {
const date = new Date();
const lastYear = (date.getFullYear() - 1).toString();
// await page.autocompleteSearch(selectors.workerCalendar.year, lastYear);
await page.autocompleteSearch(selectors.workerCalendar.year, lastYear);
// await page.waitFor(reasonableTimeBetweenClicks);
// const result = await page.waitToGetProperty(selectors.workerCalendar.totalHolidaysUsed, 'innerText');
await page.waitFor(reasonableTimeBetweenClicks);
const result = await page.waitToGetProperty(selectors.workerCalendar.totalHolidaysUsed, 'innerText');
// expect(result).toContain(' 0 ');
// });
expect(result).toContain(' 0 ');
});
});
});