test(e2e): extract shared page test setup hooks

This commit is contained in:
Abhimanyu Saharan
2026-03-04 22:24:35 +05:30
parent d1b08b4777
commit 39f314cd8c
4 changed files with 41 additions and 47 deletions

View File

@@ -1,18 +1,12 @@
/// <reference types="cypress" />
import { setupCommonPageTestHooks } from "../support/testHooks";
describe("/boards", () => {
const apiBase = "**/api/v1";
const email = "local-auth-user@example.com";
const originalDefaultCommandTimeout = Cypress.config("defaultCommandTimeout");
beforeEach(() => {
Cypress.config("defaultCommandTimeout", 20_000);
});
afterEach(() => {
Cypress.config("defaultCommandTimeout", originalDefaultCommandTimeout);
});
setupCommonPageTestHooks(apiBase);
it("auth negative: signed-out user is shown local auth login", () => {
cy.visit("/boards");