Skip to content

Fix for notification menu 'View all activity'#3080

Merged
DariaBod merged 2 commits into
release26.3-SNAPSHOTfrom
26.3_fb_fixNotificationMenuViewAllTests
Jul 2, 2026
Merged

Fix for notification menu 'View all activity'#3080
DariaBod merged 2 commits into
release26.3-SNAPSHOTfrom
26.3_fb_fixNotificationMenuViewAllTests

Conversation

@DariaBod

Copy link
Copy Markdown
Contributor

Rationale

Dropdown menu click isn't working sometimes because of re-rendering.

Related Pull Requests

Changes

  • added retry

@labkey-danield labkey-danield left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm ok with retrying but I wonder if the call to elementCache().viewAllLink() might be part of the problem. Specifically it's dependency on menuContent in the elementCache.

}
catch (StaleElementReferenceException | NoSuchElementException retry)
{
return false;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this do a collapse() before retrying?

I also wonder if part of the issue might be:
public final WebElement menuContent = Locator.byClass("navbar-menu__content").refindWhenNeeded(this);
in the element cache. Maybe this should be a locator, or put in a method so it is found everytime it is referenced.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Switched toggle to refindWhenNeeded so it recovers on re-render, and kept the retry for the transient not-yet-rendered case.

@DariaBod DariaBod force-pushed the 26.3_fb_fixNotificationMenuViewAllTests branch from f5e3ca0 to 8af4f95 Compare June 30, 2026 19:48
@DariaBod DariaBod requested a review from labkey-danield June 30, 2026 19:50
@DariaBod DariaBod merged commit d8904a6 into release26.3-SNAPSHOT Jul 2, 2026
7 checks passed
@DariaBod DariaBod deleted the 26.3_fb_fixNotificationMenuViewAllTests branch July 2, 2026 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants