some updates for cypress pp1 test w/ burnettk
This commit is contained in:
parent
942ffff41c
commit
2464ad9a26
|
@ -86,6 +86,7 @@ while read -r input_line; do
|
|||
custom_attribute_one=$(awk -F ',' '{print $2}' <<<"$input_line")
|
||||
first_line_processed="true"
|
||||
elif [[ -n "$input_line" ]]; then
|
||||
echo "Importing: $input_line"
|
||||
user_email=$(awk -F ',' '{print $1}' <<<"$input_line")
|
||||
username=$(awk -F '@' '{print $1}' <<<"$user_email")
|
||||
user_attribute_one=$(awk -F ',' '{print $2}' <<<"$input_line")
|
||||
|
|
|
@ -10,7 +10,7 @@ const approveWithUser = (
|
|||
.contains(/^Submit$/)
|
||||
.click();
|
||||
|
||||
cy.contains('Tasks I can complete', { timeout: 30000 });
|
||||
cy.contains('Tasks I can complete', { timeout: 60000 });
|
||||
cy.get('.cds--btn').contains(/^Go$/).click();
|
||||
|
||||
// approve!
|
||||
|
@ -19,12 +19,12 @@ const approveWithUser = (
|
|||
.contains(/^Submit$/)
|
||||
.click();
|
||||
if (expectAdditionalApprovalInfoPage) {
|
||||
cy.contains(expectAdditionalApprovalInfoPage, { timeout: 30000 });
|
||||
cy.contains(expectAdditionalApprovalInfoPage, { timeout: 60000 });
|
||||
cy.get('button')
|
||||
.contains(/^Continue$/)
|
||||
.click();
|
||||
}
|
||||
cy.location({ timeout: 30000 }).should((loc) => {
|
||||
cy.location({ timeout: 60000 }).should((loc) => {
|
||||
expect(loc.pathname).to.eq('/tasks');
|
||||
});
|
||||
cy.logout();
|
||||
|
@ -39,15 +39,15 @@ describe('pp1', () => {
|
|||
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(1000);
|
||||
cy.wait(2000);
|
||||
cy.get('input#root-procurement').click();
|
||||
cy.wait(1000);
|
||||
cy.wait(2000);
|
||||
cy.get('button')
|
||||
.contains(/^Submit$/)
|
||||
.click();
|
||||
cy.contains(
|
||||
'Submit a new demand request for the procurement of needed items',
|
||||
{ timeout: 30000 }
|
||||
{ timeout: 60000 }
|
||||
);
|
||||
|
||||
cy.url().then((currentUrl) => {
|
||||
|
@ -68,7 +68,7 @@ describe('pp1', () => {
|
|||
.contains(/^Submit$/)
|
||||
.click();
|
||||
|
||||
cy.contains('Task: Enter NDR Items', { timeout: 30000 });
|
||||
cy.contains('Task: Enter NDR Items', { timeout: 60000 });
|
||||
cy.get('#root_0_sub_category').select('op_src');
|
||||
cy.get('#root_0_item').clear().type('spiffworkflow');
|
||||
cy.get('#root_0_qty').clear().type('1');
|
||||
|
@ -81,14 +81,14 @@ describe('pp1', () => {
|
|||
|
||||
cy.contains(
|
||||
'Review and provide any supporting information or files for your request.',
|
||||
{ timeout: 30000 }
|
||||
{ timeout: 60000 }
|
||||
);
|
||||
cy.contains('Submit the Request').click();
|
||||
cy.get('input[value="Submit the Request"]').click();
|
||||
cy.get('button')
|
||||
.contains(/^Submit$/)
|
||||
.click();
|
||||
cy.contains('Tasks for my open instances', { timeout: 30000 });
|
||||
cy.contains('Tasks for my open instances', { timeout: 60000 });
|
||||
|
||||
cy.logout();
|
||||
approveWithUser(
|
||||
|
@ -103,7 +103,7 @@ describe('pp1', () => {
|
|||
processInstanceId,
|
||||
'Task: Update Application Landscape'
|
||||
);
|
||||
approveWithUser('legal-a1.sme', processInstanceId);
|
||||
// approveWithUser('legal-a1.sme', processInstanceId);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
@ -109,7 +109,7 @@ Cypress.Commands.add(
|
|||
if (expectAutoRedirectToHumanTask) {
|
||||
// the url changes immediately, so also make sure we get some content from the next page, "Task:", or else when we try to interact with the page, it'll re-render and we'll get an error with cypress.
|
||||
cy.url().should('include', `/tasks/`);
|
||||
cy.contains('Task: ', { timeout: 10000 });
|
||||
cy.contains('Task: ', { timeout: 30000 });
|
||||
} else {
|
||||
cy.contains(/Process Instance.*[kK]icked [oO]ff/);
|
||||
cy.reload(true);
|
||||
|
|
Loading…
Reference in New Issue