turn 1 it into 3 to catch future errors if any
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Bernat 2020-03-17 16:26:17 +01:00
parent 0ee4c4c907
commit 72ffc808f1
1 changed files with 13 additions and 2 deletions

View File

@ -310,11 +310,22 @@ describe('Worker time control path', () => {
describe('as HHRR', () => { describe('as HHRR', () => {
describe('on Saturday', () => { describe('on Saturday', () => {
it('should log in and navigate to timeControl', async() => { it('should log in as hr and pick the worker module', async() => {
await page.loginAndModule('hr', 'worker'); await page.loginAndModule('hr', 'worker');
});
it('should search for a worker and access to its summary', async() => {
await page.accessToSearchResult('HankPym'); await page.accessToSearchResult('HankPym');
let url = await page.expectURL('/summary');
expect(url).toBe(true);
});
it('should access to the time control section', async() => {
await page.accessToSection('worker.card.timeControl'); await page.accessToSection('worker.card.timeControl');
await page.waitForContentLoaded(); let url = await page.expectURL('/time-control');
expect(url).toBe(true);
}); });
it('should lovingly scan in Hank Pym', async() => { it('should lovingly scan in Hank Pym', async() => {