chore: disable trial activation on e2e tests (#10683)

This commit is contained in:
Bruno Quaresma
2023-11-16 12:19:22 -03:00
committed by GitHub
parent 198b56c137
commit f47ecb54aa
2 changed files with 3 additions and 4 deletions
+1 -2
View File
@@ -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.*/);
+2 -2
View File
@@ -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"