@davoodmehraban89 / Aram-1 / commits / dafb559
Fork 0

fix(e2e): update smoke spec to the workbench (company setup form, not counter)

The Phase 5 workbench replaced the demo counter; the Playwright smoke test now asserts the RTL heading + company setup form (frontend-only, no backend needed). Fixes the Frontend CI e2e job. Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>

davoodmehraban89 committed Dec 3, 2026 at 11:57 UTC dafb55980b8d0cf27e64b9af6fd1a5276790382b
1 file changed +5 -4
frontend/e2e/app.spec.ts
+5 -4
@@ -5,9 +5,10 @@ test('renders the Aram workbench heading (RTL)', async ({ page }) => {
5 await expect(page.getByRole('heading', { name: /آرام/ })).toBeVisible()
6 })
7
8 -test('counter increments on click', async ({ page }) => {
8 +test('shows the company setup form before a year exists', async ({ page }) => {
9 await page.goto('/')
10 - const button = page.getByRole('button')
11 - await button.click()
12 - await expect(button).toHaveText(/شمارش: 1/)
10 + await expect(page.getByRole('button', { name: 'ایجاد' })).toBeVisible()
11 + await expect(page.getByLabel('کد شرکت')).toBeVisible()
12 + await expect(page.getByLabel('نام شرکت')).toBeVisible()
13 + await expect(page.getByLabel('سال مالی')).toBeVisible()
14 })