test(editor): Mock /api/whats-new request during E2E tests (no-changelog) (#16826)

This commit is contained in:
Jaakko Husso
2025-06-30 11:39:40 +03:00
committed by GitHub
parent 0debbc3503
commit 5821abae17

View File

@@ -94,4 +94,16 @@ beforeEach(() => {
description: 'Includes <strong>core functionality</strong> and <strong>bug fixes</strong>',
},
]).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');
});