Skip to content

Commit

Permalink
fix playwright tests to support npm package updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jer3k committed Jun 5, 2024
1 parent c1d7b82 commit 91e0fa1
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions frontend/e2e/pages/report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,12 @@ export class BaseReportPage extends PTPage {
async verifyEmployeerDetails(user, report) {
await this.instance.waitForSelector('div.page-content');
await expect(
await this.instance.getByRole('cell', { name: 'Employer' }),
).toBeVisible();
await expect(
await this.instance.getByRole('cell', { name: user.legalName }),
).toBeVisible();
await expect(
await this.instance.getByRole('cell', { name: 'Address' }),
await this.instance.getByText('Employer: ' + user.legalName),
).toBeVisible();

const addressValue = await this.instance.getByRole('cell', {
name: user.addressLine1,
});
const addressValue = await this.instance.getByText(
'Address: ' + user.addressLine1,
);
await expect(addressValue).toBeVisible();

if (user.addressLine2) {
Expand Down

0 comments on commit 91e0fa1

Please sign in to comment.