Some checks failed
CI Docker Mining Proof / Linux agent hashrate proof (push) Has been cancelled
22 lines
769 B
TypeScript
22 lines
769 B
TypeScript
import { expect, test } from '@playwright/test';
|
|
import { loginToDashboard } from './fixtures';
|
|
|
|
test.describe('AetherForge smoke', () => {
|
|
test('health endpoint responds', async ({ request }) => {
|
|
const res = await request.get('/api/v1/health');
|
|
expect(res.ok()).toBeTruthy();
|
|
const body = await res.json();
|
|
expect(body.status).toBe('ok');
|
|
});
|
|
|
|
test('login gate renders and accepts credentials', async ({ page }) => {
|
|
await loginToDashboard(page);
|
|
});
|
|
|
|
test('forge page loads after login', async ({ page }) => {
|
|
await loginToDashboard(page);
|
|
await page.getByRole('link', { name: /forge/i }).click();
|
|
await expect(page.getByRole('heading', { level: 1, name: 'Forge', exact: true })).toBeVisible({ timeout: 10_000 });
|
|
});
|
|
});
|