diff --git a/cypress/support/component.jsx b/cypress/support/component.jsx index 53a3c513fd..2c4d151c3d 100644 --- a/cypress/support/component.jsx +++ b/cypress/support/component.jsx @@ -1,5 +1,4 @@ /* global Cypress */ -import React from 'react'; import { mount } from 'cypress/react18'; import { ThemeProvider } from '@ui5/webcomponents-react'; import { MemoryRouter } from 'react-router'; diff --git a/src/resources/Pods/test/PodRestarts.cy.js b/src/resources/Pods/test/PodRestarts.cy.js index 94a88e987c..a1bb62bde5 100644 --- a/src/resources/Pods/test/PodRestarts.cy.js +++ b/src/resources/Pods/test/PodRestarts.cy.js @@ -2,9 +2,6 @@ import PodRestarts from '../PodRestarts'; describe('PodRestarts', () => { - beforeEach(() => { - cy.wait(2000); - }); it('Shows 0 for no statuses', () => { cy.mount(); diff --git a/tests/integration/support/navigate-to.js b/tests/integration/support/navigate-to.js index a9e73a6fd8..729089e1cc 100644 --- a/tests/integration/support/navigate-to.js +++ b/tests/integration/support/navigate-to.js @@ -15,5 +15,5 @@ Cypress.Commands.add('navigateTo', (leftNav, resource) => { cy.get('@btn-2').click(); } - cy.wait(500); + cy.wait(1500); }); diff --git a/tests/integration/tests/companion/test-companion-suggestions.spec.js b/tests/integration/tests/companion/test-companion-suggestions.spec.js index 2347827309..f56b3e8187 100644 --- a/tests/integration/tests/companion/test-companion-suggestions.spec.js +++ b/tests/integration/tests/companion/test-companion-suggestions.spec.js @@ -15,7 +15,7 @@ context('Test Companion Initial Suggestions', () => { cy.intercept('POST', '/backend/ai-chat/suggestions', req => { callCount++; req.reply({ - delay: 500, + delay: 2000, body: { promptSuggestions: [ `suggestion${callCount}.1`, diff --git a/vite.config.mts b/vite.config.mts index 0a5494a47f..823c4152e3 100644 --- a/vite.config.mts +++ b/vite.config.mts @@ -15,6 +15,12 @@ export default defineConfig({ }, server: { port: 8080, + warmup: { + clientFiles: [ + 'cypress/support/component.jsx', + 'src/**/*.cy.{js,jsx,ts,tsx}', + ] + }, proxy: { // with options '^/backend/.*': { @@ -74,7 +80,7 @@ export default defineConfig({ '@openapi-contrib/openapi-schema-to-json-schema', '@stoplight/json-ref-resolver', 'monaco-yaml/yaml.worker.js' - ] + ], }, define: { 'process.env.IS_DOCKER': JSON.stringify(process.env.IS_DOCKER || false),