fix: menu bar dropdown transparent background, move test to e2e-editor

- Replace bg-popover with bg-card for dropdown backgrounds (popover CSS
  variable is not defined in this project's theme)
- Move menu bar test to tests/e2e-editor/ and adapt for editorPage fixture
- Fix click-outside test to handle welcome screen overlay
This commit is contained in:
SnapOtter
2026-05-08 20:47:05 +08:00
parent 5c64581496
commit 321c5da998
2 changed files with 47 additions and 49 deletions
@@ -389,7 +389,7 @@ function MenuItemRow({ item, onClose }: { item: MenuItem; onClose: () => void })
</div>
{submenuOpen && (
<div
className="absolute left-full top-0 ml-0.5 min-w-[180px] bg-popover border border-border rounded-md shadow-lg py-1 z-[60]"
className="absolute left-full top-0 ml-0.5 min-w-[180px] bg-card border border-border rounded-md shadow-lg py-1 z-[60]"
role="menu"
onMouseEnter={handleEnter}
onMouseLeave={handleLeave}
@@ -488,7 +488,7 @@ export function EditorMenuBar(props: MenuBarCallbacks) {
</button>
{openMenu === menu.testId && (
<div
className="absolute left-0 top-full mt-0.5 min-w-[220px] bg-popover border border-border rounded-md shadow-lg py-1 z-50"
className="absolute left-0 top-full mt-0.5 min-w-[220px] bg-card border border-border rounded-md shadow-lg py-1 z-50"
data-testid={`menu-dropdown-${menu.testId}`}
role="menu"
>