fix(ui): пояснить область скоростных снимков WAN
This commit is contained in:
1 parent
4ba7f82ccf
commit
1904c86657
7 files changed
+17
-5
No files matched your search
@@ -30,6 +30,7 @@ for(const poolCount of [20,1000])test(`Оптимизатор7WAN: ранжир
|
||||
const started=Date.now();await page.goto("/route-optimizer?server=1&keep=1")
|
||||
const table=page.getByRole("table").filter({hasText:"WAN-аплинк"}),rows=table.locator("tr[data-row-id]")
|
||||
await expect(rows).toHaveCount(7)
|
||||
await expect(page.getByRole("region",{name:"Матрица WAN и Jump Host"})).toContainText("Скорость — снимок пары устройств")
|
||||
for(let i=0;i<7;i++)await expect(rows.nth(i).locator("time")).toHaveAttribute("datetime",probes.probes[poolCount-7+i].lastPingAt!)
|
||||
const profile={poolCount,wanCount:7,probeBytes:Buffer.byteLength(JSON.stringify(probes)),rendered:await rows.count(),tableNodes:await table.locator("*").count(),readyMs:Date.now()-started}
|
||||
console.log("Optimizer probes",JSON.stringify(profile));writeFileSync(info.outputPath("probes-profile.json"),JSON.stringify(profile,null,2))
|
||||
|
||||
@@ -9,6 +9,7 @@ for(const hasProbe of [true,false])test("Оптимизатор: исходны
|
||||
await expect(matrix).toContainText(hasProbe?"0 мс":"— мс")
|
||||
await expect(matrix).toContainText(hasProbe?"↓— ↑150.25":"↓— ↑—")
|
||||
await expect(matrix).toContainText(hasProbe?"Скорость: дата неизвестна":"Измерения отсутствуют")
|
||||
if(hasProbe)await expect(page.getByRole("region",{name:"Матрица WAN и Jump Host"})).toContainText("Сопоставление с WAN расчётное")
|
||||
if(hasProbe)await expect(matrix.locator("time")).toHaveAttribute("datetime","2020-01-01T00:00:00Z")
|
||||
await page.getByRole("button",{name:"Маршруты (1)",exact:true}).click()
|
||||
await expect(page.getByRole("table").filter({hasText:"# Маршрут"})).toContainText("Ping модели")
|
||||
|
||||
Reference in new issue
Block a user