Skip to content

Commit

Permalink
test: update cy commands to be generic
Browse files Browse the repository at this point in the history
  • Loading branch information
AlitaBernachot committed Jan 20, 2025
1 parent c7a7148 commit 7bac8f7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions apps/datahub-e2e/src/support/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,7 @@ Cypress.Commands.add('interceptDataset', (id) => {
'POST',
`/geonetwork/srv/api/search/records/_search?bucket=bucket`,
(req) => {
if (
req.body.query?.ids?.values.includes(
'775b7660-b03b-443a-9817-be82ecd0ef07'
)
) {
if (req.body.query?.ids?.values.includes(id)) {
req.reply({
statusCode: 200,
body: fixtureData,
Expand Down

0 comments on commit 7bac8f7

Please sign in to comment.