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 }),
|
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 page.route("**/api/access/request/availability*", async (route) => {
|
||||||
await route.fulfill({
|
await route.fulfill({
|
||||||
status: 200,
|
status: 200,
|
||||||
|
|||||||
@ -7,6 +7,11 @@ const frontendRoot = path.resolve(testingDir, "../../frontend");
|
|||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
testDir: path.resolve(testingDir, "e2e"),
|
testDir: path.resolve(testingDir, "e2e"),
|
||||||
|
workers: 1,
|
||||||
|
timeout: 60000,
|
||||||
|
expect: {
|
||||||
|
timeout: 10000,
|
||||||
|
},
|
||||||
use: {
|
use: {
|
||||||
baseURL: "http://127.0.0.1:4173",
|
baseURL: "http://127.0.0.1:4173",
|
||||||
trace: "on-first-retry",
|
trace: "on-first-retry",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user