test(bstein-home): stabilize frontend e2e on ci agents
This commit is contained in:
parent
05a5738213
commit
a0c403a64c
@ -8,6 +8,17 @@ test.beforeEach(async ({ page }) => {
|
||||
body: JSON.stringify({ enabled: false }),
|
||||
});
|
||||
});
|
||||
await page.route("**/api/lab/status", async (route) => {
|
||||
await route.fulfill({
|
||||
status: 200,
|
||||
contentType: "application/json",
|
||||
body: JSON.stringify({
|
||||
connected: true,
|
||||
atlas: { up: true },
|
||||
oceanus: { up: false },
|
||||
}),
|
||||
});
|
||||
});
|
||||
await page.route("**/api/access/request/availability*", async (route) => {
|
||||
await route.fulfill({
|
||||
status: 200,
|
||||
|
||||
@ -7,6 +7,11 @@ const frontendRoot = path.resolve(testingDir, "../../frontend");
|
||||
|
||||
export default defineConfig({
|
||||
testDir: path.resolve(testingDir, "e2e"),
|
||||
workers: 1,
|
||||
timeout: 60000,
|
||||
expect: {
|
||||
timeout: 10000,
|
||||
},
|
||||
use: {
|
||||
baseURL: "http://127.0.0.1:4173",
|
||||
trace: "on-first-retry",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user