From 5821abae17f3eeffec26c22c2cfb084af3a109a5 Mon Sep 17 00:00:00 2001 From: Jaakko Husso Date: Mon, 30 Jun 2025 11:39:40 +0300 Subject: [PATCH] test(editor): Mock /api/whats-new request during E2E tests (no-changelog) (#16826) --- cypress/support/e2e.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/cypress/support/e2e.ts b/cypress/support/e2e.ts index 10acb175e8..2394d3e587 100644 --- a/cypress/support/e2e.ts +++ b/cypress/support/e2e.ts @@ -94,4 +94,16 @@ beforeEach(() => { description: 'Includes core functionality and bug fixes', }, ]).as('getVersions'); + cy.intercept( + { pathname: '/api/whats-new' }, + { + id: 1, + title: "What's new", + calloutText: '', + footer: '', + createdAt: '2025-06-27T14:55:58.717Z', + updatedAt: '2025-06-27T15:06:44.092Z', + items: [], + }, + ).as('getWhatsNew'); });