Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
w3bdesign committed Apr 26, 2024
1 parent 5858218 commit 1a0f31e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions playwright/helpers/helper.ts → playwright/helpers/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ export const accessibilityFixture = () => {
});
};

export const testTittel = (tittel: string) => {
export const testTittel = tittel => {
test("Viser tittel", async ({ page }) => {
const header = page.getByRole("heading", { name: tittel });
await expect(header).toContainText(tittel);
});
};

export const testIkon = (ikon: string | RegExp) => {
export const testIkon = ikon => {
test(`Skal vise ${ikon} ikon`, async ({ page }) => {
const ikonTest = page.getByTestId(ikon);
await expect(ikonTest).toBeVisible();
Expand Down

0 comments on commit 1a0f31e

Please sign in to comment.