mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: disable trial activation on e2e tests (#10683)
This commit is contained in:
@@ -3,13 +3,12 @@ import * as constants from "./constants";
|
||||
import { STORAGE_STATE } from "./playwright.config";
|
||||
import { Language } from "pages/CreateUserPage/CreateUserForm";
|
||||
|
||||
test("create first user", async ({ page }) => {
|
||||
test("setup first user", async ({ page }) => {
|
||||
await page.goto("/", { waitUntil: "domcontentloaded" });
|
||||
|
||||
await page.getByLabel(Language.usernameLabel).fill(constants.username);
|
||||
await page.getByLabel(Language.emailLabel).fill(constants.email);
|
||||
await page.getByLabel(Language.passwordLabel).fill(constants.password);
|
||||
await page.getByTestId("trial").click();
|
||||
await page.getByTestId("create").click();
|
||||
|
||||
await expect(page).toHaveURL(/\/workspaces.*/);
|
||||
|
||||
@@ -52,7 +52,7 @@ export const SetupPageView: React.FC<SetupPageViewProps> = ({
|
||||
email: "",
|
||||
password: "",
|
||||
username: "",
|
||||
trial: true,
|
||||
trial: false,
|
||||
},
|
||||
validationSchema,
|
||||
onSubmit,
|
||||
@@ -129,7 +129,7 @@ export const SetupPageView: React.FC<SetupPageViewProps> = ({
|
||||
<Checkbox
|
||||
id="trial"
|
||||
name="trial"
|
||||
value={form.values.trial}
|
||||
checked={form.values.trial}
|
||||
onChange={form.handleChange}
|
||||
data-testid="trial"
|
||||
size="small"
|
||||
|
||||
Reference in New Issue
Block a user