/** * Auto-generated by @futdevpro/dynamo-e2e — FormSuite Generator * Form key: sb-datetime * Route: /c/datetime-field-new * Built at: WAVE-1-STAMP * * DO NOT EDIT BY HAND. Re-emit via `dc e2e generate-form-suite` or * `DyE2E_FormSuite_Generator.emit({...})` consumer-script. */ import { test, expect, Locator } from '@playwright/test'; test.describe('Sandbox: DyNX_DateTimeFieldNew (Bounded)', (): void => { test.describe('Field: meetingAt (dateTime)', (): void => { test.beforeEach(async ({ page }): Promise => { const response = await page.goto('/c/datetime-field-new'); expect(response?.ok()).toBeTruthy(); await page.locator('dynamo-datetime-field-new').first().waitFor({ state: 'visible' }); }); test('field[meetingAt] datetime:empty → valid — üres datetime', async ({ page }): Promise => { const input: Locator = page.getByTestId('sandbox-datetime-bounded'); await input.fill(''); await input.blur(); const fieldRoot: Locator = page.locator('[data-testid="sandbox-datetime-bounded"]').locator('xpath=ancestor-or-self::*[contains(@class,"field") or starts-with(local-name(),"dynamo-")]').first(); await expect(fieldRoot.locator('.text-red-400.mt-1')).toHaveCount(0); }); test('field[meetingAt] datetime:midnight → valid — éjfél (00:00)', async ({ page }): Promise => { const input: Locator = page.getByTestId('sandbox-datetime-bounded'); await input.fill('2026-06-10T00:00'); await input.blur(); const fieldRoot: Locator = page.locator('[data-testid="sandbox-datetime-bounded"]').locator('xpath=ancestor-or-self::*[contains(@class,"field") or starts-with(local-name(),"dynamo-")]').first(); await expect(fieldRoot.locator('.text-red-400.mt-1')).toHaveCount(0); }); test('field[meetingAt] datetime:noon → valid — dél (12:00)', async ({ page }): Promise => { const input: Locator = page.getByTestId('sandbox-datetime-bounded'); await input.fill('2026-06-10T12:00'); await input.blur(); const fieldRoot: Locator = page.locator('[data-testid="sandbox-datetime-bounded"]').locator('xpath=ancestor-or-self::*[contains(@class,"field") or starts-with(local-name(),"dynamo-")]').first(); await expect(fieldRoot.locator('.text-red-400.mt-1')).toHaveCount(0); }); test('field[meetingAt] datetime:end-of-day → valid — nap vége (23:59)', async ({ page }): Promise => { const input: Locator = page.getByTestId('sandbox-datetime-bounded'); await input.fill('2026-06-10T23:59'); await input.blur(); const fieldRoot: Locator = page.locator('[data-testid="sandbox-datetime-bounded"]').locator('xpath=ancestor-or-self::*[contains(@class,"field") or starts-with(local-name(),"dynamo-")]').first(); await expect(fieldRoot.locator('.text-red-400.mt-1')).toHaveCount(0); }); }); });