-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add create user with invoice permission test (#27)
* OBPIH-6883 add fixtures for invoice pages * OBPIH-6883 add invoice pages * OBPIH-6883 add test for user with invoice permission
- Loading branch information
1 parent
d4f961c
commit 21b4082
Showing
4 changed files
with
83 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { expect } from '@/fixtures/fixtures'; | ||
import BasePageModel from '@/pages/BasePageModel'; | ||
|
||
class CreateInvoicePage extends BasePageModel { | ||
async isLoaded() { | ||
await expect(this.page.getByText('Vendor Invoice Number')).toBeVisible(); | ||
} | ||
|
||
async goToPage() { | ||
await this.page.goto('./invoice/create'); | ||
} | ||
} | ||
|
||
export default CreateInvoicePage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { expect } from '@/fixtures/fixtures'; | ||
import BasePageModel from '@/pages/BasePageModel'; | ||
|
||
class InvoiceListPage extends BasePageModel { | ||
async isLoaded() { | ||
await expect(this.page.getByText('List Invoices')).toBeVisible(); | ||
} | ||
|
||
async goToPage() { | ||
await this.page.goto('./invoice/list'); | ||
} | ||
|
||
get invoiceListHeader() { | ||
return this.page.locator('.list-page-header').getByText('List Invoices'); | ||
} | ||
} | ||
|
||
export default InvoiceListPage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters