Skip to content

Commit

Permalink
[7.x] [SIEM] Reenabling Cypress tests (#70397) (#70551)
Browse files Browse the repository at this point in the history
* [SIEM] Reenabling Cypress tests (#70397)

* reenabling cypress

* skips Overview tests

* skips search bar test

* skips URL test

* fixes merge issue

Co-authored-by: Elastic Machine <[email protected]>
  • Loading branch information
MadameSheema and elasticmachine authored Jul 3, 2020
1 parent 32af4a7 commit 4548d3d
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 15 deletions.
15 changes: 5 additions & 10 deletions test/scripts/jenkins_security_solution_cypress.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,11 @@ export KIBANA_INSTALL_DIR="$destDir"
echo " -> Running security solution cypress tests"
cd "$XPACK_DIR"

# Failures across multiple suites, skipping all
# https://github.com/elastic/kibana/issues/69847
# https://github.com/elastic/kibana/issues/69848
# https://github.com/elastic/kibana/issues/69849

# checks-reporter-with-killswitch "Security solution Cypress Tests" \
# node scripts/functional_tests \
# --debug --bail \
# --kibana-install-dir "$KIBANA_INSTALL_DIR" \
# --config test/security_solution_cypress/config.ts
checks-reporter-with-killswitch "Security solution Cypress Tests" \
node scripts/functional_tests \
--debug --bail \
--kibana-install-dir "$KIBANA_INSTALL_DIR" \
--config test/security_solution_cypress/config.ts

echo ""
echo ""
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ import { loginAndWaitForPageWithoutDateRange } from '../tasks/login';

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

describe('Detection rules, custom', () => {
describe.skip('Detection rules, custom', () => {
before(() => {
esArchiverLoad('custom_rule_with_timeline');
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { ALERTS_URL } from '../urls/navigation';

const EXPECTED_EXPORTED_RULE_FILE_PATH = 'cypress/test_files/expected_rules_export.ndjson';

describe('Export rules', () => {
describe.skip('Export rules', () => {
before(() => {
esArchiverLoad('custom_rules');
cy.server();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { loginAndWaitForPage } from '../tasks/login';

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

describe('Overview Page', () => {
describe.skip('Overview Page', () => {
before(() => {
cy.stubSecurityApi('overview');
loginAndWaitForPage(OVERVIEW_URL);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { hostIpFilter } from '../objects/filter';
import { HOSTS_URL } from '../urls/navigation';
import { waitForAllHostsToBeLoaded } from '../tasks/hosts/all_hosts';

describe('SearchBar', () => {
describe.skip('SearchBar', () => {
before(() => {
loginAndWaitForPage(HOSTS_URL);
waitForAllHostsToBeLoaded();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ describe('url state', () => {
cy.get(KQL_INPUT).should('have.attr', 'value', 'source.ip: "10.142.0.9"');
});

it('sets and reads the url state for timeline by id', () => {
it.skip('sets and reads the url state for timeline by id', () => {
loginAndWaitForPage(HOSTS_URL);
openTimeline();
executeTimelineKQL('host.name: *');
Expand Down

0 comments on commit 4548d3d

Please sign in to comment.