fix(ipsec): подтвердить достоверность операций и приёмку раздела
This commit is contained in:
1 parent
e2d81f9657
commit
f80d9b7637
28 files changed
+969
-170
No files matched your search
@@ -27,7 +27,7 @@ for (const device of ["desktop", "mobile"] as const) {
|
||||
expect(await page.evaluate(() => document.documentElement.scrollWidth <= innerWidth)).toBe(true)
|
||||
await page.addStyleTag({ content: "nextjs-portal { display: none !important; }" })
|
||||
mkdirSync("docs/ux-ui/screens", { recursive: true })
|
||||
await page.screenshot({ path: `docs/ux-ui/screens/ipsec-${device}.png`, animations: "disabled" })
|
||||
await page.screenshot({ path: test.info().outputPath(`ipsec-${device}.png`), animations: "disabled" })
|
||||
if (device === "mobile") {
|
||||
await page.getByRole("button", { name: "Серверы", exact: true }).click()
|
||||
await page.getByRole("dialog").getByRole("option").filter({ hasText: "Резервный VPN роутер" }).click()
|
||||
@@ -40,7 +40,7 @@ for (const device of ["desktop", "mobile"] as const) {
|
||||
const dialog = page.getByRole("dialog")
|
||||
await dialog.getByRole("textbox", { name: "Имя клиента" }).fill("Проверенный клиент")
|
||||
await expect.poll(() => dialog.evaluate(el => el.getBoundingClientRect().left >= 0 && el.getBoundingClientRect().right <= innerWidth)).toBe(true)
|
||||
await page.screenshot({ path: `docs/ux-ui/screens/ipsec-client-${device}.png`, animations: "disabled" })
|
||||
await page.screenshot({ path: test.info().outputPath(`ipsec-client-${device}.png`), animations: "disabled" })
|
||||
await dialog.getByRole("button", { name: "Сохранить", exact: true }).focus()
|
||||
await page.keyboard.press("Enter")
|
||||
await expect(dialog).toHaveCount(0)
|
||||
@@ -52,6 +52,6 @@ for (const device of ["desktop", "mobile"] as const) {
|
||||
await page.clock.fastForward(6000)
|
||||
await expect(page.getByText("Клиент обновлён", { exact: true })).toHaveCount(0)
|
||||
if (device === "mobile") await page.getByRole("button", { name: "Переинициализировать", exact: true }).scrollIntoViewIfNeeded()
|
||||
await page.screenshot({ path: `docs/ux-ui/screens/ipsec-servers-${device}.png`, animations: "disabled" })
|
||||
await page.screenshot({ path: test.info().outputPath(`ipsec-servers-${device}.png`), animations: "disabled" })
|
||||
})
|
||||
}
|
||||
Reference in new issue
Block a user