fixed locators

This commit is contained in:
akus062381 2021-04-27 13:13:50 -04:00
parent bf892443df
commit 033adcb8b8
2 changed files with 4 additions and 2 deletions

View File

@ -225,6 +225,7 @@ function ToolbarDeleteButton({
key="add"
isDisabled={isDisabled}
isLoading={isLoading}
ouiaId="kebab-deleteButton"
spinnerAriaValueText={isLoading ? 'Loading' : undefined}
component="button"
onClick={() => {
@ -240,6 +241,7 @@ function ToolbarDeleteButton({
<Button
variant="secondary"
isLoading={isLoading}
ouiaId="kebab-deleteButton"
spinnerAriaValueText={isLoading ? 'Loading' : undefined}
aria-label={t`Delete`}
onClick={() => toggleModal(true)}

View File

@ -92,11 +92,11 @@ describe('<InventoryDetail />', () => {
expectDetailToMatch(wrapper, 'Type', 'Inventory');
const org = wrapper.find('Detail[label="Organization"]');
expect(org.prop('value')).toMatchInlineSnapshot(`
<Link
<ForwardRef
to="/organizations/1/details"
>
The Organization
</Link>
</ForwardRef>
`);
const vars = wrapper.find('VariablesDetail');
expect(vars).toHaveLength(1);