Skip to content

Commit 2957023

Browse files
committed
OBPIH-6883 add invoice pages
1 parent 735c94b commit 2957023

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { expect } from '@/fixtures/fixtures';
2+
import BasePageModel from '@/pages/BasePageModel';
3+
4+
class CreateInvoicePage extends BasePageModel {
5+
async isLoaded() {
6+
await expect(this.page.getByText('Vendor Invoice Number')).toBeVisible();
7+
}
8+
9+
async goToPage() {
10+
await this.page.goto('./invoice/create');
11+
}
12+
}
13+
14+
export default CreateInvoicePage;
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import { expect } from '@/fixtures/fixtures';
2+
import BasePageModel from '@/pages/BasePageModel';
3+
4+
class InvoiceListPage extends BasePageModel {
5+
async isLoaded() {
6+
await expect(this.page.getByText('List Invoices')).toBeVisible();
7+
}
8+
9+
async goToPage() {
10+
await this.page.goto('./invoice/list');
11+
}
12+
13+
get invoiceListHeader() {
14+
return this.page.locator('.list-page-header').getByText('List Invoices');
15+
}
16+
}
17+
18+
export default InvoiceListPage;

0 commit comments

Comments
 (0)