test: keep fixed D10 browser fixtures reproducible

This commit is contained in:
2026-09-14 21:49:37 +03:00
parent 4e94a77019
commit a7495a1fe6
4 changed files with 16 additions and 9 deletions
+2
View File
@@ -27,6 +27,8 @@ try {
evidence.checks.signInStatus = response?.status();
await page.getByRole('button', { name: 'Test hesabıyla gir' }).click();
await page.waitForLoadState('networkidle');
const hideExpired = page.getByLabel('Süresi geçenleri gizle', { exact: true });
if (await hideExpired.isChecked()) await hideExpired.uncheck();
evidence.checks.visibleCities = await Promise.all(['Giresun', 'Kayseri', 'Akdeniz', 'Aksaray', 'Tepecik'].map(async city => ({ city, count: await page.getByText(city, { exact: false }).count() })));
if (evidence.checks.visibleCities.some(item => item.count < 1)) throw new Error('Beş sentetik şehirden biri görünmedi.');
await page.getByRole('button', { name: 'Günlük Bülten', exact: true }).click();