Skip to content

Commit

Permalink
fix: remove failing part of test
Browse files Browse the repository at this point in the history
The test was bad - checking the text content of a select or dropdown _always_
passes when the value you're looking for is also a child option. Switching to
not use children exposes the invalid test.

This just removes the invalid line, which reverts this test to exactly where it
was before we added Dropdown, just checking that the correct component is used.
The correct initial selection behaviour is checked in the following test.

Signed-off-by: Tim deBoer <[email protected]>
  • Loading branch information
deboer-tim committed Dec 16, 2024
1 parent 30a4a40 commit c845732
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,6 @@ test('Expect a select when record is type string and has enum values', async ()
const input = screen.getByLabelText('record-description');
expect(input).toBeInTheDocument();
expect(input.children[0]).toHaveAttribute('name', 'record');
expect(input).toHaveTextContent('first');
});

test('Expect enum to have the givenValue selected', async () => {
Expand Down

0 comments on commit c845732

Please sign in to comment.