mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
22 lines
616 B
TypeScript
22 lines
616 B
TypeScript
import { BASE_URL, IS_BILLING_ENABLED } from "../../Config";
|
|
import { Page, expect, test } from "@playwright/test";
|
|
import URL from "Common/Types/API/URL";
|
|
|
|
test.beforeEach(async ({ page }: { page: Page }) => {
|
|
if (!IS_BILLING_ENABLED) {
|
|
return;
|
|
}
|
|
await page.goto(URL.fromString(BASE_URL.toString()).toString());
|
|
});
|
|
test("sign up button", async ({ page }: { page: Page }) => {
|
|
if (!IS_BILLING_ENABLED) {
|
|
return;
|
|
}
|
|
await page.getByTestId("Sign-up").click();
|
|
await expect(page).toHaveURL(
|
|
URL.fromString(BASE_URL.toString())
|
|
.addRoute("/accounts/register")
|
|
.toString(),
|
|
);
|
|
});
|