verify print popup in browser QA
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
"readyPreparationStatus": 200,
|
||||
"readyOutputButtons": 4,
|
||||
"readyOutputButtonsEnabled": true,
|
||||
"printPopupTitle": "Evrak Kontrol Listesi",
|
||||
"overviewStatus": 200,
|
||||
"overviewFrames": 3
|
||||
},
|
||||
|
||||
@@ -2111,4 +2111,4 @@ Doğrulama: 292/292 otomatik test ve üretim derlemesi başarılı.
|
||||
|
||||
CI iş akışı da Chromium’u kurup bu koşucuyu her push ve pull request’te çalıştırıyor; tarayıcı kabulinin yalnızca geliştirici makinesinde geçmesine güvenilmiyor.
|
||||
|
||||
Doğrulama: giriş HTTP 200, beş şehrin tamamı görünür (her biri 3 eşleşme), ICS içe aktarma ve sekme değişimi sonrası kalıcılık başarılı, hazır taslakta dört çıktı düğmesi etkin, üç hazırlık özeti çerçevesi açıldı.
|
||||
Doğrulama: giriş HTTP 200, beş şehrin tamamı görünür (her biri 3 eşleşme), ICS içe aktarma ve sekme değişimi sonrası kalıcılık başarılı, hazır taslakta dört çıktı düğmesi etkin, evrak listesi yazdırma penceresi doğru başlıkla açıldı, üç hazırlık özeti çerçevesi açıldı.
|
||||
|
||||
@@ -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