Skip to content

Commit

Permalink
LPS-144301 layout-seo-web Upgrade to testing library 12
Browse files Browse the repository at this point in the history
  • Loading branch information
victorg1991 committed Dec 21, 2021
1 parent 5d14220 commit 3adff9f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,13 @@ describe('MappingFields', () => {
baseProps.inputs[1].label
);

hiddenImageWithDefaulInput = result.getAllByRole('textbox')[1];
hiddenImageInput = result.getAllByRole('textbox')[3];
hiddenImageWithDefaulInput = result.container.querySelector(
`input[name="${baseProps.inputs[0].name}"]`
);

hiddenImageInput = result.container.querySelector(
`input[name="${baseProps.inputs[1].name}"]`
);
});

it('has two read only inputs for user feedback with the selected field names', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,10 @@ describe('MappingSelector', () => {
selectedFieldKey: undefined,
});
inputFeedback = result.getAllByRole('textbox')[0];
inputValue = result.getAllByRole('textbox')[1];

inputValue = result.container.querySelector(
`[name="${baseProps.name}"]`
);
});

it('has a hidden input with unmapped key', () => {
Expand Down

0 comments on commit 3adff9f

Please sign in to comment.