Skip to content

Commit

Permalink
Security analytics cypress test fixes. (#1590) (#1593)
Browse files Browse the repository at this point in the history
* Added short wait to help reduce flakiness.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* Gave rule unique ID.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

---------

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>
(cherry picked from commit b5b2cb8)

Co-authored-by: AWSHurneyt <hurneyt@amazon.com>
  • Loading branch information
opensearch-trigger-bot[bot] and AWSHurneyt authored Oct 18, 2024
1 parent 8df8650 commit f30518f
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 f30518f

Please sign in to comment.