make pagination test work for instances as well

This commit is contained in:
burnettk 2022-12-28 23:25:03 -05:00
parent 492f9478fc
commit 744460fdbf
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.
// 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.
cy.getBySel('process-instance-log-id')
cy.getBySel('paginated-entity-id')
.first()
.then(($element) => {
const oldId = $element.text().trim();
@ -137,7 +137,7 @@ Cypress.Commands.add('basicPaginationTest', () => {
cy.contains(/\b34 of \d+/);
cy.get('.cds--pagination__button--backward').click();
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}`}
title={`View process instance ${id}`}
>
{id}
<span data-qa="paginated-entity-id">{id}</span>
</Link>
);
};

View File

@ -45,7 +45,7 @@ export default function ProcessInstanceLogList() {
const rowToUse = row as any;
return (
<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.bpmn_task_name}</td>
{isDetailedView && (