Skip to content

Commit aece36a

Browse files
authored
test(cypress): make cypress tests run smoothly (#4844)
1 parent 45575ab commit aece36a

File tree

2 files changed

+1
-16
lines changed

2 files changed

+1
-16
lines changed

test/cypress/e2e/plugin.editor-persistence.cy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ describe('EditorPersistencePlugin', () => {
1313
.should('contains.text', '2.6.0');
1414
});
1515

16-
it.skip('should reload while keeping text change from 2.6.0 to 2.5.0', () => {
16+
it('should reload while keeping text change from 2.6.0 to 2.5.0', () => {
1717
cy.prepareAsyncAPI();
1818
cy.waitForSplashScreen();
1919

test/cypress/support/commands.js

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,6 @@
2727
import '@testing-library/cypress/add-commands.js';
2828
import 'cypress-file-upload';
2929

30-
Cypress.on('window:before:load', (win) => {
31-
cy.stub(win.console, 'error', (msg) => {
32-
cy.now('task', 'error', msg);
33-
});
34-
35-
cy.stub(win.console, 'warn', (msg) => {
36-
cy.now('task', 'warn', msg);
37-
});
38-
});
39-
40-
Cypress.on('uncaught:exception', (err) => {
41-
cy.now('task', 'uncaught', err);
42-
return true; // true = fail the test
43-
});
44-
4530
Cypress.Commands.add('prepareAsyncAPI', () => {
4631
cy.intercept(
4732
'GET',

0 commit comments

Comments
 (0)