isolate imported calendars by account

This commit is contained in:
2026-09-06 19:07:54 +03:00
parent 0435b46d13
commit 76baab6b21
4 changed files with 24 additions and 6 deletions
+2
View File
@@ -36,6 +36,8 @@ try {
await page.locator('input[aria-label="ICS takvim dosyası seç"]').setInputFiles(icsPath);
await page.getByText('1 harici etkinlik içe aktarıldı.', { exact: true }).waitFor();
evidence.checks.icsImported = true;
evidence.checks.icsStorageScoped = await page.evaluate(() => Object.keys(sessionStorage).some(key => key.startsWith('ihaleist_imported_calendar:')));
if (!evidence.checks.icsStorageScoped) throw new Error('ICS kaydı hesap kapsamlı sessionStorage anahtarı kullanmıyor.');
await page.getByRole('button', { name: 'Keşfet' }).click();
await page.getByRole('button', { name: 'İhale Takvimi' }).click();
evidence.checks.icsPersistsAfterTabChange = await page.getByText('1 harici etkinlik içe aktarıldı.', { exact: true }).count() === 1;