bb1af8b31c
- Added Cypress as a dependency for end-to-end testing. - Introduced new npm scripts for running Cypress tests and starting the development server for testing. - Updated package-lock.json to reflect the new dependencies and their versions.
11 lines
204 B
TypeScript
11 lines
204 B
TypeScript
/// <reference types="cypress" />
|
|
|
|
// Central place for global Cypress hooks/commands.
|
|
import "./commands";
|
|
|
|
beforeEach(() => {
|
|
if (Cypress.env("AUTO_LOGIN") !== false) {
|
|
cy.loginAsAdmin();
|
|
}
|
|
});
|