Skip to content

Commit

Permalink
test(web): fix missing float field test (#1315)
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
caichi-t authored Nov 25, 2024
1 parent a734d5a commit 2196d74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/e2e/project/item/fields/float.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ test("Float field editing has succeeded", async ({ page }) => {
await page.getByLabel("Description(optional)").click();
await page.getByLabel("Description(optional)").fill("new float1 description");
await page.getByLabel("Support multiple values").check();
await page.getByLabel("Use as title").check();
await expect(page.getByLabel("Use as title")).toBeHidden();
await page.getByRole("tab", { name: "Validation" }).click();
await page.getByLabel("Set minimum value").click();
await page.getByLabel("Set minimum value").fill("10.1");
Expand Down Expand Up @@ -112,7 +112,7 @@ test("Float field editing has succeeded", async ({ page }) => {
await expect(page.locator("thead")).toContainText("new float1");
await expect(page.getByRole("cell", { name: "1.1", exact: true })).toBeVisible();
await page.getByRole("button", { name: "plus New Item" }).click();
await expect(page.getByText("new float1(unique)Title")).toBeVisible();
await expect(page.getByText("new float1(unique)")).toBeVisible();
await expect(page.getByRole("spinbutton").nth(0)).toHaveValue("2.2");
await expect(page.getByRole("spinbutton").nth(1)).toHaveValue("3.3");
await page.getByRole("button", { name: "Save" }).click();
Expand Down

0 comments on commit 2196d74

Please sign in to comment.