Fix hydration hanging in E2E tests

This commit is contained in:
Kalle 2022-07-20 19:33:14 +03:00
parent ca076349b3
commit dcdb7bef0d
2 changed files with 3 additions and 2 deletions

View File

@ -20,5 +20,7 @@ export function i18nLoader() {
order: ["htmlTag"],
caches: [],
},
// without this hydration fails in E2E tests
initImmediate: false,
});
}

View File

@ -42,8 +42,7 @@ describe("Plus suggestions page", () => {
cy.contains("Cracked!").should("not.exist");
});
// "Maximum call stack size exceeded" seems to be Cypress bug...?: https://github.com/cypress-io/cypress/issues/20738
it.skip("adds a new suggestion, validates suggested user and deletes it", () => {
it("adds a new suggestion, validates suggested user and deletes it", () => {
cy.clock(new Date(Date.UTC(2022, 5, 15))); // let's make sure voting is not happening
cy.auth();
cy.visit(PLUS_SUGGESTIONS_PAGE);