Fixing Cypress Tests
This commit is contained in:
parent
148559ee69
commit
cd6a7f5806
|
@ -32,7 +32,7 @@ if (process.env.SPIFFWORKFLOW_FRONTEND_URL) {
|
||||||
|
|
||||||
const cypressConfig = {
|
const cypressConfig = {
|
||||||
projectId: 'crax1q',
|
projectId: 'crax1q',
|
||||||
|
defaultCommandTimeout: 10000,
|
||||||
videoUploadOnPasses: false,
|
videoUploadOnPasses: false,
|
||||||
chromeWebSecurity: false,
|
chromeWebSecurity: false,
|
||||||
e2e: {
|
e2e: {
|
||||||
|
|
|
@ -158,7 +158,7 @@ describe('process-instances', () => {
|
||||||
// make sure we have some process instances
|
// make sure we have some process instances
|
||||||
cy.runPrimaryBpmnFile();
|
cy.runPrimaryBpmnFile();
|
||||||
cy.getBySel('process-instance-list-link').click();
|
cy.getBySel('process-instance-list-link').click();
|
||||||
cy.getBySel('process-instance-show-link').first().click();
|
cy.getBySel('process-instance-show-link-id').first().click();
|
||||||
cy.getBySel('process-instance-log-list-link').click();
|
cy.getBySel('process-instance-log-list-link').click();
|
||||||
cy.getBySel('process-instance-log-detailed').click();
|
cy.getBySel('process-instance-log-detailed').click();
|
||||||
cy.contains('process_model_one');
|
cy.contains('process_model_one');
|
||||||
|
|
|
@ -168,7 +168,7 @@ describe('process-models', () => {
|
||||||
.click();
|
.click();
|
||||||
cy.runPrimaryBpmnFile();
|
cy.runPrimaryBpmnFile();
|
||||||
|
|
||||||
cy.getBySel('process-instance-show-link').click();
|
cy.getBySel('process-instance-show-link-id').click();
|
||||||
cy.getBySel('process-instance-delete').click();
|
cy.getBySel('process-instance-delete').click();
|
||||||
cy.contains('Are you sure');
|
cy.contains('Are you sure');
|
||||||
cy.getBySel('process-instance-delete-modal-confirmation-dialog')
|
cy.getBySel('process-instance-delete-modal-confirmation-dialog')
|
||||||
|
|
|
@ -74,7 +74,7 @@ describe('tasks', () => {
|
||||||
cy.assertAtLeastOneItemInPaginatedResults();
|
cy.assertAtLeastOneItemInPaginatedResults();
|
||||||
|
|
||||||
// This should get the first one which should be the one we just completed
|
// This should get the first one which should be the one we just completed
|
||||||
cy.getBySel('process-instance-show-link').first().click();
|
cy.getBySel('process-instance-show-link-id').first().click();
|
||||||
cy.contains('Process Instance Id: ');
|
cy.contains('Process Instance Id: ');
|
||||||
|
|
||||||
cy.get(`g[data-element-id=form3]`).click();
|
cy.get(`g[data-element-id=form3]`).click();
|
||||||
|
@ -106,7 +106,7 @@ describe('tasks', () => {
|
||||||
cy.assertAtLeastOneItemInPaginatedResults();
|
cy.assertAtLeastOneItemInPaginatedResults();
|
||||||
|
|
||||||
// This should get the first one which should be the one we just completed
|
// This should get the first one which should be the one we just completed
|
||||||
cy.getBySel('process-instance-show-link').first().click();
|
cy.getBySel('process-instance-show-link-id').first().click();
|
||||||
cy.contains('Process Instance Id: ');
|
cy.contains('Process Instance Id: ');
|
||||||
cy.contains('Status: complete');
|
cy.contains('Status: complete');
|
||||||
});
|
});
|
||||||
|
@ -120,6 +120,6 @@ describe('tasks', () => {
|
||||||
kickOffModelWithForm();
|
kickOffModelWithForm();
|
||||||
|
|
||||||
cy.navigateToHome();
|
cy.navigateToHome();
|
||||||
cy.basicPaginationTest('process-instance-show-link');
|
cy.basicPaginationTest('process-instance-show-link-id');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -1265,6 +1265,7 @@ export default function ProcessInstanceListTable({
|
||||||
return (
|
return (
|
||||||
// eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
|
// eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
|
||||||
<td
|
<td
|
||||||
|
data-qa={`process-instance-show-link-${column.accessor}`}
|
||||||
onKeyDown={navigateToProcessModel}
|
onKeyDown={navigateToProcessModel}
|
||||||
onClick={navigateToProcessInstance}
|
onClick={navigateToProcessInstance}
|
||||||
>
|
>
|
||||||
|
|
Loading…
Reference in New Issue