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

@@ -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(() => {