-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(fix) Add validation on payment amount and improved billing history e…
…2e test (#129) * (fix): Solving the paymeny not decreasing as it should Signed-off-by: Murithi <[email protected]> * (tests): e2e tests for billing app Signed-off-by: Murithi <[email protected]> * (tests) replacing textbox with spinbutton on invoice and adding dev.kenyahmis.org to example.ev Signed-off-by: Murithi <[email protected]> * (tests) replacing textbox with spinbutton on invoice and adding dev.kenyahmis.org to example.ev Signed-off-by: Murithi <[email protected]> --------- Signed-off-by: Murithi <[email protected]> Co-authored-by: Murithi <[email protected]>
- Loading branch information
1 parent
ac32668
commit 7d6c3a0
Showing
5 changed files
with
39 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { test } from '../../core'; | ||
import { expect } from '@playwright/test'; | ||
import { HomePage } from '../../pages'; | ||
|
||
test('Accessing the Billing page Dashboard ', async ({ page }) => { | ||
const homePage = new HomePage(page); | ||
|
||
await test.step('When I visit the home page', async () => { | ||
await homePage.gotoHome(); | ||
}); | ||
await test.step('Then should be able to navigate to billing page', async () => { | ||
await page.getByRole('link', { name: 'Billing' }).click(); | ||
await expect(page).toHaveURL(`${process.env.E2E_BASE_URL}/spa/home/billing`); | ||
}); | ||
|
||
await test.step('Tnen should be able to view Cumulative, Pending and Paid bills', async () => { | ||
await expect(page.getByRole('heading', { name: 'Cumulative Bills' })).toBeVisible(); | ||
await expect(page.getByRole('heading', { name: 'Pending Bills' })).toBeVisible(); | ||
await expect(page.getByRole('heading', { name: 'Paid Bills' })).toBeVisible(); | ||
}); | ||
}); |
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
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