fix(scheduler): завершить локальную приёмку контекста и адаптивности

This commit is contained in:
Denozordec committed 2026-10-03 12:03:38 +07:00
1 parent 5df337f6d7
commit 65aeedd3b0
17 files changed
+108 -16

No files matched your search

+2 -2
View File
@@ -15,7 +15,7 @@ for (const malformed of [true, false]) test("Журнал: первоначал
await setup(page); await page.route("**/api/scheduler/runs?**", r => r.fulfill(malformed ? { json: {} } : { status: 503, json: { error: "history unavailable" } }))
await page.goto("/data-collection"); await expect(page.getByText("История не получена", { exact: true }).first()).toBeVisible()
await expect(page.getByText("Пока нет прогонов", { exact: true })).toHaveCount(0)
await expect(page.getByText("Журнал (в списке)", { exact: true }).locator("../..")).toContainText("—")
await expect(page.getByText("Журнал (в списке)", { exact: true }).locator("xpath=ancestor::*[@data-slot='frame-panel'][1]")).toContainText("—")
})
test("Журнал: background error сохраняет строки и время последнего чтения", async ({ page }) => {
await setup(page); let fails = false
@@ -28,7 +28,7 @@ test("Журнал: background error сохраняет строки и врем
test("Журнал: подтверждённый пустой список имеет ноль и время получения", async ({ page }) => {
await setup(page); await page.route("**/api/scheduler/runs?**", r => r.fulfill({ json: { runs: [] } }))
await page.goto("/data-collection"); await expect(page.getByText("Пока нет прогонов", { exact: true })).toBeVisible(); await expect(page.getByText(/^История получена:/)).toBeVisible()
await expect(page.getByText("Журнал (в списке)", { exact: true }).locator("../..")).toContainText("0")
await expect(page.getByText("Журнал (в списке)", { exact: true }).locator("xpath=ancestor::*[@data-slot='frame-panel'][1]")).toContainText("0")
})
test("Журнал: смена среза не выдаёт прежние строки за новый фильтр", async ({ page }) => {