Skip to content

Commit

Permalink
Fixing cypress tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-buttner committed Sep 1, 2022
1 parent fef000a commit 8c7c3e8
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ import {
ALL_CASES_OPEN_CASES_STATS,
ALL_CASES_OPENED_ON,
ALL_CASES_PAGE_TITLE,
ALL_CASES_REPORTER,
ALL_CASES_REPORTERS_COUNT,
ALL_CASES_SERVICE_NOW_INCIDENT,
ALL_CASES_TAGS,
ALL_CASES_TAGS_COUNT,
Expand Down Expand Up @@ -85,10 +83,8 @@ describe('Cases', () => {
cy.get(ALL_CASES_CLOSED_CASES_STATS).should('have.text', '0');
cy.get(ALL_CASES_IN_PROGRESS_CASES_STATS).should('have.text', '0');
cy.get(ALL_CASES_OPEN_CASES_COUNT).should('have.text', 'Open (1)');
cy.get(ALL_CASES_REPORTERS_COUNT).should('have.text', 'Reporter1');
cy.get(ALL_CASES_TAGS_COUNT).should('have.text', 'Tags2');
cy.get(ALL_CASES_NAME).should('have.text', this.mycase.name);
cy.get(ALL_CASES_REPORTER).should('have.text', 'e');
(this.mycase as TestCase).tags.forEach((tag) => {
cy.get(ALL_CASES_TAGS(tag)).should('have.text', tag);
});
Expand Down
5 changes: 0 additions & 5 deletions x-pack/plugins/security_solution/cypress/screens/all_cases.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,6 @@ export const ALL_CASES_OPENED_ON = '[data-test-subj="case-table-column-createdAt

export const ALL_CASES_PAGE_TITLE = '[data-test-subj="header-page-title"]';

export const ALL_CASES_REPORTER = '[data-test-subj="case-table-column-createdBy"]';

export const ALL_CASES_REPORTERS_COUNT =
'[data-test-subj="options-filter-popover-button-Reporter"]';

export const ALL_CASES_SERVICE_NOW_INCIDENT =
'[data-test-subj="case-table-column-external-notPushed"]';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import {
ALL_CASES_NOT_PUSHED,
ALL_CASES_NUMBER_OF_ALERTS,
ALL_CASES_OPEN_CASES_STATS,
ALL_CASES_REPORTER,
ALL_CASES_IN_PROGRESS_STATUS,
} from '../../../screens/all_cases';
import {
Expand Down Expand Up @@ -108,7 +107,6 @@ describe('Import case after upgrade', () => {

it('Displays the correct case details on the cases page', () => {
cy.get(ALL_CASES_NAME).should('have.text', importedCase.title);
cy.get(ALL_CASES_REPORTER).should('have.text', importedCase.initial);
cy.get(ALL_CASES_NUMBER_OF_ALERTS).should('have.text', importedCase.numberOfAlerts);
cy.get(ALL_CASES_COMMENTS_COUNT).should('have.text', importedCase.numberOfComments);
cy.get(ALL_CASES_NOT_PUSHED).should('be.visible');
Expand Down

0 comments on commit 8c7c3e8

Please sign in to comment.