Simplify find helper

parent 7d7b2583
...@@ -38,8 +38,7 @@ describe('DropdownInput component', () => { ...@@ -38,8 +38,7 @@ describe('DropdownInput component', () => {
const findToggle = () => wrapper.find('button'); const findToggle = () => wrapper.find('button');
const findLabel = () => wrapper.find('label'); const findLabel = () => wrapper.find('label');
const findDescription = () => const findDescription = () => wrapper.findByTestId('dropdown-input-description');
wrapper.find('label').find('[data-testid="dropdown-input-description"]');
const findInputComponent = () => wrapper.find(GlDropdown); const findInputComponent = () => wrapper.find(GlDropdown);
const findRestoreDefaultLink = () => wrapper.find(GlLink); const findRestoreDefaultLink = () => wrapper.find(GlLink);
const findSectionHeader = () => wrapper.findByTestId('dropdown-input-section-header'); const findSectionHeader = () => wrapper.findByTestId('dropdown-input-section-header');
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment