Skip to content

Commit

Permalink
Update tests to use Cypress 14
Browse files Browse the repository at this point in the history
  • Loading branch information
jm-mailosaur committed Jan 24, 2025
1 parent 13988d5 commit da7ab66
Show file tree
Hide file tree
Showing 4 changed files with 653 additions and 293 deletions.
4 changes: 2 additions & 2 deletions test/react-app/cypress/e2e/messages.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ describe('Mailosaur message commands', () => {
});
});
});

describe('.mailosaurGetDeliverabilityReport', () => {
it('should perform a deliverability report on an email', (done) => {
const targetId = emails[0].id;
Expand Down Expand Up @@ -378,7 +378,7 @@ describe('Mailosaur message commands', () => {
describe('.mailosaurDeleteMessage', () => {
it('should delete an email', (done) => {
const targetEmailId = emails[4].id;
cy.mailosaurDeleteMessage(targetEmailId).then(done);
cy.mailosaurDeleteMessage(targetEmailId).then(() => done());
});
});

Expand Down
2 changes: 1 addition & 1 deletion test/react-app/cypress/e2e/servers.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ describe('Mailosaur server commands', () => {
});

it('.mailosaurDeleteServer should delete an existing server', (done) => {
cy.mailosaurDeleteServer(retrievedServer.id).then(done);
cy.mailosaurDeleteServer(retrievedServer.id).then(() => done());
});
});
});
Loading

0 comments on commit da7ab66

Please sign in to comment.