Skip to content

Commit

Permalink
Extend e2e test for info header including title
Browse files Browse the repository at this point in the history
RISDEV-0000
  • Loading branch information
VictorDelCampo committed Mar 1, 2024
1 parent 50f6057 commit b37155c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions frontend/e2e/navigate-to-detail-page-and-test-header.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@ for (const amendingLaw of amendingLaws) {
}) => {
await page.goto(`/amending-laws/${amendingLaw.eli}`)

await expect(page.locator(".ds-heading-03-reg")).toHaveText(
getExpectedHeading(amendingLaw),
)

// TODO
await expect(page.getByText(getExpectedHeading(amendingLaw))).toBeVisible()
await expect(page.getByText(amendingLaw.title ?? "")).toBeVisible()
})
}

0 comments on commit b37155c

Please sign in to comment.