fix(alerts): показать подтверждённое состояние очереди сообщений
This commit is contained in:
1 parent
b1ad9515fa
commit
89c31289bd
24 files changed
+166
-22
No files matched your search
@@ -1,8 +1,9 @@
|
||||
import {emptyOutbox} from "./fixtures/alerts"
|
||||
import {test,expect,type Page,type Route} from "@playwright/test"
|
||||
import {emptyAlerts} from "./fixtures/alerts"
|
||||
async function setup(page:Page,secondary:(route:Route,path:string)=>Promise<unknown>,required=false){
|
||||
await page.route("**/health",r=>r.fulfill({json:{status:"ok"}}))
|
||||
await page.route("**/api/**",r=>{const path=new URL(r.request().url()).pathname;if(path==="/api/auth/config")return r.fulfill({json:{required}});if(path==="/api/alerts")return r.fulfill({json:emptyAlerts});return secondary(r,path)})
|
||||
await page.route("**/api/**",r=>{const path=new URL(r.request().url()).pathname;if(path==="/api/alerts/outbox")return r.fulfill({json:emptyOutbox});if(path==="/api/auth/config")return r.fulfill({json:{required}});if(path==="/api/alerts")return r.fulfill({json:emptyAlerts});return secondary(r,path)})
|
||||
await page.goto("/alerts")
|
||||
}
|
||||
test("Alerts catalogs: delayed BGP does not block primary or GRE",async({page})=>{
|
||||
|
||||
Reference in new issue
Block a user