Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fixed "Maximum call stack" error
  • Loading branch information
TrustNoOneElse committed Jan 13, 2023
commit 7a1701bb4561fcf0a0f6952506e348a45e61b6a5
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ test('is possible to fill in a form and verify error messages (with the help of

const nameControl = screen.getByLabelText(/name/i);
const scoreControl = screen.getByRole('spinbutton', { name: /score/i });
const colorControl = screen.getByRole('combobox', { name: /color/i });
const colorControl = screen.getByPlaceholderText(/color/i);
const dateControl = screen.getByRole('textbox', { name: /Choose a date/i });

const errors = screen.getByRole('alert');
Expand Down Expand Up @@ -69,7 +69,7 @@ test('set and show pre-set form values', async () => {

const nameControl = screen.getByLabelText(/name/i);
const scoreControl = screen.getByRole('spinbutton', { name: /score/i });
const colorControl = screen.getByRole('combobox', { name: /color/i });
const colorControl = screen.getByPlaceholderText(/color/i);

expect(nameControl).toHaveValue('Max');
expect(scoreControl).toHaveValue(4);
Expand Down