Skip to content

Commit

Permalink
[7.9] [SIEM] Unskips and fixes Cypress tests (#73322) (#73442)
Browse files Browse the repository at this point in the history
Co-authored-by: Elastic Machine <[email protected]>
  • Loading branch information
MadameSheema and elasticmachine authored Jul 28, 2020
1 parent aee35b8 commit 694322b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { createNewTimeline } from '../tasks/timeline';

import { HOSTS_URL } from '../urls/navigation';

describe('timeline flyout button', () => {
describe.skip('timeline flyout button', () => {
before(() => {
loginAndWaitForPage(HOSTS_URL);
waitForAllHostsToBeLoaded();
Expand Down
8 changes: 4 additions & 4 deletions x-pack/plugins/security_solution/cypress/tasks/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ export const drag = (subject: JQuery<HTMLElement>) => {
clientY: subjectLocation.top,
force: true,
})
.wait(1000)
.wait(3000)
.trigger('mousemove', {
button: primaryButton,
clientX: subjectLocation.left + dndSloppyClickDetectionThreshold,
clientY: subjectLocation.top,
force: true,
})
.wait(1000);
.wait(3000);
};

/** Drags the subject being dragged on the specified drop target, but does not drop it */
Expand All @@ -44,9 +44,9 @@ export const dragWithoutDrop = (dropTarget: JQuery<HTMLElement>) => {
export const drop = (dropTarget: JQuery<HTMLElement>) => {
cy.wrap(dropTarget)
.trigger('mousemove', { button: primaryButton, force: true })
.wait(1000)
.wait(3000)
.trigger('mouseup', { force: true })
.wait(1000);
.wait(3000);
};

export const reload = (afterReload: () => void) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export const dragAndDropColumn = ({
.eq(column)
.then((header) => drag(header));

cy.wait(3000); // wait for DOM updates before moving
cy.wait(5000); // wait for DOM updates before moving

cy.get(DRAGGABLE_HEADER)
.eq(newPosition)
Expand Down
2 changes: 0 additions & 2 deletions x-pack/test/security_solution_cypress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ export default async function ({ readConfigFile }: FtrConfigProviderContext) {
'--csp.strict=false',
// define custom kibana server args here
`--elasticsearch.ssl.certificateAuthorities=${CA_CERT_PATH}`,
'--xpack.ingestManager.enabled=true',
'--xpack.ingestManager.fleet.enabled=true',
],
},
};
Expand Down

0 comments on commit 694322b

Please sign in to comment.