Skip to content

Commit

Permalink
MAT-7792: Fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmcphillips committed Dec 11, 2024
1 parent 8330173 commit 43fcee1
Showing 1 changed file with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -449,9 +449,6 @@ describe("CQL Function Builder Tests", () => {
const functionNameInput = (await screen.findByTestId(
"function-name-text-input"
)) as HTMLInputElement;
const argumentsSection = screen.getByTestId(
"terminology-section-Arguments-sub-heading"
);
expect(functionNameInput).toBeInTheDocument();
expect(functionNameInput.value).toBe("");
fireEvent.change(functionNameInput, {
Expand Down Expand Up @@ -540,11 +537,12 @@ describe("CQL Function Builder Tests", () => {
});
expect(otherNameInput.value).toBe("Other");

const addButton = screen.getByTestId("function-argument-add-btn");
expect(addButton).toBeInTheDocument();
expect(addButton).toBeEnabled();

fireEvent.click(addButton);
await waitFor(() => {
const addButton = screen.getByTestId("function-argument-add-btn");
expect(addButton).toBeInTheDocument();
expect(addButton).toBeEnabled();
fireEvent.click(addButton);
});

const functionArgumentTable = screen.getByTestId("function-argument-tbl");
expect(functionArgumentTable).toBeInTheDocument();
Expand Down

0 comments on commit 43fcee1

Please sign in to comment.