test(web-app): add test end2end

- it implements a 1st version of it
This commit is contained in:
fastium
2025-06-08 21:19:53 +02:00
parent e8fae59467
commit c5efa10f1a
5 changed files with 487 additions and 94 deletions

View File

@@ -5,17 +5,12 @@ export default defineConfig({
specPattern: "tests/e2e/*.spec.ts",
baseUrl: "http://localhost:8080",
supportFile: "tests/support/e2e.ts",
setupNodeEvents(on, config) {
on("before:browser:launch", (browser, launchOptions) => {
// Allow tests to run even if baseUrl is not available
// This is useful for unit tests that don't need a server
if (process.env.CYPRESS_SKIP_SERVER_CHECK === "true") {
config.baseUrl = null;
return config;
}
return launchOptions;
});
},
// Don't skip server checks - we want to ensure the app is running
// Wait up to 10 seconds for the server to be available
defaultCommandTimeout: 10000,
requestTimeout: 10000,
responseTimeout: 10000,
pageLoadTimeout: 30000,
},
component: {
devServer: {