mirror of
https://github.com/ansible/awx.git
synced 2026-01-20 14:11:24 -03:30
updates keys
This commit is contained in:
parent
94469cc8c0
commit
0e3fbb74d4
@ -29,7 +29,7 @@ const children = ({ openAdHocCommands }) => (
|
||||
<button type="submit" onClick={() => openAdHocCommands()} />
|
||||
);
|
||||
|
||||
describe('<AdHocCOmmands />', () => {
|
||||
describe('<AdHocCommands />', () => {
|
||||
let wrapper;
|
||||
afterEach(() => {
|
||||
wrapper.unmount();
|
||||
@ -311,10 +311,8 @@ describe('<AdHocCOmmands />', () => {
|
||||
wrapper.find('Button[type="submit"]').prop('onClick')()
|
||||
);
|
||||
|
||||
wrapper.update();
|
||||
|
||||
waitForElement(wrapper, 'ErrorDetail', el => el.length > 0);
|
||||
expect(wrapper.find('AdHocCommandsWizard').length).toBe(0);
|
||||
expect(wrapper.find('ErrorDetail').length).toBe(1);
|
||||
});
|
||||
test('should open alert modal when error on fetching data', async () => {
|
||||
InventoriesAPI.readAdHocOptions.mockRejectedValue(
|
||||
|
||||
@ -160,7 +160,7 @@ function InventoryGroupsList({ i18n }) {
|
||||
>
|
||||
{({ openAdHocCommands }) => (
|
||||
<DropdownItem
|
||||
key="add"
|
||||
key="run command"
|
||||
onClick={openAdHocCommands}
|
||||
isDisabled={groupCount === 0}
|
||||
>
|
||||
@ -171,6 +171,7 @@ function InventoryGroupsList({ i18n }) {
|
||||
<DropdownItem
|
||||
variant="danger"
|
||||
aria-label={i18n._(t`Delete`)}
|
||||
key="delete"
|
||||
onClick={toggleModal}
|
||||
isDisabled={selected.length === 0 || selected.some(cannotDelete)}
|
||||
>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user