verify analytics accessibility in browser QA
This commit is contained in:
@@ -27,6 +27,12 @@ try {
|
||||
await page.waitForLoadState('networkidle');
|
||||
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: 'Pazar', exact: true }).click();
|
||||
await page.getByRole('button', { name: 'Analitik Dashboard', exact: true }).click();
|
||||
await page.getByLabel('Ciro hedefi (TL)', { exact: true }).waitFor({ state: 'attached', timeout: 10_000 });
|
||||
evidence.checks.analyticsTargetLabel = await page.getByLabel('Ciro hedefi (TL)', { exact: true }).count() === 1;
|
||||
if (!evidence.checks.analyticsTargetLabel) throw new Error('Analitik ciro hedefi alanı erişilebilir ad taşımıyor.');
|
||||
await page.getByRole('button', { name: 'Keşfet', exact: true }).click();
|
||||
await page.getByRole('button', { name: 'İhale Takvimi' }).click();
|
||||
await page.waitForLoadState('networkidle');
|
||||
const icsDir = await mkdtemp(join(tmpdir(), 'ihaleist-ics-'));
|
||||
|
||||
Reference in New Issue
Block a user