mirror of
https://github.com/hoshikawa2/agent_platform_oci.git
synced 2026-07-09 22:04:21 +00:00
First commit
This commit is contained in:
10
evals/certification/playwright/frontend_smoke.spec.js
Normal file
10
evals/certification/playwright/frontend_smoke.spec.js
Normal file
@@ -0,0 +1,10 @@
|
||||
// Opcional: executar com `npx playwright test playwright/frontend_smoke.spec.js`.
|
||||
// Salva screenshot em evidencias/screenshots/frontend-smoke.png.
|
||||
const { test, expect } = require('@playwright/test');
|
||||
|
||||
test('frontend abre e exibe página de chat', async ({ page }) => {
|
||||
const frontendUrl = process.env.FRONTEND_URL || 'http://localhost:5173';
|
||||
await page.goto(frontendUrl, { waitUntil: 'networkidle' });
|
||||
await page.screenshot({ path: 'evidencias/screenshots/frontend-smoke.png', fullPage: true });
|
||||
await expect(page.locator('body')).toBeVisible();
|
||||
});
|
||||
Reference in New Issue
Block a user