Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ describe('FieldComponent', () => {
selectedField={getField('machine.os.raw')}
/>
);
expect(wrapper).toMatchSnapshot();
expect(wrapper.container).toMatchSnapshot();
const comboBox = wrapper.getByTestId('fieldAutocompleteComboBox');
const input = within(comboBox).getByRole('combobox');
expect(input).toHaveAttribute('value', 'machine.os.raw');
Expand All @@ -52,7 +52,7 @@ describe('FieldComponent', () => {
selectedField={getField('machine.os.raw')}
/>
);
expect(wrapper).toMatchSnapshot();
expect(wrapper.container).toMatchSnapshot();
expect(wrapper.getByTestId('fieldAutocompleteComboBox').querySelector('input')).toBeDisabled();
});
it('should render the loading spinner if isLoading is true when clicked', () => {
Expand All @@ -72,7 +72,7 @@ describe('FieldComponent', () => {
/>
);
const fieldAutocompleteComboBox = wrapper.getByTestId('fieldAutocompleteComboBox');
expect(wrapper).toMatchSnapshot();
expect(wrapper.container).toMatchSnapshot();
fireEvent.click(fieldAutocompleteComboBox);
expect(wrapper.getByRole('progressbar')).toBeInTheDocument();
});
Expand All @@ -92,7 +92,7 @@ describe('FieldComponent', () => {
selectedField={getField('machine.os.raw')}
/>
);
expect(wrapper).toMatchSnapshot();
expect(wrapper.container).toMatchSnapshot();
expect(wrapper.getByTestId('comboBoxClearButton')).toBeInTheDocument();
});
it('should change the selected value', async () => {
Expand Down
Loading