File tree Expand file tree Collapse file tree 2 files changed +32
-0
lines changed
Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Original file line number Diff line number Diff line change 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 ;
Original file line number Diff line number Diff line change 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 ;
You can’t perform that action at this time.
0 commit comments