Action Menu + Nested Submenu

Panel 18 of the Lightning-Pattern POC page (mockapps/salesforce): a record-level action menu created dynamically when its trigger is clicked, with a nested submenu created when Change Owner is hovered or focused. POC: open Account Actions, Change Owner, Assign to Queue and verify the chosen action; reopen the menu. Uses TasWebMenu rooted at the wrapper holding both the trigger and the menu host, with an absolute subXPath and click as the default action. Dismissal with Escape uses a key-only value ({ESC}) on the trigger.

#ActionWindow / MethodObjectValueAux 1Aux 2
1Call User MethodfLaunchWebApplicationautSalesforce<NONE>
2Enter comment for LogsComment Name=Record actions + nested submenuBrief Description=Open Account Actions, Change Owner, Assign to Queue and verify the chosen action; reopen the menuExpected Result=The menu is created on open, the nested submenu is created when Change Owner is entered, the leaf click records the action and closes the menu; the menu can be reopened and used again
3CHECK Property - Equals(CaseFalse)sfActionMenulblActionOutNo action selectedProp:textPreScrollToView:true
4Verify no action is selected initially
5CHECK Property - Equals(CaseFalse)sfActionMenubtnAccountActionsfalseProp:aria-expandedPreScrollToView:true
6Verify the trigger reports itself collapsed
7CHECK Property - Equals(CaseFalse)sfActionMenucstActionMenufalseProp:Exist
8Verify the menu does not exist until it is opened (it is created dynamically)
9Set ValuesfActionMenumnuAccountActionsSelectMenun/aPath:Item*=Account Actions~Item*=Change Owner~Item==Assign to Queue#PreScrollToView:true
10CHECK Property - Equals(CaseFalse)sfActionMenulblActionOutSelected action: Assign to QueueProp:textPreScrollToView:true
11Verify the chosen action -- Account Actions, Change Owner, Assign to Queue (the nested submenu was created when Change Owner was entered)
12CHECK Property - Equals(CaseFalse)sfActionMenubtnAccountActionsfalseProp:aria-expandedPreScrollToView:true
13Verify choosing the leaf closed the menu
14CHECK Property - Equals(CaseFalse)sfActionMenucstActionMenufalseProp:Exist
15Verify the menu was removed from the DOM after the choice
16Set ValuesfActionMenubtnAccountActions{click}PreScrollToView:true
17CHECK Property - Equals(CaseFalse)sfActionMenubtnAccountActionstrueProp:aria-expandedPreScrollToView:true
18Verify reopening the menu reports expanded
19CHECK Property - Equals(CaseFalse)sfActionMenucstActionMenutrueProp:VisiblePreScrollToView:true
20Verify the menu is created again and displayed
21Set ValuesfActionMenumnuAccountActionsSelectMenun/aPath:Item*=Account Actions~Item==Clone#PreScrollToView:true
22CHECK Property - Equals(CaseFalse)sfActionMenulblActionOutSelected action: CloneProp:textPreScrollToView:true
23Verify a direct menu item works too -- and the path walk did not toggle the already-open menu closed first
24CHECK Property - Equals(CaseFalse)sfActionMenubtnAccountActionsfalseProp:aria-expandedPreScrollToView:true
25Verify the menu closed after the direct item
26Set ValuesfActionMenubtnAccountActions{click}PreScrollToView:true
27CHECK Property - Equals(CaseFalse)sfActionMenubtnAccountActionstrueProp:aria-expandedPreScrollToView:true
28Verify the menu is open again before dismissing it
29Set ValuesfActionMenubtnAccountActions{ESC}PreScrollToView:true
30CHECK Property - Equals(CaseFalse)sfActionMenubtnAccountActionsfalseProp:aria-expandedPreScrollToView:true
31Verify pressing Escape closed the menu (trigger reports collapsed)
32CHECK Property - Equals(CaseFalse)sfActionMenucstActionMenufalseProp:Exist
33Verify Escape removed the menu from the DOM
READY TO SEE THE EVIDENCE?

See whether TA STUDIO fits your enterprise applications.

A focused walkthrough grounded in the applications your team tests.

Request a Demo