Skip to content

Commit

Permalink
Merge pull request responsible-ai-collaborative#2459 from pdcp1/fix/s…
Browse files Browse the repository at this point in the history
…end-duplicated-notifications

Filter unique pending notifications to avoid duplicate emails
  • Loading branch information
kepae authored Dec 21, 2023
2 parents 5067459 + 261274b commit b1a4672
Show file tree
Hide file tree
Showing 10 changed files with 1,481 additions and 985 deletions.
12 changes: 0 additions & 12 deletions site/gatsby-site/cypress/e2e/integration/apps/submitted.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,18 +212,6 @@ describe('Submitted reports', () => {
expect(variables.subscription.userId.link).to.eq(user.userId);
});

cy.wait('@UpsertSubscriptionPromoted')
.its('request.body.variables')
.then((variables) => {
expect(variables.query.type).to.eq(SUBSCRIPTION_TYPE.submissionPromoted);
expect(variables.query.incident_id.incident_id).to.eq(182);
expect(variables.query.userId.userId).to.eq(submission.user.userId);

expect(variables.subscription.type).to.eq(SUBSCRIPTION_TYPE.submissionPromoted);
expect(variables.subscription.incident_id.link).to.eq(182);
expect(variables.subscription.userId.link).to.eq(submission.user.userId);
});

cy.contains(
'[data-cy="toast"]',
'Successfully promoted submission to Incident 182 and Report 1565'
Expand Down
Loading

0 comments on commit b1a4672

Please sign in to comment.