Merged in chore/ignore-e2e-tests-in-ci (pull request #3285)

chore: ignore e2e tests when running yarn test

* chore: ignore e2e tests when running yarn test
This commit is contained in:
Joakim Jäderberg
2025-12-03 08:52:08 +00:00
parent f19d5fa083
commit 99497488f3
7 changed files with 1 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
import { expect, test } from "@playwright/test"
import { getProfileButton, performLogin } from "../loginUtil"
import { testData } from "../testdata"
test("can navigate to overview page", async ({ page }) => {
await performLogin({
page,
username: testData.basicUser.membershipId,
password: testData.basicUser.password,
})
const profileButton = await getProfileButton(page)
profileButton.click()
const overviewLink = page.getByRole("link", { name: /overview/i })
await overviewLink.click()
const scandicLevel = page.getByText(/level \d+/i)
await expect(scandicLevel).toBeVisible()
const membershipId = page.getByText(testData.basicUser.membershipId)
await expect(membershipId).toBeVisible()
})