Skip to content

Commit

Permalink
Merge branch 'staging' into feature/cloudflare-r2-backups
Browse files Browse the repository at this point in the history
# Conflicts:
#	site/gatsby-site/cypress/e2e/integration/discover.cy.js
  • Loading branch information
pdcp1 committed Nov 14, 2023
2 parents 5d71605 + 7b03680 commit 37cc9eb
Show file tree
Hide file tree
Showing 3 changed files with 166 additions and 153 deletions.
4 changes: 0 additions & 4 deletions site/gatsby-site/cypress/e2e/integration/discover.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,10 @@ describe('The Discover app', () => {

cy.location('search', { timeout: 8000 }).should('contain', 'is_incident_report=true');

cy.waitForStableDOM();

cy.contains('[data-cy="display-options"]', 'Incident Reports')
.should('exist')
.and('be.visible');

cy.waitForStableDOM();

cy.get('div[data-cy="hits-container"]').children().should('have.length.at.least', 28);
}
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,7 @@ describe('Functions', () => {
expect(notificationsCollection.updateOne.getCall(i).args[1].$set.processed).to.be.equal(
true
);
expect(notificationsCollection.updateOne.getCall(i).args[1].$set).not.to.have.ownProperty(
expect(notificationsCollection.updateOne.getCall(i).args[1].$set).to.have.ownProperty(
'sentDate'
);
}
Expand All @@ -808,9 +808,9 @@ describe('Functions', () => {
expect(notificationsCollection.updateOne.getCall(i + 2).args[1].$set.processed).to.be.equal(
true
);
expect(
notificationsCollection.updateOne.getCall(i + 2).args[1].$set
).not.to.have.ownProperty('sentDate');
expect(notificationsCollection.updateOne.getCall(i + 2).args[1].$set).to.have.ownProperty(
'sentDate'
);
}

for (let i = 0; i < pendingNotificationsToIncidentUpdates.length; i++) {
Expand All @@ -827,9 +827,9 @@ describe('Functions', () => {
expect(notificationsCollection.updateOne.getCall(i + 4).args[1].$set.processed).to.be.equal(
true
);
expect(
notificationsCollection.updateOne.getCall(i + 4).args[1].$set
).not.to.have.ownProperty('sentDate');
expect(notificationsCollection.updateOne.getCall(i + 4).args[1].$set).to.have.ownProperty(
'sentDate'
);
}

expect(
Expand Down
Loading

0 comments on commit 37cc9eb

Please sign in to comment.