chore(ui): сохранить основу поэтапной миграции таблиц
This commit is contained in:
1 parent
c30f817926
commit
e7755a4d16
100 files changed
+30178
-1089
No files matched your search
@@ -45,6 +45,20 @@ async function edit(page: Page, id = 1) {
|
||||
await page.getByRole("menuitem", { name: "Редактировать", exact: true }).click()
|
||||
}
|
||||
|
||||
test("таблица v9 сохраняет все строки, сортировку и раскрытие деталей", async ({ page }) => {
|
||||
await setup(page, undefined, 12)
|
||||
const rows = page.locator('tr[data-row-id]')
|
||||
await expect(rows).toHaveCount(12)
|
||||
await page.getByRole("button", { name: "Имя / Хост", exact: true }).click()
|
||||
await expect(rows.first()).toContainText("Проверка 1")
|
||||
await page.getByRole("button", { name: "Имя / Хост", exact: true }).click()
|
||||
await expect(rows.first()).toContainText("Проверка 12")
|
||||
await page.getByText("Проверка 12", { exact: true }).click()
|
||||
await expect(page.getByText("Модель: Test router", { exact: true })).toBeVisible()
|
||||
await page.getByText("Проверка 12", { exact: true }).click()
|
||||
await expect(page.getByText("Модель: Test router", { exact: true })).toBeHidden()
|
||||
})
|
||||
|
||||
async function finalStep(page: Page) {
|
||||
for (let i = 0; i < 3; i++) await page.getByRole("button", { name: "Далее", exact: true }).click()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user