Updated some wait values

This commit is contained in:
Madhurya Liyanage 2023-05-10 15:24:44 +05:30
parent ff078cbc80
commit e301a937f7
5 changed files with 76 additions and 76 deletions

View File

@ -121,8 +121,8 @@ describe.only('Consulting Fees Path - Without Files', () => {
{ timeout: 60000 }
);
cy.wait(5000);
cy.url().then((currentUrl) => {
//cy.wait(5000);
cy.url().then((currentUrl) => {
// if url is "/tasks/8/d37c2f0f-016a-4066-b669-e0925b759560"
// extract the digits after /tasks
@ -250,8 +250,8 @@ describe.only('Consulting Fees Path - Without Files', () => {
{ timeout: 60000 }
);
cy.wait(5000);
cy.url().then((currentUrl) => {
//cy.wait(5000);
cy.url().then((currentUrl) => {
// if url is "/tasks/8/d37c2f0f-016a-4066-b669-e0925b759560"
// extract the digits after /tasks
const processInstanceId = currentUrl.match(/(?<=\/tasks\/)\d+/)[0];
@ -379,8 +379,8 @@ describe.only('Consulting Fees Path - Without Files', () => {
{ timeout: 60000 }
);
cy.wait(5000);
cy.url().then((currentUrl) => {
//cy.wait(5000);
cy.url().then((currentUrl) => {
// if url is "/tasks/8/d37c2f0f-016a-4066-b669-e0925b759560"
// extract the digits after /tasks
const processInstanceId = currentUrl.match(/(?<=\/tasks\/)\d+/)[0];
@ -533,8 +533,8 @@ describe('Consulting Fees Path - With Files', () => {
{ timeout: 60000 }
);
cy.wait(5000);
cy.url().then((currentUrl) => {
//cy.wait(5000);
cy.url().then((currentUrl) => {
// if url is "/tasks/8/d37c2f0f-016a-4066-b669-e0925b759560"
// extract the digits after /tasks
const processInstanceId = currentUrl.match(/(?<=\/tasks\/)\d+/)[0];
@ -701,8 +701,8 @@ describe('Consulting Fees Path - With Files', () => {
{ timeout: 60000 }
);
cy.wait(5000);
cy.url().then((currentUrl) => {
//cy.wait(5000);
cy.url().then((currentUrl) => {
// if url is "/tasks/8/d37c2f0f-016a-4066-b669-e0925b759560"
// extract the digits after /tasks
const processInstanceId = currentUrl.match(/(?<=\/tasks\/)\d+/)[0];
@ -872,8 +872,8 @@ describe('Consulting Fees Path - With Files', () => {
{ timeout: 60000 }
);
cy.wait(5000);
cy.url().then((currentUrl) => {
//cy.wait(5000);
cy.url().then((currentUrl) => {
// if url is "/tasks/8/d37c2f0f-016a-4066-b669-e0925b759560"
// extract the digits after /tasks
const processInstanceId = currentUrl.match(/(?<=\/tasks\/)\d+/)[0];

View File

@ -125,7 +125,7 @@ describe.only('Equipment Path - Without Files', () => {
{ timeout: 60000 }
);
cy.wait(5000);
//cy.wait(5000);
cy.url().then((currentUrl) => {
// if url is "/tasks/8/d37c2f0f-016a-4066-b669-e0925b759560"
// extract the digits after /tasks
@ -280,7 +280,7 @@ describe.only('Equipment Path - Without Files', () => {
{ timeout: 60000 }
);
cy.wait(5000);
//cy.wait(5000);
cy.url().then((currentUrl) => {
// if url is "/tasks/8/d37c2f0f-016a-4066-b669-e0925b759560"
// extract the digits after /tasks
@ -403,7 +403,7 @@ describe.only('Equipment Path - Without Files', () => {
{ timeout: 60000 }
);
cy.wait(5000);
//cy.wait(5000);
cy.url().then((currentUrl) => {
// if url is "/tasks/8/d37c2f0f-016a-4066-b669-e0925b759560"
// extract the digits after /tasks
@ -551,7 +551,7 @@ describe.only('Equipment Path - Without Files', () => {
{ timeout: 60000 }
);
cy.wait(5000);
//cy.wait(5000);
cy.url().then((currentUrl) => {
// if url is "/tasks/8/d37c2f0f-016a-4066-b669-e0925b759560"
// extract the digits after /tasks
@ -659,7 +659,7 @@ describe.only('Equipment Path - Without Files', () => {
{ timeout: 60000 }
);
cy.wait(5000);
//cy.wait(5000);
cy.url().then((currentUrl) => {
// if url is "/tasks/8/d37c2f0f-016a-4066-b669-e0925b759560"
// extract the digits after /tasks
@ -767,7 +767,7 @@ describe.only('Equipment Path - Without Files', () => {
{ timeout: 60000 }
);
cy.wait(5000);
//cy.wait(5000);
cy.url().then((currentUrl) => {
// if url is "/tasks/8/d37c2f0f-016a-4066-b669-e0925b759560"
// extract the digits after /tasks
@ -893,7 +893,7 @@ describe.only('Equipment Path - Without Files', () => {
{ timeout: 60000 }
);
cy.wait(5000);
//cy.wait(5000);
cy.url().then((currentUrl) => {
// if url is "/tasks/8/d37c2f0f-016a-4066-b669-e0925b759560"
// extract the digits after /tasks
@ -1015,7 +1015,7 @@ describe.only('Equipment Path - Without Files', () => {
{ timeout: 60000 }
);
cy.wait(5000);
//cy.wait(5000);
cy.url().then((currentUrl) => {
// if url is "/tasks/8/d37c2f0f-016a-4066-b669-e0925b759560"
// extract the digits after /tasks
@ -1136,7 +1136,7 @@ describe.only('Equipment Path - Without Files', () => {
{ timeout: 60000 }
);
cy.wait(5000);
//cy.wait(5000);
cy.url().then((currentUrl) => {
// if url is "/tasks/8/d37c2f0f-016a-4066-b669-e0925b759560"
// extract the digits after /tasks
@ -1282,7 +1282,7 @@ describe('Equipment Path - With Files', () => {
{ timeout: 60000 }
);
cy.wait(5000);
//cy.wait(5000);
cy.url().then((currentUrl) => {
// if url is "/tasks/8/d37c2f0f-016a-4066-b669-e0925b759560"
// extract the digits after /tasks
@ -1476,7 +1476,7 @@ describe('Equipment Path - With Files', () => {
{ timeout: 60000 }
);
cy.wait(5000);
//cy.wait(5000);
cy.url().then((currentUrl) => {
// if url is "/tasks/8/d37c2f0f-016a-4066-b669-e0925b759560"
// extract the digits after /tasks
@ -1639,7 +1639,7 @@ describe('Equipment Path - With Files', () => {
{ timeout: 60000 }
);
cy.wait(5000);
//cy.wait(5000);
cy.url().then((currentUrl) => {
// if url is "/tasks/8/d37c2f0f-016a-4066-b669-e0925b759560"
// extract the digits after /tasks
@ -1828,7 +1828,7 @@ describe('Equipment Path - With Files', () => {
{ timeout: 60000 }
);
cy.wait(5000);
//cy.wait(5000);
cy.url().then((currentUrl) => {
// if url is "/tasks/8/d37c2f0f-016a-4066-b669-e0925b759560"
// extract the digits after /tasks
@ -1978,7 +1978,7 @@ describe('Equipment Path - With Files', () => {
{ timeout: 60000 }
);
cy.wait(5000);
//cy.wait(5000);
cy.url().then((currentUrl) => {
// if url is "/tasks/8/d37c2f0f-016a-4066-b669-e0925b759560"
// extract the digits after /tasks
@ -2128,7 +2128,7 @@ describe('Equipment Path - With Files', () => {
{ timeout: 60000 }
);
cy.wait(5000);
//cy.wait(5000);
cy.url().then((currentUrl) => {
// if url is "/tasks/8/d37c2f0f-016a-4066-b669-e0925b759560"
// extract the digits after /tasks
@ -2295,7 +2295,7 @@ describe('Equipment Path - With Files', () => {
{ timeout: 60000 }
);
cy.wait(5000);
//cy.wait(5000);
cy.url().then((currentUrl) => {
// if url is "/tasks/8/d37c2f0f-016a-4066-b669-e0925b759560"
// extract the digits after /tasks
@ -2458,7 +2458,7 @@ describe('Equipment Path - With Files', () => {
{ timeout: 60000 }
);
cy.wait(5000);
//cy.wait(5000);
cy.url().then((currentUrl) => {
// if url is "/tasks/8/d37c2f0f-016a-4066-b669-e0925b759560"
// extract the digits after /tasks
@ -2620,7 +2620,7 @@ describe('Equipment Path - With Files', () => {
{ timeout: 60000 }
);
cy.wait(5000);
//cy.wait(5000);
cy.url().then((currentUrl) => {
// if url is "/tasks/8/d37c2f0f-016a-4066-b669-e0925b759560"
// extract the digits after /tasks

View File

@ -121,7 +121,7 @@ describe.only('Learning and Development Path - Without Files', () => {
{ timeout: 60000 }
);
cy.wait(5000);
//cy.wait(5000);
cy.url().then((currentUrl) => {
// if url is "/tasks/8/d37c2f0f-016a-4066-b669-e0925b759560"
// extract the digits after /tasks
@ -229,7 +229,7 @@ describe.only('Learning and Development Path - Without Files', () => {
{ timeout: 60000 }
);
cy.wait(5000);
//cy.wait(5000);
cy.url().then((currentUrl) => {
// if url is "/tasks/8/d37c2f0f-016a-4066-b669-e0925b759560"
// extract the digits after /tasks
@ -336,7 +336,7 @@ describe.only('Learning and Development Path - Without Files', () => {
{ timeout: 60000 }
);
cy.wait(5000);
//cy.wait(5000);
cy.url().then((currentUrl) => {
// if url is "/tasks/8/d37c2f0f-016a-4066-b669-e0925b759560"
// extract the digits after /tasks
@ -462,7 +462,7 @@ describe.only('Learning and Development Path - Without Files', () => {
{ timeout: 60000 }
);
cy.wait(5000);
//cy.wait(5000);
cy.url().then((currentUrl) => {
// if url is "/tasks/8/d37c2f0f-016a-4066-b669-e0925b759560"
// extract the digits after /tasks
@ -605,7 +605,7 @@ describe.only('Learning and Development Path - Without Files', () => {
{ timeout: 60000 }
);
cy.wait(5000);
//cy.wait(5000);
cy.url().then((currentUrl) => {
// if url is "/tasks/8/d37c2f0f-016a-4066-b669-e0925b759560"
// extract the digits after /tasks
@ -712,7 +712,7 @@ describe.only('Learning and Development Path - Without Files', () => {
{ timeout: 60000 }
);
cy.wait(5000);
//cy.wait(5000);
cy.url().then((currentUrl) => {
// if url is "/tasks/8/d37c2f0f-016a-4066-b669-e0925b759560"
// extract the digits after /tasks
@ -846,7 +846,7 @@ describe('Learning and Development Path - With Files', () => {
{ timeout: 60000 }
);
cy.wait(5000);
//cy.wait(5000);
cy.url().then((currentUrl) => {
// if url is "/tasks/8/d37c2f0f-016a-4066-b669-e0925b759560"
// extract the digits after /tasks
@ -996,7 +996,7 @@ describe('Learning and Development Path - With Files', () => {
{ timeout: 60000 }
);
cy.wait(5000);
//cy.wait(5000);
cy.url().then((currentUrl) => {
// if url is "/tasks/8/d37c2f0f-016a-4066-b669-e0925b759560"
// extract the digits after /tasks
@ -1146,7 +1146,7 @@ describe('Learning and Development Path - With Files', () => {
{ timeout: 60000 }
);
cy.wait(5000);
//cy.wait(5000);
cy.url().then((currentUrl) => {
// if url is "/tasks/8/d37c2f0f-016a-4066-b669-e0925b759560"
// extract the digits after /tasks
@ -1314,7 +1314,7 @@ describe('Learning and Development Path - With Files', () => {
{ timeout: 60000 }
);
cy.wait(5000);
//cy.wait(5000);
cy.url().then((currentUrl) => {
// if url is "/tasks/8/d37c2f0f-016a-4066-b669-e0925b759560"
// extract the digits after /tasks
@ -1499,7 +1499,7 @@ describe('Learning and Development Path - With Files', () => {
{ timeout: 60000 }
);
cy.wait(5000);
//cy.wait(5000);
cy.url().then((currentUrl) => {
// if url is "/tasks/8/d37c2f0f-016a-4066-b669-e0925b759560"
// extract the digits after /tasks
@ -1649,7 +1649,7 @@ describe('Learning and Development Path - With Files', () => {
{ timeout: 60000 }
);
cy.wait(5000);
//cy.wait(5000);
cy.url().then((currentUrl) => {
// if url is "/tasks/8/d37c2f0f-016a-4066-b669-e0925b759560"
// extract the digits after /tasks

View File

@ -121,8 +121,8 @@ describe.only('Other Fees Path - Without Files', () => {
{ timeout: 60000 }
);
cy.wait(5000);
cy.url().then((currentUrl) => {
//cy.wait(5000);
cy.url().then((currentUrl) => {
// if url is "/tasks/8/d37c2f0f-016a-4066-b669-e0925b759560"
// extract the digits after /tasks
const processInstanceId = currentUrl.match(/(?<=\/tasks\/)\d+/)[0];
@ -241,8 +241,8 @@ describe.only('Other Fees Path - Without Files', () => {
{ timeout: 60000 }
);
cy.wait(5000);
cy.url().then((currentUrl) => {
//cy.wait(5000);
cy.url().then((currentUrl) => {
// if url is "/tasks/8/d37c2f0f-016a-4066-b669-e0925b759560"
// extract the digits after /tasks
const processInstanceId = currentUrl.match(/(?<=\/tasks\/)\d+/)[0];
@ -348,8 +348,8 @@ describe.only('Other Fees Path - Without Files', () => {
{ timeout: 60000 }
);
cy.wait(5000);
cy.url().then((currentUrl) => {
//cy.wait(5000);
cy.url().then((currentUrl) => {
// if url is "/tasks/8/d37c2f0f-016a-4066-b669-e0925b759560"
// extract the digits after /tasks
const processInstanceId = currentUrl.match(/(?<=\/tasks\/)\d+/)[0];
@ -479,8 +479,8 @@ describe('Other Fees Path - With Files', () => {
{ timeout: 60000 }
);
cy.wait(5000);
cy.url().then((currentUrl) => {
//cy.wait(5000);
cy.url().then((currentUrl) => {
// if url is "/tasks/8/d37c2f0f-016a-4066-b669-e0925b759560"
// extract the digits after /tasks
const processInstanceId = currentUrl.match(/(?<=\/tasks\/)\d+/)[0];
@ -639,8 +639,8 @@ describe('Other Fees Path - With Files', () => {
{ timeout: 60000 }
);
cy.wait(5000);
cy.url().then((currentUrl) => {
//cy.wait(5000);
cy.url().then((currentUrl) => {
// if url is "/tasks/8/d37c2f0f-016a-4066-b669-e0925b759560"
// extract the digits after /tasks
const processInstanceId = currentUrl.match(/(?<=\/tasks\/)\d+/)[0];
@ -789,8 +789,8 @@ describe('Other Fees Path - With Files', () => {
{ timeout: 60000 }
);
cy.wait(5000);
cy.url().then((currentUrl) => {
//cy.wait(5000);
cy.url().then((currentUrl) => {
// if url is "/tasks/8/d37c2f0f-016a-4066-b669-e0925b759560"
// extract the digits after /tasks
const processInstanceId = currentUrl.match(/(?<=\/tasks\/)\d+/)[0];

View File

@ -14,7 +14,7 @@ const submitWithUser = (
cy.log('=======visit find by id : ');
cy.visit('/admin/process-instances/find-by-id');
cy.wait(3000);
cy.get('#process-instance-id-input').type(processInstanceId);
cy.get('#process-instance-id-input').type(processInstanceId);
cy.get('button')
.contains(/^Submit$/)
.click();
@ -125,7 +125,7 @@ describe.only('Software and Licenses Path - Without Files', () => {
{ timeout: 60000 }
);
cy.wait(5000);
//cy.wait(2000);
cy.url().then((currentUrl) => {
// if url is "/tasks/8/d37c2f0f-016a-4066-b669-e0925b759560"
// extract the digits after /tasks
@ -270,7 +270,7 @@ describe.only('Software and Licenses Path - Without Files', () => {
{ timeout: 60000 }
);
cy.wait(5000);
//cy.wait(5000);
cy.url().then((currentUrl) => {
// if url is "/tasks/8/d37c2f0f-016a-4066-b669-e0925b759560"
// extract the digits after /tasks
@ -378,7 +378,7 @@ describe.only('Software and Licenses Path - Without Files', () => {
null,
"approve"
);
submitWithUser(
infrasmeUsername,
infrasmePassword,
@ -431,7 +431,7 @@ describe.only('Software and Licenses Path - Without Files', () => {
{ timeout: 60000 }
);
cy.wait(5000);
//cy.wait(5000);
cy.url().then((currentUrl) => {
// if url is "/tasks/8/d37c2f0f-016a-4066-b669-e0925b759560"
// extract the digits after /tasks
@ -538,7 +538,7 @@ describe.only('Software and Licenses Path - Without Files', () => {
{ timeout: 60000 }
);
cy.wait(5000);
//cy.wait(5000);
cy.url().then((currentUrl) => {
// if url is "/tasks/8/d37c2f0f-016a-4066-b669-e0925b759560"
// extract the digits after /tasks
@ -685,7 +685,7 @@ describe.only('Software and Licenses Path - Without Files', () => {
{ timeout: 60000 }
);
cy.wait(5000);
//cy.wait(5000);
cy.url().then((currentUrl) => {
// if url is "/tasks/8/d37c2f0f-016a-4066-b669-e0925b759560"
// extract the digits after /tasks
@ -835,7 +835,7 @@ describe('Software and Licenses Path - Without Files and with only mandatory fi
{ timeout: 60000 }
);
cy.wait(5000);
//cy.wait(5000);
cy.url().then((currentUrl) => {
// if url is "/tasks/8/d37c2f0f-016a-4066-b669-e0925b759560"
// extract the digits after /tasks
@ -967,7 +967,7 @@ describe('Software and Licenses Path - Without Files and with only mandatory fi
{ timeout: 60000 }
);
cy.wait(5000);
//cy.wait(5000);
cy.url().then((currentUrl) => {
// if url is "/tasks/8/d37c2f0f-016a-4066-b669-e0925b759560"
// extract the digits after /tasks
@ -1115,7 +1115,7 @@ describe('Software and Licenses Path - Without Files and with only mandatory fi
{ timeout: 60000 }
);
cy.wait(5000);
//cy.wait(5000);
cy.url().then((currentUrl) => {
// if url is "/tasks/8/d37c2f0f-016a-4066-b669-e0925b759560"
// extract the digits after /tasks
@ -1222,7 +1222,7 @@ describe('Software and Licenses Path - Without Files and with only mandatory fi
{ timeout: 60000 }
);
cy.wait(5000);
//cy.wait(5000);
cy.url().then((currentUrl) => {
// if url is "/tasks/8/d37c2f0f-016a-4066-b669-e0925b759560"
// extract the digits after /tasks
@ -1369,7 +1369,7 @@ describe('Software and Licenses Path - Without Files and with only mandatory fi
{ timeout: 60000 }
);
cy.wait(5000);
//cy.wait(5000);
cy.url().then((currentUrl) => {
// if url is "/tasks/8/d37c2f0f-016a-4066-b669-e0925b759560"
// extract the digits after /tasks
@ -1519,7 +1519,7 @@ describe('Software and Licenses Path - With Files', () => {
{ timeout: 60000 }
);
cy.wait(5000);
//cy.wait(5000);
cy.url().then((currentUrl) => {
// if url is "/tasks/8/d37c2f0f-016a-4066-b669-e0925b759560"
// extract the digits after /tasks
@ -1706,7 +1706,7 @@ describe('Software and Licenses Path - With Files', () => {
{ timeout: 60000 }
);
cy.wait(5000);
//cy.wait(5000);
cy.url().then((currentUrl) => {
// if url is "/tasks/8/d37c2f0f-016a-4066-b669-e0925b759560"
// extract the digits after /tasks
@ -1898,7 +1898,7 @@ describe('Software and Licenses Path - With Files', () => {
{ timeout: 60000 }
);
cy.wait(5000);
//cy.wait(5000);
cy.url().then((currentUrl) => {
// if url is "/tasks/8/d37c2f0f-016a-4066-b669-e0925b759560"
// extract the digits after /tasks
@ -2048,7 +2048,7 @@ describe('Software and Licenses Path - With Files', () => {
{ timeout: 60000 }
);
cy.wait(5000);
//cy.wait(5000);
cy.url().then((currentUrl) => {
// if url is "/tasks/8/d37c2f0f-016a-4066-b669-e0925b759560"
// extract the digits after /tasks
@ -2238,7 +2238,7 @@ describe('Software and Licenses Path - With Files', () => {
{ timeout: 60000 }
);
cy.wait(5000);
//cy.wait(5000);
cy.url().then((currentUrl) => {
// if url is "/tasks/8/d37c2f0f-016a-4066-b669-e0925b759560"
// extract the digits after /tasks
@ -2430,7 +2430,7 @@ describe('Software and Licenses Path - With Files and Multiple items', () => {
{ timeout: 60000 }
);
cy.wait(5000);
//cy.wait(5000);
cy.url().then((currentUrl) => {
// if url is "/tasks/8/d37c2f0f-016a-4066-b669-e0925b759560"
// extract the digits after /tasks
@ -2629,7 +2629,7 @@ describe('Software and Licenses Path - With Files and Multiple items', () => {
{ timeout: 60000 }
);
cy.wait(5000);
//cy.wait(5000);
cy.url().then((currentUrl) => {
// if url is "/tasks/8/d37c2f0f-016a-4066-b669-e0925b759560"
// extract the digits after /tasks
@ -2843,7 +2843,7 @@ describe('Software and Licenses Path - With Files and Multiple items', () => {
{ timeout: 60000 }
);
cy.wait(5000);
//cy.wait(5000);
cy.url().then((currentUrl) => {
// if url is "/tasks/8/d37c2f0f-016a-4066-b669-e0925b759560"
// extract the digits after /tasks
@ -3014,7 +3014,7 @@ describe('Software and Licenses Path - With Files and Multiple items', () => {
{ timeout: 60000 }
);
cy.wait(5000);
//cy.wait(5000);
cy.url().then((currentUrl) => {
// if url is "/tasks/8/d37c2f0f-016a-4066-b669-e0925b759560"
// extract the digits after /tasks
@ -3226,7 +3226,7 @@ describe('Software and Licenses Path - With Files and Multiple items', () => {
{ timeout: 60000 }
);
cy.wait(5000);
//cy.wait(5000);
cy.url().then((currentUrl) => {
// if url is "/tasks/8/d37c2f0f-016a-4066-b669-e0925b759560"
// extract the digits after /tasks