Skip to content

Commit

Permalink
fix: flaky tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eirikhaugstulen committed Oct 24, 2024
1 parent f7f60f2 commit 55de86d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Then('you confirm 3 active enrollments successfully', () => {

cy.intercept({
method: 'POST',
url: '**/tracker?async=false&importStrategy=UPDATE',
url: '**/tracker?async=false&importStrategy=UPDATE&importMode=COMMIT',
}, {
statusCode: 200,
body: {},
Expand Down Expand Up @@ -111,7 +111,7 @@ When('you confirm 1 active enrollment without completing events successfully', (

cy.intercept({
method: 'POST',
url: '**/tracker?async=false&importStrategy=UPDATE',
url: '**/tracker?async=false&importStrategy=UPDATE&importMode=COMMIT',
}, {
statusCode: 200,
body: {},
Expand Down Expand Up @@ -147,7 +147,7 @@ When('you confirm 2 active enrollments with errors', () => {

cy.intercept({
method: 'POST',
url: '**/tracker?async=false&importStrategy=UPDATE',
url: '**/tracker?async=false&importStrategy=UPDATE&importMode=COMMIT',
}, {
statusCode: 200,
body: {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const validateEnrollments = async ({ dataEngine, enrollments }) => dataEngine.mu
});

const importValidEnrollments = async ({ dataEngine, enrollments }) => dataEngine.mutate({
resource: 'tracker?async=false&importStrategy=UPDATE',
resource: 'tracker?async=false&importStrategy=UPDATE&importMode=COMMIT',
type: 'create',
data: () => ({ enrollments }),
});
Expand Down

0 comments on commit 55de86d

Please sign in to comment.