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:
Nawaz Dhandala
2025-12-23 21:58:44 +00:00
parent e5c48061e4
commit d09228a71d
2 changed files with 4 additions and 4 deletions

View File

@@ -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();

View File

@@ -1 +1 @@
9.2.26
9.2.27