From 81c8f125c151aa1cee4446fee1211b53550e1424 Mon Sep 17 00:00:00 2001 From: xierenyuan Date: Wed, 7 Dec 2022 21:28:34 +0800 Subject: [PATCH] test(boilerplate-vue): set both retries and timeout --- examples/boilerplate-vue/cypress.config.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/examples/boilerplate-vue/cypress.config.ts b/examples/boilerplate-vue/cypress.config.ts index 751eb5c690d9..e26cbc11f549 100644 --- a/examples/boilerplate-vue/cypress.config.ts +++ b/examples/boilerplate-vue/cypress.config.ts @@ -1,6 +1,7 @@ import { defineConfig } from 'cypress'; const PORT = process.env.PORT || '8000'; +const isWin = process.platform === 'win32'; export default defineConfig({ projectId: 'qikpat', @@ -10,4 +11,8 @@ export default defineConfig({ }, baseUrl: `http://localhost:${PORT}`, }, + retries: { + runMode: 3, + }, + defaultCommandTimeout: isWin ? 60000 : 4000, });