Skip to content

Commit

Permalink
fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
maximpn committed Dec 21, 2022
1 parent da87940 commit 41e6647
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ import {
import { goBackToRuleDetails } from '../../tasks/edit_rule';
import { esArchiverLoad, esArchiverUnload } from '../../tasks/es_archiver';
import { login, visit, visitWithoutDateRange } from '../../tasks/login';
import { goBackToAllRulesTable, getDetails } from '../../tasks/rule_details';
import { goBackToRulesTable, getDetails } from '../../tasks/rule_details';

import { DETECTIONS_RULE_MANAGEMENT_URL, RULE_CREATION } from '../../urls/navigation';
const DEFAULT_THREAT_MATCH_QUERY = '@timestamp >= "now-30d/d"';
Expand Down Expand Up @@ -537,7 +537,7 @@ describe('indicator match', () => {
it('Allows the rule to be duplicated from the table', () => {
duplicateFirstRule();
goBackToRuleDetails();
goBackToAllRulesTable();
goBackToRulesTable();
checkDuplicatedRule();
});

Expand All @@ -551,7 +551,7 @@ describe('indicator match', () => {
goToRuleDetails();
duplicateRuleFromMenu();
goBackToRuleDetails();
goBackToAllRulesTable();
goBackToRulesTable();
checkDuplicatedRule();
});
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ import {
expectNumberOfRules,
expectToContainRule,
filterBySearchTerm,
goToRulesTable,
goToRuleDetails,
} from '../../tasks/alerts_detection_rules';
import { RULE_SEARCH_FIELD } from '../../screens/alerts_detection_rules';
import { createCustomRule } from '../../tasks/api_calls/rules';
import { goBackToRulesTable } from '../../tasks/rule_details';

function createRule(id: string, name: string, tags?: string[]): void {
const rule = getNewRule();
Expand Down Expand Up @@ -63,7 +63,7 @@ describe('Persistent rules table state', () => {
expectToContainRule('rule 1');

goToRuleDetails();
goToRulesTable();
goBackToRulesTable();

cy.get(RULE_SEARCH_FIELD).should('have.value', 'rule 1');
expectNumberOfRules(1);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export const waitForTheRuleToBeExecuted = () => {
});
};

export const goBackToAllRulesTable = () => {
export const goBackToRulesTable = () => {
cy.get(BACK_TO_RULES_TABLE).click();
};

Expand Down

0 comments on commit 41e6647

Please sign in to comment.