Skip to content

Commit

Permalink
Security analytics cypress test fixes. (#1590)
Browse files Browse the repository at this point in the history
* 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]>
(cherry picked from commit b5b2cb8)
  • Loading branch information
AWSHurneyt authored and github-actions[bot] committed Oct 18, 2024
1 parent 8df8650 commit ef0015e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"id": "25b9c01c-350d-4b95-bed1-836d04a4f325",
"id": "25b9c01c-350d-4b95-bed1-836d04a4f324",
"category": "dns",
"title": "Cypress DNS Type Rule",
"description": "Detects DNS type as QWE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,9 @@ Cypress.Commands.add(
Cypress.log({ message: `Select combobox items: ${items.join(' | ')}` });
items.map((item) => {
cy.wrap(subject).type(item);

// Short wait to reduce flakiness
cy.wait(3000);
cy.get(`[title="${item}"]`).click({ force: true });
});
}
Expand Down

0 comments on commit ef0015e

Please sign in to comment.