Spaces:
Configuration error
Configuration error
Download frontend/tests/settings.spec.ts from flyingdarkdev/README: direct link, hf CLI and curl.
- Browser
- Download file 699 Bytes
-
https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/frontend/tests/settings.spec.ts
- Command line
-
hf download hf://spaces/flyingdarkdev/README/frontend/tests/settings.spec.ts
-
curl -L -o settings.spec.ts https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/frontend/tests/settings.spec.ts
699 Bytes
| 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"); | |
| }); | |