Skip to content

Commit f47ecb5

Browse files
chore: disable trial activation on e2e tests (coder#10683)
1 parent 198b56c commit f47ecb5

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

site/e2e/global.setup.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@ import * as constants from "./constants";
33
import { STORAGE_STATE } from "./playwright.config";
44
import { Language } from "pages/CreateUserPage/CreateUserForm";
55

6-
test("create first user", async ({ page }) => {
6+
test("setup first user", async ({ page }) => {
77
await page.goto("/", { waitUntil: "domcontentloaded" });
88

99
await page.getByLabel(Language.usernameLabel).fill(constants.username);
1010
await page.getByLabel(Language.emailLabel).fill(constants.email);
1111
await page.getByLabel(Language.passwordLabel).fill(constants.password);
12-
await page.getByTestId("trial").click();
1312
await page.getByTestId("create").click();
1413

1514
await expect(page).toHaveURL(/\/workspaces.*/);

site/src/pages/SetupPage/SetupPageView.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export const SetupPageView: React.FC<SetupPageViewProps> = ({
5252
email: "",
5353
password: "",
5454
username: "",
55-
trial: true,
55+
trial: false,
5656
},
5757
validationSchema,
5858
onSubmit,
@@ -129,7 +129,7 @@ export const SetupPageView: React.FC<SetupPageViewProps> = ({
129129
<Checkbox
130130
id="trial"
131131
name="trial"
132-
value={form.values.trial}
132+
checked={form.values.trial}
133133
onChange={form.handleChange}
134134
data-testid="trial"
135135
size="small"

0 commit comments

Comments
 (0)