test: implement e2e test

This commit is contained in:
Nathan
2025-08-14 09:46:22 +08:00
parent 97a60aec9c
commit d44456a265
12 changed files with 1024 additions and 23 deletions

View File

@@ -1,4 +1,8 @@
/// <reference types="cypress" />
// Import auth utilities
import './auth-utils';
// ***********************************************
// This example commands.ts shows you how to
// create various custom commands and overwrite
@@ -8,23 +12,6 @@
// commands please read more here:
// https://on.cypress.io/custom-commands
// ***********************************************
//
//
// -- This is a parent command --
// Cypress.Commands.add('login', (email, password) => { ... })
//
//
// -- This is a child command --
// Cypress.Commands.add('drag', { prevSubject: 'element'}, (subject, options) => { ... })
//
//
// -- This is a dual command --
// Cypress.Commands.add('dismiss', { prevSubject: 'optional'}, (subject, options) => { ... })
//
//
// -- This will overwrite an existing command --
// Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... })
//
Cypress.Commands.add('mockAPI', () => {
// Mock the API