mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
ci: Drop support for Node.js 18 (#15146)
This commit is contained in:
committed by
GitHub
parent
40de4ed91c
commit
3bdbdfe6ce
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user