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:
22
apps/scandic-web/tests/e2e/profile/mystays.spec.ts
Normal file
22
apps/scandic-web/tests/e2e/profile/mystays.spec.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
import { expect, test } from "@playwright/test"
|
||||
|
||||
import { getProfileButton, performLogin } from "../loginUtil"
|
||||
import { testData } from "../testdata"
|
||||
|
||||
test("can navigate to my stays page", async ({ page }) => {
|
||||
await performLogin({
|
||||
page,
|
||||
username: testData.basicUser.membershipId,
|
||||
password: testData.basicUser.password,
|
||||
})
|
||||
|
||||
const profileButton = await getProfileButton(page)
|
||||
profileButton.click()
|
||||
const myStaysLink = page.getByRole("link", { name: /my stays/i })
|
||||
await myStaysLink.click()
|
||||
|
||||
const upcomingStays = page.getByRole("heading", {
|
||||
name: /^upcoming stays$/i,
|
||||
})
|
||||
await expect(upcomingStays).toBeVisible()
|
||||
})
|
||||
Reference in New Issue
Block a user