Skip to content

Commit

Permalink
fix e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
madeindjs committed Dec 9, 2024
1 parent 11d67ff commit fc517ed
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/e2e/tests/stateAutocompletion.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,22 +74,22 @@ test.describe("state autocompletion", () => {
.locator(`${FIELD} button.chip:text-matches("Static List")`)
.click();
await page
.locator(`${FIELD} .inputKey textarea`)
.locator(`${FIELD} .inputKey input`)
.fill("@{types.");
await expect(page.locator(`${FIELD} .inputKey .fieldStateAutocomplete span.prop`)).toHaveText(["none", "string", "integer", "float"]);
await expect(page.locator(`${FIELD} .inputKey .fieldStateAutocomplete span.type`)).toHaveText(["null", "string", "number", "number"]);
page.locator(`${FIELD} .inputKey .fieldStateAutocomplete span.prop:text-matches("string")`).click();
await expect(page
.locator(`${FIELD} .inputKey textarea`))
.locator(`${FIELD} .inputKey input`))
.toHaveValue("@{types.string");
await page
.locator(`${FIELD} .inputValue textarea`)
.locator(`${FIELD} .inputValue input`)
.fill("@{types.");
await expect(page.locator(`${FIELD} .inputValue .fieldStateAutocomplete span.prop`)).toHaveText(["none", "string", "integer", "float"]);
await expect(page.locator(`${FIELD} .inputValue .fieldStateAutocomplete span.type`)).toHaveText(["null", "string", "number", "number"]);
page.locator(`${FIELD} .inputValue .fieldStateAutocomplete span.prop:text-matches("string")`).click();
await expect(page
.locator(`${FIELD} .inputValue textarea`))
.locator(`${FIELD} .inputValue input`))
.toHaveValue("@{types.string");
await page.locator('[data-automation-action="delete"]').click();
});
Expand Down Expand Up @@ -125,13 +125,13 @@ test.describe("state autocompletion", () => {
.locator(`${FIELD} button.chip:text-matches("CSS")`)
.click();
await page
.locator(`${FIELD} input`)
.locator(`${FIELD} .BuilderTemplateInput input`)
.fill("@{types.");
await expect(page.locator(`${FIELD} .fieldStateAutocomplete span.prop`)).toHaveText(["none", "string", "integer", "float"]);
await expect(page.locator(`${FIELD} .fieldStateAutocomplete span.type`)).toHaveText(["null", "string", "number", "number"]);
page.locator(`${FIELD} .fieldStateAutocomplete span.prop:text-matches("string")`).click();
await expect(page
.locator(`${FIELD} input`))
.locator(`${FIELD} .BuilderTemplateInput input`))
.toHaveValue("@{types.string");
});
}
Expand Down

0 comments on commit fc517ed

Please sign in to comment.