mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
18 lines
699 B
TypeScript
18 lines
699 B
TypeScript
import test, { expect } from "@playwright/test";
|
|
|
|
test("do not navigate to /settings/billing if not SaaS mode", async ({
|
|
page,
|
|
}) => {
|
|
await page.goto("/settings/billing");
|
|
await expect(page.getByTestId("settings-screen")).toBeVisible();
|
|
expect(page.url()).toBe("http://localhost:3001/settings");
|
|
});
|
|
|
|
// FIXME: This test is failing because the config is not being set to SaaS mode
|
|
// since MSW is always returning APP_MODE as "oss"
|
|
test.skip("navigate to /settings/billing if SaaS mode", async ({ page }) => {
|
|
await page.goto("/settings/billing");
|
|
await expect(page.getByTestId("settings-screen")).toBeVisible();
|
|
expect(page.url()).toBe("http://localhost:3001/settings/billing");
|
|
});
|