Skip to content

Commit b5b2cb8

Browse files
authored
Security analytics cypress test fixes. (#1590)
* Added short wait to help reduce flakiness. Signed-off-by: AWSHurneyt <[email protected]> * Gave rule unique ID. Signed-off-by: AWSHurneyt <[email protected]> --------- Signed-off-by: AWSHurneyt <[email protected]>
1 parent 2f6c790 commit b5b2cb8

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

cypress/fixtures/plugins/security-analytics-dashboards-plugin/integration_tests/rule/create_dns_rule_with_type_selection.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"id": "25b9c01c-350d-4b95-bed1-836d04a4f325",
2+
"id": "25b9c01c-350d-4b95-bed1-836d04a4f324",
33
"category": "dns",
44
"title": "Cypress DNS Type Rule",
55
"description": "Detects DNS type as QWE",

cypress/utils/plugins/security-analytics-dashboards-plugin/commands.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,9 @@ Cypress.Commands.add(
198198
Cypress.log({ message: `Select combobox items: ${items.join(' | ')}` });
199199
items.map((item) => {
200200
cy.wrap(subject).type(item);
201+
202+
// Short wait to reduce flakiness
203+
cy.wait(3000);
201204
cy.get(`[title="${item}"]`).click({ force: true });
202205
});
203206
}

0 commit comments

Comments
 (0)