fix(ui): учитывать готовность устройства в действиях IPsec
This commit is contained in:
1 parent
b8923d075d
commit
f0071a495c
7 files changed
+97
-12
No files matched your search
@@ -20,7 +20,7 @@ async function setup(page: Page, path: string, empty = false) {
|
||||
const path = new URL(route.request().url()).pathname
|
||||
return route.fulfill({ json: path === "/api/ipsec" ? (empty ? { servers: [], clients: [] } : ipsec)
|
||||
: path === "/api/gre/tunnels" ? { tunnels: empty ? [] : tunnels }
|
||||
: path === "/api/auth/config" ? { required: false } : path === "/api/servers" ? [] : {} })
|
||||
: path === "/api/auth/config" ? { required: false } : path === "/api/servers" ? [{ id: 1, name: "Тестовый роутер", host: "192.0.2.1", enabled: true, country: "RU" }] : {} })
|
||||
})
|
||||
await page.goto(path)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user