test(web-app): add test end2end
- it implements a 1st version of it
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user