Added validations to check the user entered data for special character related test case and edit request test cases

This commit is contained in:
Madhurya Liyanage 2023-06-05 16:14:45 +05:30
parent 5549072059
commit 5abec3046b
1 changed files with 412 additions and 60 deletions

View File

@ -1,8 +1,240 @@
const submitWithUserSpecialChars = (
username,
password,
processInstanceId,
expectAdditionalApprovalInfoPage = false,
approvaltype
) => {
cy.wait(2000);
cy.log('========Login with : ', username);
cy.log('========processInstanceId: ', processInstanceId);
cy.login(username, password);
cy.wait(1000);
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('button')
.contains(/^Submit$/)
.click();
cy.wait(2000);
cy.contains('Tasks I can complete', { timeout: 60000 });
cy.get('.cds--btn').contains(/^Go$/).click();
cy.wait(2000);
// approve!
if (approvaltype === 'approve') {
cy.get('#root > label:nth-child(1)').click();
cy.get('.cds--text-area__wrapper')
.find('#root')
.type(username.concat(' is approving this. Providing additional info with Special chars <>?,./ afsfsf : sf; sdf"sfs" fdsf\'sdf sfds{ sfsf [ s} } \s ss !@#$%^&*()_+ sff =-~ ` END.'), { parseSpecialCharSequences: false });
} else if (approvaltype === 'reject') {
cy.get('#root > label:nth-child(3)').click();
cy.get('.cds--text-area__wrapper')
.find('#root')
.type(username.concat(' is rejecting this.'));
} else if (approvaltype === 'needmoreinfo') {
cy.get('#root > label:nth-child(2)').click();
cy.get('.cds--text-area__wrapper')
.find('#root')
.type(
username.concat(
' needs additional info. A software license is a document that provides legally binding guidelines for the use and distribution of software.Software licenses typically provide end users with the right to END.'
)
);
} else if (approvaltype === 'providemoreinfo') {
// Form 1
cy.contains('Task: Submit Details', { timeout: 60000 });
cy.get('button')
.contains(/^Submit$/)
.click();
// Form 2
/* cy.contains('Task: Enter NDR Items', { timeout: 60000 });
cy.get('button')
.contains(/^Submit$/)
.click(); */
// Form 3
cy.contains('Task: Review the Request', { timeout: 60000 });
cy.get('.cds--text-area__wrapper')
.find('#root')
.clear()
.type(
'Providing additional info with Special chars <>?,./ afsfsf : sf; sdf"sfs" fdsf\'sdf sfds{ sfsf [ s} } \s ss !@#$%^&*()_+ sff =-~ ` END.,', { parseSpecialCharSequences: false }
);
// cy.contains('Submit the Request').click();
// cy.get('input[value="Submit the Request"]').click();
} else {
}
cy.contains(
'Purpose is to test all the special characters work in the request. ~!@#$%^&*()_+`-= {}[]\ and ;\',./:"<>? end.'
);
cy.contains(
/^Consulting Fees$/
);
cy.contains(
/^Medium$/
);
cy.contains(
/^24-10-2032$/
);
cy.contains(
/^Consultancy.uk$/
);
cy.contains(
/^Crypto Transfer$/
);
cy.contains(
'Special char test ,./;\'[]\=-0987654321`~!@#$%^&*()_+{}:"<>? end.'
);
cy.contains(
/^Consultants$/
);
cy.contains(
/^23$/
);
cy.contains(
/^SNT$/
);
cy.contains(
/^1,915.0000$/
);
cy.contains(
'Special char test 2 +_=)(*&^%$#@!~`?></.,":}{\][\';/., <a> {g} [a]end.'
);
cy.contains(
/^Freelancers$/
);
cy.contains(
/^15$/
);
cy.contains(
/^AED$/
);
cy.contains(
/^4,537.25$/
);
cy.contains(
'Test Special chars afs<sfsd>sfsfs,asfdf. sfsf? sfd/sfs f:sfsf " sfsdf; SDFfsd\' sfsdf{sfsfs} sfsdf[ sfsdf] fsfsfd\ sfsd sfsdf=S dfs+ sfd- sfsdf_ sfsfd (sfsd )sfsfsd * sf&sfsfs ^ sfs % sf $ ss# s@ sf! sfd` ss~ END.'
);
cy.get('button')
.contains(/^Submit$/)
.click();
// if (expectAdditionalApprovalInfoPage) {
// cy.contains(expectAdditionalApprovalInfoPage, { timeout: 60000 });
// cy.get('button')
// .contains(/^Continue$/)
// .click();
// }
cy.wait(5000);
cy.contains('Process Instance Id:', { timeout: 60000 });
cy.logout();
};
//Check if the process instance is completed successfully
const checkProcessInstanceCompletedSpecialChars = (
username,
password,
processInstanceId
) => {
cy.wait(2000);
cy.log('========Login with : ', username);
cy.log('========processInstanceId: ', processInstanceId);
cy.login(username, password);
cy.wait(1000);
cy.visit('/admin/process-instances/find-by-id');
cy.get('#process-instance-id-input').type(processInstanceId);
cy.get('button')
.contains(/^Submit$/)
.click();
cy.wait(2000);
cy.get('#tag-1 > span').contains('complete');
cy.contains(
/^Process Recap$/
);
cy.contains(
/^Approval Status: Approved$/
);
cy.contains(
'Purpose is to test all the special characters work in the request. ~!@#$%^&*()_+`-= {}[]\ and ;\',./:"<>? end.'
);
cy.contains(
/^Consulting Fees$/
);
cy.contains(
/^Medium$/
);
cy.contains(
/^24-10-2032$/
);
cy.contains(
/^Consultancy.uk$/
);
cy.contains(
/^Crypto Transfer$/
);
cy.contains(
'Special char test ,./;\'[]\=-0987654321`~!@#$%^&*()_+{}:"<>? end.'
);
cy.contains(
/^Consultants$/
);
cy.contains(
/^23$/
);
cy.contains(
/^SNT$/
);
cy.contains(
/^1,915.0000$/
);
cy.contains(
'Special char test 2 +_=)(*&^%$#@!~`?></.,":}{\][\';/., <a> {g} [a]end.'
);
cy.contains(
/^Freelancers$/
);
cy.contains(
/^15$/
);
cy.contains(
/^AED$/
);
cy.contains(
/^4,537.25$/
);
cy.contains(
'Test Special chars afs<sfsd>sfsfs,asfdf. sfsf? sfd/sfs f:sfsf " sfsdf; SDFfsd\' sfsdf{sfsfs} sfsdf[ sfsdf] fsfsfd\ sfsd sfsdf=S dfs+ sfd- sfsdf_ sfsfd (sfsd )sfsfsd * sf&sfsfs ^ sfs % sf $ ss# s@ sf! sfd` ss~ END.'
);
cy.contains(
'Providing additional info with Special chars <>?,./ afsfsf : sf; sdf"sfs" fdsf\'sdf sfds{ sfsf [ s} } \s ss !@#$%^&*()_+ sff =-~ ` END.'
);
cy.contains(
'Budget Owner '
);
}
// Software and License - Without Files
describe.only('Initiate a Request - Without Files', () => {
describe('Initiate a Request - Without Files', () => {
Cypress._.times(1, () => {
// Submit a Software and License request - Without Files
it('Submit a Software and License request', () => {
it('1.Submit a Software and License request', () => {
const username = Cypress.env('requestor_username');
const password = Cypress.env('requestor_password');
cy.log(`=====username : ${username}`);
@ -117,7 +349,7 @@ describe.only('Initiate a Request - Without Files', () => {
});
// Submit a Software and License request - Without Files and with mandatory fields only
it('Submit a Software and License request - Without Files and with mandatory fields only', () => {
it('2.Submit a Software and License request - Without Files and with mandatory fields only', () => {
const username = Cypress.env('requestor_username');
const password = Cypress.env('requestor_password');
cy.log(`=====username : ${username}`);
@ -205,7 +437,7 @@ describe.only('Initiate a Request - Without Files', () => {
});
// Edit a Software and License request - Without Files
it('Edit a Software and License request', () => {
it('3.Edit a Software and License request', () => {
const username = Cypress.env('requestor_username');
const password = Cypress.env('requestor_password');
cy.log(`=====username : ${username}`);
@ -269,7 +501,7 @@ describe.only('Initiate a Request - Without Files', () => {
cy.get('#root_item_0_qty').clear().type('2');
cy.get('#root_item_0_currency_type').select('Crypto');
cy.get('#root_item_0_currency').select('SNT');
cy.get('#root_item_0_unit_price').type('1915');
cy.get('#root_item_0_unit_price').type('1915.2456');
cy.get('#root_item > div:nth-child(3) > p > button').click();
@ -310,6 +542,23 @@ describe.only('Initiate a Request - Without Files', () => {
// Form 1
cy.contains('Task: Submit Details', { timeout: 60000 });
cy.contains('Sware\nA software license is a document that provides legally binding guidelines for the use and distribution of software.\nSoftware licenses typically provide end users with the right to one or more copies of the software without violating copyrights');
cy.contains('High');
cy.contains('25-11-2025');
cy.contains('Microsoft');
cy.contains('Reimbursement');
cy.contains('Open source software is code that is designed to be publicly accessible anyone can see, modify, END');
cy.contains('2');
cy.contains('Crypto');
cy.contains('SNT');
cy.contains('1915.2456');
cy.contains('A software license is a document that provides legally binding guidelines for the use and distri END');
cy.contains('1');
cy.contains('Fiat');
cy.contains('AED');
cy.contains('4500');
cy.wait(2000);
cy.get('button')
.contains(/^Submit$/)
@ -322,10 +571,9 @@ describe.only('Initiate a Request - Without Files', () => {
// Form 3
cy.contains('Task: Review the Request', { timeout: 60000 });
cy.get('.cds--text-area__wrapper').find('#root').type('EDITING INFO');
cy.contains('2021 Newest HP 17.3 inch FHD Laptop, AMD Ryzen 5 5500U 6core(Beat i7-1160G7, up to 4.0GHz),16GB RAM, 1TB PCIe SSD, Bluetooth 4.2, WiFi, HDMI, USB-A&C, Windows 10 S,\nhttps://www.amazon.com/HP-i7-11G7-Bluetooth-Windows', { timeout: 1000 });
// cy.contains('Submit the Request').click();
// cy.get('input[value="Submit the Request"]').click();
cy.get('.cds--text-area__wrapper').find('#root').type('EDITING INFO');
cy.get('button')
.contains(/^Submit$/)
@ -336,14 +584,13 @@ describe.only('Initiate a Request - Without Files', () => {
.contains(/^Return to Home$/)
.click();*/
cy.contains('Process Instance Id:', { timeout: 60000 });
cy.logout();
cy.wait(2000);
});
});
// Save and Close a Software and License request 1 - Without Files
it('Save and Close a Software and License request 1', () => {
it('4.Save and Close a Software and License request 1', () => {
const username = Cypress.env('requestor_username');
const password = Cypress.env('requestor_password');
cy.log(`=====username : ${username}`);
@ -437,7 +684,7 @@ describe.only('Initiate a Request - Without Files', () => {
});
// Save and Close a Software and License request 2 - Without Files
it('Save and Close a Software and License request 2', () => {
it('5.Save and Close a Software and License request 2', () => {
const username = Cypress.env('requestor_username');
const password = Cypress.env('requestor_password');
cy.log(`=====username : ${username}`);
@ -531,7 +778,7 @@ describe.only('Initiate a Request - Without Files', () => {
});
// Save and Close a Software and License request 3 - Without Files
it('Save and Close a Software and License request 3', () => {
it('6.Save and Close a Software and License request 3', () => {
const username = Cypress.env('requestor_username');
const password = Cypress.env('requestor_password');
cy.log(`=====username : ${username}`);
@ -640,7 +887,7 @@ describe.only('Initiate a Request - Without Files', () => {
});
// Cancel a Software and License request 1- Without Files
it('Cancel a Software and License request 1', () => {
it('7.Cancel a Software and License request 1', () => {
const username = Cypress.env('requestor_username');
const password = Cypress.env('requestor_password');
cy.log(`=====username : ${username}`);
@ -737,7 +984,7 @@ describe.only('Initiate a Request - Without Files', () => {
});
// Cancel a Software and License request 2- Without Files
it('Cancel a Software and License request 2', () => {
it('8.Cancel a Software and License request 2', () => {
const username = Cypress.env('requestor_username');
const password = Cypress.env('requestor_password');
cy.log(`=====username : ${username}`);
@ -851,7 +1098,7 @@ describe.only('Initiate a Request - Without Files', () => {
});
// Arrange items order
it('Arrange items order', () => {
it('9.Arrange items order', () => {
const username = Cypress.env('requestor_username');
const password = Cypress.env('requestor_password');
cy.log(`=====username : ${username}`);
@ -969,7 +1216,7 @@ describe.only('Initiate a Request - Without Files', () => {
});
// Delete items
it('Delete items', () => {
it('10.Delete items', () => {
const username = Cypress.env('requestor_username');
const password = Cypress.env('requestor_password');
cy.log(`=====username : ${username}`);
@ -1087,7 +1334,7 @@ describe.only('Initiate a Request - Without Files', () => {
describe('Form validation', () => {
//Special character check
it('Special character check', () => {
it('11.Special character check', () => {
const username = Cypress.env('requestor_username');
const password = Cypress.env('requestor_password');
cy.log(`=====username : ${username}`);
@ -1101,19 +1348,6 @@ describe('Form validation', () => {
cy.runPrimaryBpmnFile(true);
/* cy.contains('Please select the type of request to start the process.');
// wait a second to ensure we can click the radio button
cy.wait(2000);
cy.get('input#root-procurement').click();
cy.wait(2000);
cy.get('button')
.contains(/^Submit$/)
.click();
*/
cy.contains('Request Goods or Services', { timeout: 60000 });
cy.url().then((currentUrl) => {
@ -1122,30 +1356,26 @@ describe('Form validation', () => {
const processInstanceId = currentUrl.match(/(?<=\/tasks\/)\d+/)[0];
cy.log('==###############===processInstanceId : ', processInstanceId);
const projectId = Cypress.env('project_id');
cy.wait(2000);
cy.get('#root_project').select(projectId);
cy.get('#root_category').select('soft_and_lic');
cy.get('#root_category').select('consult_fees');
cy.get('#root_purpose')
.clear()
.type(
'Purpose is to test all the special characters work in the request. ~!@#$%^&*()_+`-= {}[]\ and ;\',./:"<>? end. | this text goes missing', { parseSpecialCharSequences: false }
);
//.type(
// 'Purpose is to test all the special characters work in the request. Test Special chars ~!@#$%^&*()_+`-= {}|[]\ and ;\',./:"<>? end.', { parseSpecialCharSequences: false }
//);
cy.get('#root_criticality').select('High');
cy.get('#root_period').clear().type('25-11-2025');
cy.get('body').click();
cy.get('#root_vendor').clear().type('Microsoft');
cy.get('#root_payment_method').select('Reimbursement');
/* cy.get('button')
.contains(/^Submit$/)
.click();
cy.contains('Task: Enter NDR Items', { timeout: 60000 });
*/
cy.get('#root_criticality').select('Medium');
cy.get('#root_period').clear().type('24-10-2032');
cy.get('body').click();
cy.get('#root_vendor').clear().type('Consultancy.uk');
cy.get('#root_payment_method').select('Crypto Transfer');
// item 0
cy.get('#root_item_0_sub_category').select('op_src');
cy.get('#root_item_0_sub_category').select('consultants');
cy.get('#root_item_0_item_name')
.clear()
.type(
@ -1154,7 +1384,7 @@ describe('Form validation', () => {
//.type(
// 'Special char test ,./;\'[]\=-0987654321`~!@#$%^&*()_+{}|:"<>? end.', { parseSpecialCharSequences: false }
// );
cy.get('#root_item_0_qty').clear().type('2');
cy.get('#root_item_0_qty').clear().type('23');
cy.get('#root_item_0_currency_type').select('Crypto');
cy.get('#root_item_0_currency').select('SNT');
cy.get('#root_item_0_unit_price').type('1915');
@ -1162,7 +1392,7 @@ describe('Form validation', () => {
cy.get('#root_item > div:nth-child(3) > p > button').click();
// item 1
cy.get('#root_item_1_sub_category').select('lic_and_sub');
cy.get('#root_item_1_sub_category').select('freelancers');
cy.get('#root_item_1_item_name')
.clear()
.type(
@ -1171,10 +1401,10 @@ describe('Form validation', () => {
//.type(
// 'Special char test 2 +_=)(*&^%$#@!~`?></.,":}{|\][\';/., <a> {g} [a]end.', { parseSpecialCharSequences: false }
//);
cy.get('#root_item_1_qty').clear().type('1');
cy.get('#root_item_1_qty').clear().type('15');
cy.get('#root_item_1_currency_type').select('Fiat');
cy.get('#root_item_1_currency').select('AED');
cy.get('#root_item_1_unit_price').type('4500');
cy.get('#root_item_1_unit_price').type('4537.25');
cy.get('button')
.contains(/^Submit$/)
@ -1185,6 +1415,56 @@ describe('Form validation', () => {
{ timeout: 60000 }
);
cy.contains(
'Purpose is to test all the special characters work in the request. ~!@#$%^&*()_+`-= {}[]\ and ;\',./:"<>? end.'
);
cy.contains(
/^Consulting Fees$/
);
cy.contains(
/^Medium$/
);
cy.contains(
/^24-10-2032$/
);
cy.contains(
/^Consultancy.uk$/
);
cy.contains(
/^Crypto Transfer$/
);
cy.contains(
'Special char test ,./;\'[]\=-0987654321`~!@#$%^&*()_+{}:"<>? end.'
);
cy.contains(
/^Consultants$/
);
cy.contains(
/^23$/
);
cy.contains(
/^SNT$/
);
cy.contains(
/^1,915.0000$/
);
cy.contains(
'Special char test 2 +_=)(*&^%$#@!~`?></.,":}{\][\';/., <a> {g} [a]end.'
);
cy.contains(
/^Freelancers$/
);
cy.contains(
/^15$/
);
cy.contains(
/^AED$/
);
cy.contains(
/^4,537.25$/
);
cy.get('.cds--text-area__wrapper')
.find('#root')
.type(
@ -1210,11 +1490,26 @@ describe('Form validation', () => {
cy.contains('Process Instance Id:', { timeout: 60000 });
cy.logout();
cy.wait(2000);
const budgetOwnerUsername = Cypress.env('budgetowner_username');
const budgetOwnerPassword = Cypress.env('budgetowner_password');
cy.log(`=====budgetOwnerUsername : ${budgetOwnerUsername}`);
cy.log(`=====budgetOwnerPassword : ${budgetOwnerPassword}`);
submitWithUserSpecialChars(
budgetOwnerUsername,
budgetOwnerPassword,
processInstanceId,
'Task: Reminder: Check Existing Budget',
'approve'
);
checkProcessInstanceCompletedSpecialChars(username, password, processInstanceId);
});
});
//Check field max lengths
it('Check field max lengths', () => {
it('12.Check field max lengths', () => {
const username = Cypress.env('requestor_username');
const password = Cypress.env('requestor_password');
cy.log(`=====username : ${username}`);
@ -1298,6 +1593,31 @@ describe('Form validation', () => {
.contains(/^Submit$/)
.click();
cy.contains('must NOT have more than 250 characters');
cy.contains('Name must NOT have more than 100 characters');
cy.get('#root_purpose')
.clear()
.type(
'A software license is a document that provides legally binding guidelines for the use and distribution of software.\nSoftware licenses typically provide end users with the right to one or more copies of the software without violating copyrights.'
);
cy.get('#root_item_0_item_name')
.clear()
.type(
'Open source software is code that is designed to be publicly accessible anyone can see, modify, END'
);
cy.get('#root_item_1_item_name')
.clear()
.type(
'A software license is a document that provides legally binding guidelines for the use and distri END'
);
cy.get('button')
.contains(/^Submit$/)
.click();
cy.wait(6000);
cy.contains(
'Review and provide any supporting information or files for your request.',
{ timeout: 60000 }
@ -1306,17 +1626,25 @@ describe('Form validation', () => {
cy.get('.cds--text-area__wrapper')
.find('#root')
.type(
'test 2021 Newest HP 17.3 inch FHD Laptop, AMD Ryzen 5 5500U 6core(Beat i7-1160G7, up to 4.0GHz),16GB RAM, 1TB PCIe SSD, Bluetooth 4.2, WiFi, HDMI, USB-A&C, Windows 10 S, w/Ghost Manta Accessories, Silver\nhttps://www.amazon.com/HP-i7-11G7-Bluetooth-Windows'
'test 2021 Newest HP 17.3 inch FHD Laptop, AMD Ryzen 5 5500U 6core(Beat i7-1160G7, up to 4.0GHz),16GB RAM, 1TB PCIe SSD, Bluetooth 4.2, WiFi, HDMI, USB-A&C, Windows 10 S, w/Ghost Manta Accessories, Silver\nhttps://www.amazon.com/HP-i7-11G7-Bluetooth-Windows. This is now more than 250 characters.'
);
// cy.contains('Submit the Request').click();
// cy.get('input[value="Submit the Request"]').click();
cy.get('button')
.contains(/^Submit$/)
.click();
cy.wait(2000);
cy.contains('must NOT have more than 250 characters');
cy.get('.cds--text-area__wrapper')
.find('#root')
.clear()
.type(
'2021 Newest HP 17.3 inch FHD Laptop, AMD Ryzen 5 5500U 6core(Beat i7-1160G7, up to 4.0GHz),16GB RAM, 1TB PCIe SSD, Bluetooth 4.2, WiFi, HDMI, USB-A&C, Windows 10 S, w/Ghost Manta accessosar Silver\nhttps://www.amazon.com/HP-i7-11G7-Bluetooth-Windows.'
);
cy.get('button')
.contains(/^Submit$/)
.click();
cy.wait(6000);
/*cy.get('button')
.contains(/^Return to Home$/)
@ -1334,7 +1662,7 @@ describe('Form validation', () => {
describe('Initiate a Request - With Files', () => {
Cypress._.times(1, () => {
// Submit a Software and License request - Without Files
it('Submit a Software and License request - With Files', () => {
it('13.Submit a Software and License request - With Files', () => {
const username = Cypress.env('requestor_username');
const password = Cypress.env('requestor_password');
cy.log(`=====username : ${username}`);
@ -1499,7 +1827,7 @@ describe('Initiate a Request - With Files', () => {
});
// Submit a Software and License request - With Files and Multiple items
it('Submit a Software and License request - With Files and Multiple items', () => {
it('14.Submit a Software and License request - With Files and Multiple items', () => {
const username = Cypress.env('requestor_username');
const password = Cypress.env('requestor_password');
cy.log(`=====username : ${username}`);
@ -1679,7 +2007,7 @@ describe('Initiate a Request - With Files', () => {
});
// Edit a Software and License request - With Files
it('Edit a Software and License request - With Files', () => {
it('15.Edit a Software and License request - With Files', () => {
const username = Cypress.env('requestor_username');
const password = Cypress.env('requestor_password');
cy.log(`=====username : ${username}`);
@ -1743,7 +2071,7 @@ describe('Initiate a Request - With Files', () => {
cy.get('#root_item_0_qty').clear().type('2');
cy.get('#root_item_0_currency_type').select('Crypto');
cy.get('#root_item_0_currency').select('SNT');
cy.get('#root_item_0_unit_price').type('1915');
cy.get('#root_item_0_unit_price').type('1915.2456');
cy.get('#root_item > div:nth-child(3) > p > button').click();
@ -1834,6 +2162,23 @@ describe('Initiate a Request - With Files', () => {
// Form 1
cy.contains('Task: Submit Details', { timeout: 60000 });
cy.contains('Sware\nA software license is a document that provides legally binding guidelines for the use and distribution of software.\nSoftware licenses typically provide end users with the right to one or more copies of the software without violating copyrights');
cy.contains('High');
cy.contains('25-11-2025');
cy.contains('Microsoft');
cy.contains('Reimbursement');
cy.contains('Open source software is code that is designed to be publicly accessible anyone can see, modify, END');
cy.contains('2');
cy.contains('Crypto');
cy.contains('SNT');
cy.contains('1915.2456');
cy.contains('A software license is a document that provides legally binding guidelines for the use and distri END');
cy.contains('1');
cy.contains('Fiat');
cy.contains('AED');
cy.contains('4500');
cy.wait(2000);
cy.get('button')
.contains(/^Submit$/)
@ -1846,6 +2191,13 @@ describe('Initiate a Request - With Files', () => {
// Form 3
cy.contains('Task: Review the Request', { timeout: 60000 });
cy.contains('2021 Newest HP 17.3 inch FHD Laptop, AMD Ryzen 5 5500U 6core(Beat i7-1160G7, up to 4.0GHz),16GB RAM, 1TB PCIe SSD, Bluetooth 4.2, WiFi, HDMI, USB-A&C, Windows 10 S,\nhttps://www.amazon.com/HP-i7-11G7-Bluetooth-Windows', { timeout: 1000 });
cy.contains('lorem-ipsum.pdf');
cy.contains('png-5mb-1.png');
cy.contains('Free_Test_Data_1MB_PDF.pdf');
cy.contains('png-5mb-2.png');
cy.get('.cds--text-area__wrapper')
.find('#root')
.type(
@ -1854,7 +2206,6 @@ describe('Initiate a Request - With Files', () => {
// cy.contains('Submit the Request').click();
// cy.get('input[value="Submit the Request"]').click();
cy.get('button')
.contains(/^Submit$/)
.click();
@ -1865,13 +2216,14 @@ describe('Initiate a Request - With Files', () => {
.click();*/
cy.contains('Process Instance Id:', { timeout: 60000 });
cy.logout();
cy.wait(2000);
});
});
// Save and Close a Software and License request 1 - With Files
it('Save and Close a Software and License request 1 - With Files', () => {
it('16.Save and Close a Software and License request 1 - With Files', () => {
const username = Cypress.env('requestor_username');
const password = Cypress.env('requestor_password');
cy.log(`=====username : ${username}`);
@ -2012,7 +2364,7 @@ describe('Initiate a Request - With Files', () => {
});
// Cancel a Software and License request - With Files
it('Cancel a Software and License request - With Files', () => {
it('17.Cancel a Software and License request - With Files', () => {
const username = Cypress.env('requestor_username');
const password = Cypress.env('requestor_password');
cy.log(`=====username : ${username}`);