Skip to content

Commit

Permalink
add actuall is vmi listed test
Browse files Browse the repository at this point in the history
  • Loading branch information
yaacov committed Feb 12, 2020
1 parent 40fad2e commit a7ee6c7
Showing 1 changed file with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,16 @@ import {
createResource,
removeLeakedResources,
} from '@console/shared/src/test-utils/utils';
import { isLoaded } from '@console/internal-integration-tests/views/crud.view';
import {
resourceRowsPresent,
textFilter,
isLoaded,
} from '@console/internal-integration-tests/views/crud.view';
import { getVMManifest, getVMIManifest } from './utils/mocks';
import { VM_STATUS } from './utils/consts';
import { filterBoxCount } from '../views/vms.list.view';
import { VirtualMachine } from './models/virtualMachine';
import { fillInput } from './utils/utils';

const waitForVM = async (
manifest: any,
Expand Down Expand Up @@ -54,4 +59,14 @@ describe('Test List View Filtering (VMI)', () => {
const vmiImportingCount = await filterBoxCount(VM_STATUS.Running);
expect(vmiImportingCount).toEqual(1);
});

it('Displays VMs in the list of VirtualMachines', async () => {
await fillInput(textFilter, testVM.metadata.name);
await resourceRowsPresent();
});

it('Displays VMIs in the list of VirtualMachines', async () => {
await fillInput(textFilter, testVMI.metadata.name);
await resourceRowsPresent();
});
});

0 comments on commit a7ee6c7

Please sign in to comment.