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