Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[7.x] [SIEM] fixes browser field tests (#51738) #51799

Merged
merged 1 commit into from
Nov 27, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { TIMELINE_DATA_PROVIDERS } from '../timeline/selectors';

/** Opens the timeline's Field Browser */
export const openTimelineFieldsBrowser = () => {
cy.get(TIMELINE_FIELDS_BUTTON).click();
cy.get(TIMELINE_FIELDS_BUTTON).click({ force: true });

cy.get(FIELDS_BROWSER_CONTAINER).should('exist');
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const defaultHeaders = [
{ id: 'user.name' },
];

describe.skip('Fields Browser', () => {
describe('Fields Browser', () => {
beforeEach(() => {
loginAndWaitForPage(HOSTS_PAGE);
});
Expand Down Expand Up @@ -104,9 +104,9 @@ describe.skip('Fields Browser', () => {

openTimelineFieldsBrowser();

cy.get(
`[data-test-subj="timeline"] [data-test-subj="field-${toggleField}-checkbox"]`
).uncheck();
cy.get(`[data-test-subj="timeline"] [data-test-subj="field-${toggleField}-checkbox"]`).uncheck({
force: true,
});

clickOutsideFieldsBrowser();

Expand Down Expand Up @@ -185,7 +185,9 @@ describe.skip('Fields Browser', () => {
'not.exist'
);

cy.get(`[data-test-subj="timeline"] [data-test-subj="field-${toggleField}-checkbox"]`).check();
cy.get(`[data-test-subj="timeline"] [data-test-subj="field-${toggleField}-checkbox"]`).check({
force: true,
});

clickOutsideFieldsBrowser();

Expand All @@ -194,7 +196,7 @@ describe.skip('Fields Browser', () => {
);
});

it('adds a field to the timeline when the user drags and drops a field', () => {
it.skip('adds a field to the timeline when the user drags and drops a field', () => {
const filterInput = 'host.geo.c';
const toggleField = 'host.geo.city_name';

Expand Down Expand Up @@ -235,7 +237,9 @@ describe.skip('Fields Browser', () => {
'not.exist'
);

cy.get(`[data-test-subj="timeline"] [data-test-subj="field-${toggleField}-checkbox"]`).check();
cy.get(`[data-test-subj="timeline"] [data-test-subj="field-${toggleField}-checkbox"]`).check({
force: true,
});

clickOutsideFieldsBrowser();

Expand All @@ -245,7 +249,7 @@ describe.skip('Fields Browser', () => {

openTimelineFieldsBrowser();

cy.get('[data-test-subj="timeline"] [data-test-subj="reset-fields"]').click();
cy.get('[data-test-subj="timeline"] [data-test-subj="reset-fields"]').click({ force: true });

cy.get(`[data-test-subj="timeline"] [data-test-subj="header-text-${toggleField}"]`).should(
'not.exist'
Expand Down