make pagination test work for instances as well

This commit is contained in:
burnettk 2022-12-28 23:25:03 -05:00
parent 454f651d0a
commit b2ee20c260
3 changed files with 4 additions and 4 deletions

View File

@ -129,7 +129,7 @@ Cypress.Commands.add('basicPaginationTest', () => {
// to be sure it's finished, grab the log id from page 1. remember it. // to be sure it's finished, grab the log id from page 1. remember it.
// then use the magical contains command that waits for the element to exist AND // then use the magical contains command that waits for the element to exist AND
// for that element to contain the text we're looking for. // for that element to contain the text we're looking for.
cy.getBySel('process-instance-log-id') cy.getBySel('paginated-entity-id')
.first() .first()
.then(($element) => { .then(($element) => {
const oldId = $element.text().trim(); const oldId = $element.text().trim();
@ -137,7 +137,7 @@ Cypress.Commands.add('basicPaginationTest', () => {
cy.contains(/\b34 of \d+/); cy.contains(/\b34 of \d+/);
cy.get('.cds--pagination__button--backward').click(); cy.get('.cds--pagination__button--backward').click();
cy.contains(/\b12 of \d+/); cy.contains(/\b12 of \d+/);
cy.contains('[data-qa=process-instance-log-id]', oldId); cy.contains('[data-qa=paginated-entity-id]', oldId);
}); });
}); });

View File

@ -1111,7 +1111,7 @@ export default function ProcessInstanceListTable({
to={`${processInstancePathPrefix}/${modifiedProcessModelId}/${id}`} to={`${processInstancePathPrefix}/${modifiedProcessModelId}/${id}`}
title={`View process instance ${id}`} title={`View process instance ${id}`}
> >
{id} <span data-qa="paginated-entity-id">{id}</span>
</Link> </Link>
); );
}; };

View File

@ -45,7 +45,7 @@ export default function ProcessInstanceLogList() {
const rowToUse = row as any; const rowToUse = row as any;
return ( return (
<tr key={rowToUse.id}> <tr key={rowToUse.id}>
<td data-qa="process-instance-log-id">{rowToUse.id}</td> <td data-qa="paginated-entity-id">{rowToUse.id}</td>
<td>{rowToUse.message}</td> <td>{rowToUse.message}</td>
<td>{rowToUse.bpmn_task_name}</td> <td>{rowToUse.bpmn_task_name}</td>
{isDetailedView && ( {isDetailedView && (