Skip to content

Commit d0e4cbc

Browse files
committed
fixing cypress failure
1 parent 2526ae7 commit d0e4cbc

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

x-pack/plugins/security_solution/cypress/integration/detection_alerts/alerts_details.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ describe('Alert details with unmapped fields', () => {
5454

5555
it('Displays the unmapped field on the table', () => {
5656
const expectedUnmmappedField = {
57-
row: 90,
57+
row: 86,
5858
field: 'unmapped',
5959
text: 'This is the unmapped field',
6060
};

x-pack/plugins/security_solution/cypress/tasks/alerts.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,12 @@ export const closeAlerts = () => {
6363
};
6464

6565
export const expandFirstAlert = () => {
66-
cy.get(EXPAND_ALERT_BTN).should('exist').first().click({ force: true });
66+
cy.get(EXPAND_ALERT_BTN).should('exist');
67+
68+
cy.get(EXPAND_ALERT_BTN)
69+
.first()
70+
.pipe(($el) => $el.trigger('click'))
71+
.should('exist');
6772
};
6873

6974
export const viewThreatIntelTab = () => cy.get(THREAT_INTEL_TAB).click();

x-pack/plugins/security_solution/cypress/tasks/create_new_rule.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,6 @@ export const waitForAlertsToPopulate = async (alertCountThreshold = 1) => {
532532
cy.waitUntil(
533533
() => {
534534
refreshPage();
535-
cy.get(LOADING_INDICATOR).should('exist');
536535
cy.get(LOADING_INDICATOR).should('not.exist');
537536
return cy
538537
.get(SERVER_SIDE_EVENT_COUNT)

0 commit comments

Comments
 (0)