Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions apps/web/e2e/production-smoke.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ test('deployed product routes, assets, wallet modal, and relay are live', async
waitUntil: 'domcontentloaded',
});
expect(explore?.status()).toBe(200);
await expect(page.locator('.catalog-card')).toHaveCount(5);
await expect(page.locator('.catalog-card')).toHaveCount(5, {
timeout: 60_000,
});
await page
.getByPlaceholder('Search machine, capability or location')
.fill('solar power Abuja');
Expand All @@ -54,23 +56,23 @@ test('deployed product routes, assets, wallet modal, and relay are live', async
expect(machine?.status()).toBe(200);
await expect(
page.locator('main h1, main [role="alert"] h2').first(),
).toBeVisible();
).toBeVisible({ timeout: 60_000 });

const proof = await page.goto(`/proofs/${proofTransaction}`, {
waitUntil: 'domcontentloaded',
});
expect(proof?.status()).toBe(200);
await expect(
page.locator('main h1, main [role="alert"] h2').first(),
).toBeVisible();
).toBeVisible({ timeout: 60_000 });

const diagnostics = await page.goto('/diagnostics', {
waitUntil: 'domcontentloaded',
});
expect(diagnostics?.status()).toBe(200);
await expect(
page.getByRole('heading', { name: 'All systems ready' }),
).toBeVisible();
page.getByRole('heading', { name: 'ProofKey infrastructure is ready' }),
).toBeVisible({ timeout: 60_000 });

const health = await request.get(`${relayUrl}/health`, { timeout: 60_000 });
expect(health.status()).toBe(200);
Expand Down
2 changes: 1 addition & 1 deletion apps/web/production-smoke.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if (!baseURL)
export default defineConfig({
testDir: './e2e',
testMatch: '**/production-smoke.spec.ts',
timeout: 120_000,
timeout: 240_000,
expect: { timeout: 15_000 },
retries: 1,
reporter: 'line',
Expand Down
Loading