We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b360e4 commit 4ca4b2bCopy full SHA for 4ca4b2b
1 file changed
src/pages/transactions/TransactionListPage.ts
@@ -1,4 +1,4 @@
1
-import { Page } from '@playwright/test';
+import { expect, Page } from '@playwright/test';
2
3
import BasePageModel from '@/pages/BasePageModel';
4
@@ -14,6 +14,12 @@ class TransactionListPage extends BasePageModel {
14
get successMessage() {
15
return this.page.locator('.message');
16
}
17
+
18
+ async getDeleteTransaction(n: number) {
19
+ await this.table.row(n).actionsButton.click();
20
+ await this.table.deleteButton.click();
21
+ await expect(this.page.locator('.message')).toBeVisible();
22
+ }
23
24
25
export default TransactionListPage;
0 commit comments