From 38ca0fade8c92a9b287f4da5d698cdc945c95fe6 Mon Sep 17 00:00:00 2001 From: Haoqun Jiang Date: Mon, 18 Jul 2022 15:41:27 +0800 Subject: [PATCH] fix: wait on localhost:4173 instead of 127.0.0.1 As Vite 3 has changed the default host to `localhost` --- template/config/cypress/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/template/config/cypress/package.json b/template/config/cypress/package.json index 58cfb965..1b984b20 100644 --- a/template/config/cypress/package.json +++ b/template/config/cypress/package.json @@ -1,7 +1,7 @@ { "scripts": { - "test:e2e": "start-server-and-test preview http://127.0.0.1:4173/ 'cypress open --e2e'", - "test:e2e:ci": "start-server-and-test preview http://127.0.0.1:4173/ 'cypress run --e2e'" + "test:e2e": "start-server-and-test preview http://localhost:4173/ 'cypress open --e2e'", + "test:e2e:ci": "start-server-and-test preview http://localhost:4173/ 'cypress run --e2e'" }, "devDependencies": { "cypress": "^10.3.0", -- 2.39.5