fix(ui): сохранять подтверждение восстановления при ошибке
This commit is contained in:
1 parent
221d6db10c
commit
1d1de12c58
12 files changed
+134
-35
No files matched your search
@@ -461,10 +461,9 @@ test("WireGuard: восстановление требует подтвержд
|
||||
await expect.poll(() => attempts).toBe(1)
|
||||
await expect(confirm.getByRole("button", { name: "Откатить", exact: true })).toBeDisabled()
|
||||
release!()
|
||||
await expect(page.getByText("Не удалось откатить", { exact: true })).toBeVisible()
|
||||
await expect(confirm.getByRole("alert").filter({ hasText: "Сервер не подтвердил восстановление" })).toBeVisible()
|
||||
await expect(page.getByText("Версия применена на роутер", { exact: true })).toHaveCount(0)
|
||||
await expect(confirm).toHaveCount(0)
|
||||
await sheet.getByRole("button", { name: "Откатить", exact: true }).click()
|
||||
await expect(confirm).toBeVisible()
|
||||
await confirm.getByRole("button", { name: "Откатить", exact: true }).click()
|
||||
await expect(page.getByText("Версия применена на роутер", { exact: true })).toBeVisible()
|
||||
expect(attempts).toBe(2)
|
||||
|
||||
Reference in new issue
Block a user