verify print popup in browser QA
This commit is contained in:
@@ -49,6 +49,13 @@ try {
|
||||
evidence.checks.readyOutputButtons = await outputButtons.count();
|
||||
evidence.checks.readyOutputButtonsEnabled = await outputButtons.evaluateAll(buttons => buttons.every(button => !button.disabled));
|
||||
if (evidence.checks.readyOutputButtons !== 4 || !evidence.checks.readyOutputButtonsEnabled) throw new Error('Hazır taslak çıktı düğmeleri etkin değil.');
|
||||
const popupPromise = readyPage.waitForEvent('popup');
|
||||
await readyPage.getByRole('button', { name: /Evrak Kontrol Listesi/ }).click();
|
||||
const popup = await popupPromise;
|
||||
await popup.waitForLoadState('domcontentloaded');
|
||||
evidence.checks.printPopupTitle = await popup.title();
|
||||
if (evidence.checks.printPopupTitle !== 'Evrak Kontrol Listesi') throw new Error('Yazdırma penceresi beklenen başlığı üretmedi.');
|
||||
await popup.close();
|
||||
} finally { await readyPage.close(); }
|
||||
const overview = await page.goto(`${url.replace(/\/qa-signin$/, '')}/qa-overview`, { waitUntil: 'networkidle' });
|
||||
evidence.checks.overviewStatus = overview?.status();
|
||||
|
||||
Reference in New Issue
Block a user