Skip to content

Commit

Permalink
e2e fixes.
Browse files Browse the repository at this point in the history
Signed-off-by: OMPRAKASH MISHRA <[email protected]>
  • Loading branch information
mishraomp committed Jul 30, 2024
1 parent 8ce644c commit 825fa49
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/e2e/pages/dashboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { Page } from 'playwright';

export const dashboard_page = async (page: Page) => {
await page.goto(baseURL);
await expect(page.getByRole('img', { name: 'Logo' })).toBeVisible();
await expect(page.locator('#root')).toContainText('QuickStart OpenShift');
await expect(page.getByRole('link', { name: 'Government of British Columbia' })).toBeVisible();
await expect(page.getByText('QuickStart OpenShift')).toBeVisible()
await expect(page.getByText('Employee ID')).toBeVisible();
await expect(page.getByText('Employee Name')).toBeVisible();
await expect(page.getByText('Employee Email')).toBeVisible();
Expand All @@ -15,7 +15,7 @@ export const dashboard_page = async (page: Page) => {
await expect(page.getByRole('link', { name: 'Privacy' })).toBeVisible();
await expect(page.getByRole('link', { name: 'Accessibility' })).toBeVisible();
await expect(page.getByRole('link', { name: 'Copyright' })).toBeVisible();
await expect(page.getByRole('link', { name: 'Contact Us' })).toBeVisible();
await expect(page.getByRole('link', { name: 'Contact us' })).toBeVisible();
await page.getByPlaceholder('Search…').click();
await page.getByPlaceholder('Search…').fill('john');
await expect(page.locator('#root')).toContainText('1–1 of 1');
Expand Down

0 comments on commit 825fa49

Please sign in to comment.