Skip to content

Commit

Permalink
fix(e2e): Select tree popover from body not dom parent
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkLark86 committed Oct 23, 2023
1 parent 244a410 commit 5601304
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions e2e/cypress/support/common/inputs/treeSelect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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();
Expand Down

0 comments on commit 5601304

Please sign in to comment.