uselagoon / lagoon-ui

Apache License 2.0
6 stars 2 forks source link

Ordinal Cypress selectors can depend on variable ordering coming from API #231

Closed tobybellwood closed 3 months ago

tobybellwood commented 3 months ago

Noticed in another PR #230 - because Lagoon ordering can be fickle (in this case the order is now derived from the ID instead of the name) - using .first and expecting the result to be in the first position may not always work.

If possible, we may need to change this logic to hunt the row we actually want.

https://github.com/uselagoon/lagoon-ui/blob/1198cbf966545e2bf2d4c9a277f94c3a55ada2ad/cypress/support/actions/organizations/GroupsAction.ts#L12C30-L12C37