fix(ui): распознавать CRLF и комментарии в потоке SSE

This commit is contained in:
Denozordec committed 2026-09-28 11:38:11 +07:00
1 parent f50a29f116
commit ed491c313f
8 files changed
+38 -15

No files matched your search

+4 -2
View File
@@ -1,4 +1,4 @@
import { installOpenLiveStream, resumeLiveStream } from "./live-stream-fixture"
import { installOpenLiveStream, resumeLiveStream, sendLiveHeartbeat } from "./live-stream-fixture"
import { test, expect } from '@playwright/test'
for (const variant of ['closed', 'invalid', 'http-error', 'silent'] as const) {
@@ -32,7 +32,9 @@ for (const variant of ['closed', 'invalid', 'http-error', 'silent'] as const) {
if (variant === 'silent') {
await expect(summary.getByText('live', { exact: true }).filter({ visible: true })).toHaveCount(2)
const stamp = await page.getByLabel('Последнее измерение сервера').locator('time').first().getAttribute('datetime')
await page.clock.fastForward(15_001)
await page.clock.fastForward(10_000)
await sendLiveHeartbeat(page)
await page.clock.fastForward(5_001)
await expect(summary.getByText('live', { exact: true })).toHaveCount(0)
await expect(summary).toContainText('17.0')
await expect(page.getByLabel('Последнее измерение сервера').locator('time').first()).toHaveAttribute('datetime', stamp!)