ci: Drop support for Node.js 18 (#15146)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2025-06-04 15:54:57 +02:00
committed by GitHub
parent 40de4ed91c
commit 3bdbdfe6ce
39 changed files with 432 additions and 500 deletions

View File

@@ -23,11 +23,11 @@
"n8n-workflow": "workspace:*"
},
"dependencies": {
"@ngneat/falso": "^7.2.0",
"@ngneat/falso": "^7.3.0",
"@sinonjs/fake-timers": "^13.0.2",
"cypress": "^13.14.2",
"cypress": "^14.4.0",
"cypress-otp": "^1.0.3",
"cypress-real-events": "^1.13.0",
"cypress-real-events": "^1.14.0",
"flatted": "catalog:",
"lodash": "catalog:",
"nanoid": "catalog:",

View File

@@ -12,6 +12,18 @@ before(() => {
Cypress.on('uncaught:exception', (error) => {
return !error.message.includes('ResizeObserver');
});
// Mock the clipboard API because in newer versions of cypress the clipboard API is flaky when the window is not focussed.
Cypress.on('window:before:load', (win) => {
let currentContent: string = '';
Object.assign(win.navigator.clipboard, {
writeText: async (text: string) => {
currentContent = text;
return await Promise.resolve();
},
readText: async () => await Promise.resolve(currentContent),
});
});
});
beforeEach(() => {