mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[8.10] [Security Solution] [Detections] Fixes flakey exceptions read-only viewer cypress test (#164283) (#164346)
# Backport This will backport the following commits from `main` to `8.10`: - [[Security Solution] [Detections] Fixes flakey exceptions read-only viewer cypress test (#164283)](https://github.com/elastic/kibana/pull/164283) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Ievgen Sorokopud","email":"ievgen.sorokopud@elastic.co"},"sourceCommit":{"committedDate":"2023-08-21T18:40:14Z","message":"[Security Solution] [Detections] Fixes flakey exceptions read-only viewer cypress test (#164283)\n\n## Summary\r\n\r\nFixes: https://github.com/elastic/kibana/issues/162569\r\nFixes: https://github.com/elastic/kibana/issues/164061\r\nFixes: https://github.com/elastic/kibana/issues/164058\r\nFixes: https://github.com/elastic/kibana/issues/163546\r\nFixes: https://github.com/elastic/kibana/issues/162669\r\n\r\nWe tried to fix the issue with this PR\r\nhttps://github.com/elastic/kibana/pull/162839 but test failed again.\r\n\r\nThis is another attempt to fix it using the @jpdjere's approach where we\r\ndisable rule's table refreshing\r\n(https://github.com/elastic/kibana/pull/163698).","sha":"4477f642e3297355ef676dcf485efb0cb49c4fcb","branchLabelMapping":{"^v8.11.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team: SecuritySolution","Team:Detection Engine","v8.10.0","v8.11.0"],"number":164283,"url":"https://github.com/elastic/kibana/pull/164283","mergeCommit":{"message":"[Security Solution] [Detections] Fixes flakey exceptions read-only viewer cypress test (#164283)\n\n## Summary\r\n\r\nFixes: https://github.com/elastic/kibana/issues/162569\r\nFixes: https://github.com/elastic/kibana/issues/164061\r\nFixes: https://github.com/elastic/kibana/issues/164058\r\nFixes: https://github.com/elastic/kibana/issues/163546\r\nFixes: https://github.com/elastic/kibana/issues/162669\r\n\r\nWe tried to fix the issue with this PR\r\nhttps://github.com/elastic/kibana/pull/162839 but test failed again.\r\n\r\nThis is another attempt to fix it using the @jpdjere's approach where we\r\ndisable rule's table refreshing\r\n(https://github.com/elastic/kibana/pull/163698).","sha":"4477f642e3297355ef676dcf485efb0cb49c4fcb"}},"sourceBranch":"main","suggestedTargetBranches":["8.10"],"targetPullRequestStates":[{"branch":"8.10","label":"v8.10.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.11.0","labelRegex":"^v8.11.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/164283","number":164283,"mergeCommit":{"message":"[Security Solution] [Detections] Fixes flakey exceptions read-only viewer cypress test (#164283)\n\n## Summary\r\n\r\nFixes: https://github.com/elastic/kibana/issues/162569\r\nFixes: https://github.com/elastic/kibana/issues/164061\r\nFixes: https://github.com/elastic/kibana/issues/164058\r\nFixes: https://github.com/elastic/kibana/issues/163546\r\nFixes: https://github.com/elastic/kibana/issues/162669\r\n\r\nWe tried to fix the issue with this PR\r\nhttps://github.com/elastic/kibana/pull/162839 but test failed again.\r\n\r\nThis is another attempt to fix it using the @jpdjere's approach where we\r\ndisable rule's table refreshing\r\n(https://github.com/elastic/kibana/pull/163698).","sha":"4477f642e3297355ef676dcf485efb0cb49c4fcb"}}]}] BACKPORT--> Co-authored-by: Ievgen Sorokopud <ievgen.sorokopud@elastic.co>
This commit is contained in:
parent
4997e3b03c
commit
bdbc3e7e0e
1 changed files with 7 additions and 2 deletions
|
@ -12,7 +12,11 @@ import { getNewRule } from '../../../objects/rule';
|
|||
import { createRule } from '../../../tasks/api_calls/rules';
|
||||
import { login, visitWithoutDateRange } from '../../../tasks/login';
|
||||
import { goToExceptionsTab, goToAlertsTab } from '../../../tasks/rule_details';
|
||||
import { goToRuleDetails } from '../../../tasks/alerts_detection_rules';
|
||||
import {
|
||||
disableAutoRefresh,
|
||||
goToRuleDetails,
|
||||
waitForRulesTableToBeLoaded,
|
||||
} from '../../../tasks/alerts_detection_rules';
|
||||
import { DETECTIONS_RULE_MANAGEMENT_URL } from '../../../urls/navigation';
|
||||
import { cleanKibana, deleteAlertsAndRules } from '../../../tasks/common';
|
||||
import {
|
||||
|
@ -56,8 +60,9 @@ describe('Exceptions viewer read only', { tags: tag.ESS }, () => {
|
|||
beforeEach(() => {
|
||||
login(ROLES.reader);
|
||||
visitWithoutDateRange(DETECTIONS_RULE_MANAGEMENT_URL, ROLES.reader);
|
||||
waitForRulesTableToBeLoaded();
|
||||
disableAutoRefresh();
|
||||
goToRuleDetails();
|
||||
cy.url().should('contain', 'app/security/rules/id');
|
||||
goToExceptionsTab();
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue