From f121b8642b1da052a45dff88cd79ed84e1726b1b Mon Sep 17 00:00:00 2001 From: 21120447 Date: Sun, 4 Aug 2024 18:17:27 +0700 Subject: [PATCH] fix: run test (3) --- cypress/e2e/test-01.cy.ts | 2 +- src/router/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cypress/e2e/test-01.cy.ts b/cypress/e2e/test-01.cy.ts index 5c4d60d..2ce9b21 100644 --- a/cypress/e2e/test-01.cy.ts +++ b/cypress/e2e/test-01.cy.ts @@ -1,6 +1,6 @@ describe('My First Test', () => { it('Does not do much!', () => { - cy.visit('http://localhost:3000/quizz/') + cy.visit('http://localhost:3000/testing-cypress/') cy.wait(3000) cy.contains('Baitaptracnghiem') diff --git a/src/router/index.ts b/src/router/index.ts index a712d0b..e67124a 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -30,7 +30,7 @@ const routes = [ ] const router = createRouter({ - history: createWebHistory("quizz/"), + history: createWebHistory("testing-cypress/"), routes, scrollBehavior() { document.getElementById('app')?.scrollIntoView({ behavior: 'smooth' });