Skip to content

test: expect the hidden-duplicate item in the context menu item texts - #251

Merged
mcollovati merged 1 commit into
mainfrom
fix/context-menu-item-texts-expectation
Sep 18, 2026
Merged

mcollovati merged 1 commit into
mainfrom
fix/context-menu-item-texts-expectation

Conversation

@mcollovati

Copy link
Copy Markdown
Contributor

Summary

The context menu test that checks which item texts a menu reports was
one item short, so it failed on main and on the 25.3 cherry-pick
(#247). The expectation now lists every item a user sees.

The two changes involved never met in CI: the test fixture gained a
visible "Duplicated Hidden" item in #238, while #242 was written and
validated on a branch cut before that. The files merged without a
textual conflict, so the mismatch only showed up after both had
landed.

What changed

  • getItemTexts_hiddenItemIgnored_componentItemHasNoText expects
    Duplicated Hidden as the last top level text, next to the nine it
    already listed.

Test summary

  • The reported texts are the visible top level items in display order,
    including the visible one of the two Duplicated Hidden siblings,
    which pins down that only the hidden sibling is left out.

The shared `ContextMenuView` gained a visible "Duplicated Hidden" item
after the `getItemTexts()` test was written, so the expected texts were
one item short and the test failed once both changes were on `main`.
@mcollovati
mcollovati merged commit 8450a81 into main Sep 18, 2026
6 checks passed
@mcollovati
mcollovati deleted the fix/context-menu-item-texts-expectation branch September 18, 2026 15:14
@vaadin-bot

Copy link
Copy Markdown
Collaborator

Hi @mcollovati and @mcollovati, when i performed cherry-pick to this commit to 25.3, i have encountered the following issue. Can you take a look and pick it manually?
Error Message:
Error: Command failed: git cherry-pick 8450a81
error: could not apply 8450a81... test: expect the hidden-duplicate item in the context menu item texts (#251)
hint: After resolving the conflicts, mark them with
hint: "git add/rm ", then run
hint: "git cherry-pick --continue".
hint: You can instead skip this commit with "git cherry-pick --skip".
hint: To abort and get back to the state before "git cherry-pick",
hint: run "git cherry-pick --abort".

mcollovati added a commit that referenced this pull request Sep 18, 2026
The item texts expectation in `ContextMenuTesterTest` was one item short,
so this cherry-pick branch failed CI. The list now names every item a
user sees.

The mismatch comes from two changes that never met before landing: the
test fixture gained a visible "Duplicated Hidden" item in #238, which is
already on 25.3, while #242 was written on a branch cut before that.

Cherry-pick of #251.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants