Skip to content

Commit

Permalink
MOBILE-3947 behat: Fix backdrop selector
Browse files Browse the repository at this point in the history
  • Loading branch information
crazyserver committed Dec 15, 2023
1 parent b201985 commit f3e0d4e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/testing/services/behat-runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ export class TestingBehatRuntimeService {
this.log('Action - Close popup');

const backdrops = Array
.from(document.querySelectorAll('.ion-page:not(.ion-page-hidden) ion-popover'))
.from(document.querySelectorAll('ion-popover, ion-modal'))
.map(popover => popover.shadowRoot?.querySelector('ion-backdrop'))
.filter(backdrop => !!backdrop);

Expand Down
1 change: 0 additions & 1 deletion src/tests/behat/navigation_externallinks.feature
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ Feature: It opens external links properly.
| forum | user | name | message |
| Test forum | student1 | Forum topic | See <a href="https://moodle.org/">moodle.org external link</a> |

@ionic7_failure
Scenario: Click an external link
Given I entered the forum activity "Test forum" on course "Course 1" as "student1" in the app
When I press "Forum topic" in the app
Expand Down

0 comments on commit f3e0d4e

Please sign in to comment.