mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
test(editor): Mock /api/whats-new request during E2E tests (no-changelog) (#16826)
This commit is contained in:
@@ -94,4 +94,16 @@ beforeEach(() => {
|
|||||||
description: 'Includes <strong>core functionality</strong> and <strong>bug fixes</strong>',
|
description: 'Includes <strong>core functionality</strong> and <strong>bug fixes</strong>',
|
||||||
},
|
},
|
||||||
]).as('getVersions');
|
]).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');
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user