Skip to content

Commit

Permalink
Add initial pending review test
Browse files Browse the repository at this point in the history
  • Loading branch information
Onitoxan committed Jan 15, 2025
1 parent 333951f commit 5c1cfbf
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
1 change: 1 addition & 0 deletions apps/hpc-ftsadmin-e2e/src/support/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ export type DataTest =
| `flows-table-header-${string}` // TableHeadersProps<FlowHeaderID>.label as value
| 'pending-flows-nav-button'
| 'pending-flows-bulk-reject-button'
| 'pending-flows-popup'
| 'keywords-nav-button'
| 'keywords-table-id'
| 'keywords-table-name'
Expand Down
14 changes: 9 additions & 5 deletions apps/hpc-ftsadmin-e2e/src/tests/pending-flow.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,15 @@ describe('hpc-ftsadmin pending-flow', () => {
cy.typedGet('flows-table').should('not.exist');
});

/**
* TODO: Add more checking to the test once edit flow is in the app
*/
it('Enter pending-flow', () => {
cy.typedGet('flows-table-row-305776v1').click();
cy.location('pathname').should('eq', '/flows/305776/1');
cy.typedGet('flows-table-row-328879v1').find('a').click();
cy.location('pathname').should('eq', '/flows/328879/1');
cy.get('span')
.contains(
'This flow is not active because it has been marked as Pending review'
)
.should('exist');

cy.typedGet('pending-flows-popup').should('have.length', 4);
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ const ReviewPendingValues = ({
};

return (
<BluePaper elevation={3}>
<BluePaper elevation={3} data-test="pending-flows-popup">
<HeaderContainer>
<WarningIcon color="warning" />
<span style={{ color: '#fff' }}>
Expand Down

0 comments on commit 5c1cfbf

Please sign in to comment.