From 5601304a32bf8f52310e392656390bf37ea7172f Mon Sep 17 00:00:00 2001 From: Mark Pittaway Date: Tue, 24 Oct 2023 10:58:39 +1100 Subject: [PATCH] fix(e2e): Select tree popover from body not dom parent --- e2e/cypress/support/common/inputs/treeSelect.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/e2e/cypress/support/common/inputs/treeSelect.ts b/e2e/cypress/support/common/inputs/treeSelect.ts index 25ece35a6..df7f2647e 100644 --- a/e2e/cypress/support/common/inputs/treeSelect.ts +++ b/e2e/cypress/support/common/inputs/treeSelect.ts @@ -21,8 +21,7 @@ export class TreeSelect extends Input { cy.wrap(values).each((value: string) => { this.addButton.click(); cy.get('body').type(value); - this.element - .find('.suggestion-item--bgcolor') + cy.get('[data-test-id="tree-select-popover"] ul li') .eq(0) .should('exist') .click(); @@ -32,8 +31,7 @@ export class TreeSelect extends Input { this.addButton.click(); cy.get('body').type(value); - this.element - .find('.suggestion-item--bgcolor') + cy.get('[data-test-id="tree-select-popover"] ul li') .eq(0) .should('exist') .click();