[Security Solution] Narrow test skips for Artifact list pages (#140401)

This commit is contained in:
Kevin Logan 2022-09-09 14:38:12 -04:00 committed by GitHub
parent cbbb90ebc9
commit b36df1914b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 6 deletions

View file

@ -16,8 +16,7 @@ import { getDeferred } from '../mocks';
jest.mock('../../../common/components/user_privileges');
// FLAKY: https://github.com/elastic/kibana/issues/129837
describe.skip('When using the ArtifactListPage component', () => {
describe('When using the ArtifactListPage component', () => {
let render: (
props?: Partial<ArtifactListPageProps>
) => ReturnType<AppContextTestRender['render']>;
@ -156,7 +155,8 @@ describe.skip('When using the ArtifactListPage component', () => {
expect(getByTestId('testPage-flyout')).toBeTruthy();
});
it('should display the Delete modal when delete action is clicked', async () => {
// FLAKY: https://github.com/elastic/kibana/issues/129837
it.skip('should display the Delete modal when delete action is clicked', async () => {
const { getByTestId } = await renderWithListData();
await clickCardAction('delete');
@ -227,7 +227,8 @@ describe.skip('When using the ArtifactListPage component', () => {
});
});
it('should persist policy filter to the URL params', async () => {
// FLAKY: https://github.com/elastic/kibana/issues/129837
it.skip('should persist policy filter to the URL params', async () => {
const policyId = mockedApi.responseProvider.endpointPackagePolicyList().items[0].id;
const firstPolicyTestId = `policiesSelector-popover-items-${policyId}`;

View file

@ -77,12 +77,14 @@ describe('When displaying the Delete artifact modal in the Artifact List Page',
10000
);
it('should show Cancel and Delete buttons enabled', async () => {
// FLAKY: https://github.com/elastic/kibana/issues/139527
it.skip('should show Cancel and Delete buttons enabled', async () => {
expect(cancelButton).toBeEnabled();
expect(submitButton).toBeEnabled();
});
it('should close modal if Cancel/Close buttons are clicked', async () => {
// FLAKY: https://github.com/elastic/kibana/issues/139528
it.skip('should close modal if Cancel/Close buttons are clicked', async () => {
userEvent.click(cancelButton);
expect(renderResult.queryByTestId('testPage-deleteModal')).toBeNull();