feat(package): add Cypress for end-to-end testing and enhance scripts
- 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.
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
/// <reference types="cypress" />
|
||||
|
||||
// Central place for global Cypress hooks/commands.
|
||||
import "./commands";
|
||||
|
||||
beforeEach(() => {
|
||||
if (Cypress.env("AUTO_LOGIN") !== false) {
|
||||
cy.loginAsAdmin();
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user