mirror of
https://github.com/ansible/awx.git
synced 2026-05-09 02:17:37 -02:30
fixed locators
This commit is contained in:
@@ -225,6 +225,7 @@ function ToolbarDeleteButton({
|
|||||||
key="add"
|
key="add"
|
||||||
isDisabled={isDisabled}
|
isDisabled={isDisabled}
|
||||||
isLoading={isLoading}
|
isLoading={isLoading}
|
||||||
|
ouiaId="kebab-deleteButton"
|
||||||
spinnerAriaValueText={isLoading ? 'Loading' : undefined}
|
spinnerAriaValueText={isLoading ? 'Loading' : undefined}
|
||||||
component="button"
|
component="button"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
@@ -240,6 +241,7 @@ function ToolbarDeleteButton({
|
|||||||
<Button
|
<Button
|
||||||
variant="secondary"
|
variant="secondary"
|
||||||
isLoading={isLoading}
|
isLoading={isLoading}
|
||||||
|
ouiaId="kebab-deleteButton"
|
||||||
spinnerAriaValueText={isLoading ? 'Loading' : undefined}
|
spinnerAriaValueText={isLoading ? 'Loading' : undefined}
|
||||||
aria-label={t`Delete`}
|
aria-label={t`Delete`}
|
||||||
onClick={() => toggleModal(true)}
|
onClick={() => toggleModal(true)}
|
||||||
|
|||||||
@@ -92,11 +92,11 @@ describe('<InventoryDetail />', () => {
|
|||||||
expectDetailToMatch(wrapper, 'Type', 'Inventory');
|
expectDetailToMatch(wrapper, 'Type', 'Inventory');
|
||||||
const org = wrapper.find('Detail[label="Organization"]');
|
const org = wrapper.find('Detail[label="Organization"]');
|
||||||
expect(org.prop('value')).toMatchInlineSnapshot(`
|
expect(org.prop('value')).toMatchInlineSnapshot(`
|
||||||
<Link
|
<ForwardRef
|
||||||
to="/organizations/1/details"
|
to="/organizations/1/details"
|
||||||
>
|
>
|
||||||
The Organization
|
The Organization
|
||||||
</Link>
|
</ForwardRef>
|
||||||
`);
|
`);
|
||||||
const vars = wrapper.find('VariablesDetail');
|
const vars = wrapper.find('VariablesDetail');
|
||||||
expect(vars).toHaveLength(1);
|
expect(vars).toHaveLength(1);
|
||||||
|
|||||||
Reference in New Issue
Block a user