mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
fix(tests): Update navigation link types to use Locator for better type safety
chore: Bump version to 9.2.27
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { BASE_URL, IS_BILLING_ENABLED } from "../../Config";
|
||||
import { Page, expect, test } from "@playwright/test";
|
||||
import { Locator, Page, expect, test } from "@playwright/test";
|
||||
import URL from "Common/Types/API/URL";
|
||||
|
||||
test.beforeEach(async ({ page }: { page: Page }) => {
|
||||
@@ -30,7 +30,7 @@ test.describe("navigation bar", () => {
|
||||
if (!IS_BILLING_ENABLED) {
|
||||
return;
|
||||
}
|
||||
const navPricingLink = page
|
||||
const navPricingLink: Locator = page
|
||||
.getByRole("navigation")
|
||||
.getByRole("link", { name: "Pricing" });
|
||||
await navPricingLink.click();
|
||||
@@ -45,7 +45,7 @@ test.describe("navigation bar", () => {
|
||||
if (!IS_BILLING_ENABLED) {
|
||||
return;
|
||||
}
|
||||
const navEnterpriseLink = page
|
||||
const navEnterpriseLink: Locator = page
|
||||
.getByRole("navigation")
|
||||
.getByRole("link", { name: "Enterprise" });
|
||||
await navEnterpriseLink.click();
|
||||
|
||||
Reference in New Issue
Block a user