Skip to content

Commit 25f464c

Browse files
debug cypress ci
1 parent 162d78c commit 25f464c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

ui/cypress/support/index.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,13 @@
1515

1616
import './commands';
1717

18-
beforeEach(() =>{
18+
beforeEach(async () =>{
1919
// TODO figure out why CI is raising "clearImmediate is not defined" whereas everything goes well locally
20+
cy.log("Setting clearImmediate to debug ci", window);
2021
window.clearImmediate = {};
21-
cy.window().then((win) => {
22-
win.clearImmediate = {};
23-
});
22+
const win = await cy.window();
23+
cy.log("Setting clearImmediate to debug ci on cypress window object", win);
24+
win.clearImmediate = {};
2425
})
2526

2627
afterEach(() => {

0 commit comments

Comments
 (0)