Skip to content

Commit

Permalink
Updated failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasnp committed Dec 2, 2024
1 parent e7e6f01 commit eccc23b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,10 @@ describe('Dropdown-view - choice', () => {
repeats: false,
})),
};

const { getByRole } = await createWrapper(questionnaire);
expect((getByRole('option', { name: 'Velg...' }) as HTMLOptionElement).selected).toBe(true);
const selectElement = getByRole('combobox') as HTMLSelectElement;
expect(selectElement.value).toBe('');
});
it('Initial value should be set', async () => {
const questionnaire: Questionnaire = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,10 @@ describe('Dropdown-view - choice', () => {
repeats: false,
})),
};

const { getByRole } = await createWrapper(questionnaire);
expect((getByRole('option', { name: 'Velg...' }) as HTMLOptionElement).selected).toBe(true);
const selectElement = getByRole('combobox') as HTMLSelectElement;
expect(selectElement.value).toBe('');
});
it('Initial value should be set', async () => {
const questionnaire = addManyPropertiesToQuestionnaireItem(q, [
Expand Down

0 comments on commit eccc23b

Please sign in to comment.