Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanFarmer committed Jun 28, 2024
1 parent 61260a7 commit a64a9b0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/controls/combinators/AnyOfControl.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,13 @@ describe("AnyOf control", () => {
await userEvent.type(screen.getByLabelText("Column Name"), "abc")

await userEvent.click(screen.getByLabelText("SplitterYearAndMonth"))
screen.getByLabelText("Column Name")
expect(screen.queryByLabelText("Column Name")).not.toHaveValue("abc")
let column = screen.getByLabelText("Column Name")
expect(column).not.toHaveValue("abc")
await userEvent.type(screen.getByLabelText("Column Name"), "xyz")

await userEvent.click(screen.getByLabelText("SplitterYear"))
screen.getByLabelText("Column Name")
expect(screen.queryByLabelText("Column Name")).toHaveValue("abc")
column = screen.getByLabelText("Column Name")
expect(column).toHaveValue("abc")
})
test("provides a default value for a required combinator", async () => {
let data: JSONFormData<typeof AnyOfWithDefaultsSchema> = {}
Expand Down

0 comments on commit a64a9b0

Please sign in to comment.