Кнопка Удалить вынесена в NewsAdminPage.ts

This commit is contained in:
Vlad Smykov
2025-07-01 19:10:44 +03:00
parent 7550834c4e
commit 4f98a8fd52

View File

@@ -105,4 +105,8 @@ export class NewsAdminPage {
await this.page.locator('tr', { hasText: title }).getByRole('button', { name: 'Редактировать' }).click(); await this.page.locator('tr', { hasText: title }).getByRole('button', { name: 'Редактировать' }).click();
} }
async clickDeleteButtonForNews(title: string) {
await this.page.locator('tr', { hasText: title }).getByRole('button', { name: 'Удалить' }).click();
}
} }