Skip to content

test(e2e): assert the Add action is the first offence results column - #242

Closed
kmshrajcps wants to merge 1 commit into
mainfrom
task/FCT2-offence-actions-column
Closed

kmshrajcps wants to merge 1 commit into
mainfrom
task/FCT2-offence-actions-column

Conversation

@kmshrajcps

Copy link
Copy Markdown
Contributor

Adding test to assert the Add action is the first offence results column

The column move itself shipped in #229; this covers it against the real
/api/v1/offences response, where previously only the MSW integration
suite asserted the order.

Scenario 21 drives a suspect journey to the offence search page and
checks the rendered table: one ordered comparison over the header cells
covers both halves of the acceptance criteria - Actions is first, and it
comes before CJS code, Description, Statute name and section and
Effective dates.

Header order alone would still pass with the Add link moved to another
cell, so it also asserts the link is in the first column and the CJS
code is the column that follows it.

Both assertions were falsified before being kept: expecting CJS code
first fails on the header comparison, and looking for the Add link in
the second cell fails with the element not found.
@sonarqubecloud

sonarqubecloud Bot commented Sep 22, 2026 •

Copy link
Copy Markdown

@HasanCPS HasanCPS left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@kmshrajcps

Copy link
Copy Markdown
Contributor Author

as this PR #252 is raised, closing this

@kmshrajcps kmshrajcps closed this Sep 24, 2026
@kmshrajcps

Copy link
Copy Markdown
Contributor Author

as other PR is raised #252

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants