From 07d31fd897ea5417a09b81a52b244cc117231880 Mon Sep 17 00:00:00 2001 From: ajuvonen Date: Tue, 26 Mar 2024 15:29:52 +0200 Subject: [PATCH] Decrease e2e page load timeout --- cypress.config.ts | 3 ++- src/views/ExportView.vue | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cypress.config.ts b/cypress.config.ts index 5196bec..4516fab 100644 --- a/cypress.config.ts +++ b/cypress.config.ts @@ -3,8 +3,9 @@ import {defineConfig} from 'cypress'; export default defineConfig({ e2e: { specPattern: 'cypress/e2e/**/*.cy.ts', - baseUrl: 'http://localhost:5173/getfit/', + baseUrl: 'http://localhost:5173/getfit', video: false, trashAssetsBeforeRuns: true, + pageLoadTimeout: 5000, }, }); diff --git a/src/views/ExportView.vue b/src/views/ExportView.vue index cbd24aa..7a14242 100644 --- a/src/views/ExportView.vue +++ b/src/views/ExportView.vue @@ -38,7 +38,7 @@ const downloadICS = async () => { } else if (value) { const file = new File([value], t('export.filename'), {type: 'text/calendar'}); const url = URL.createObjectURL(file); - + console.log(url); const anchor = document.createElement('a'); anchor.href = url; anchor.download = t('export.filename');