mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Attempt to fix flaky sidebar test (#17852)
Makes displaying and hiding the list more deterministic.
```
Error: QUnit Test Failure: Exam Partition 1 - Acceptance: Sidebar - Community Section: clicking on more... link
not ok 491 Firefox 91.0 - [722 ms] - Exam Partition 1 - Acceptance: Sidebar - Community Section: clicking on more... link
---
actual: >
true
expected: >
false
stack: >
@http://localhost:7357/assets/core-tests.js:9826:14
message: >
additional section links are hidden
negative: >
false
browser log: |
```
This commit is contained in:
committed by
GitHub
parent
5283088269
commit
55fa94f759
@@ -72,8 +72,8 @@ export default class SidebarMoreSectionLinks extends GlimmerComponent {
|
||||
}
|
||||
|
||||
@action
|
||||
toggleSectionLinks() {
|
||||
this.shouldDisplaySectionLinks = !this.shouldDisplaySectionLinks;
|
||||
toggleSectionLinks(element) {
|
||||
this.shouldDisplaySectionLinks = element.target.hasAttribute("open");
|
||||
}
|
||||
|
||||
#removeClickEventListener() {
|
||||
|
||||
Reference in New Issue
Block a user