Skip to content

Commit

Permalink
fixes browser field tests (#51738)
Browse files Browse the repository at this point in the history
  • Loading branch information
MadameSheema committed Nov 27, 2019
1 parent d7182cb commit 1dcfd7f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
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

0 comments on commit 1dcfd7f

Please sign in to comment.