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.
| # | Action | Window / Method | Object | Value | Aux 1 | Aux 2 |
|---|---|---|---|---|---|---|
| 1 | Call User Method | fLaunchWebApplication | autSalesforce | <NONE> | ||
| 2 | Enter comment for Logs | Comment Name=Record actions + nested submenu | Brief Description=Open Account Actions, Change Owner, Assign to Queue and verify the chosen action; reopen the menu | Expected 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 | ||
| 3 | CHECK Property - Equals(CaseFalse) | sfActionMenu | lblActionOut | No action selected | Prop:text | PreScrollToView:true |
| 4 | Verify no action is selected initially | |||||
| 5 | CHECK Property - Equals(CaseFalse) | sfActionMenu | btnAccountActions | false | Prop:aria-expanded | PreScrollToView:true |
| 6 | Verify the trigger reports itself collapsed | |||||
| 7 | CHECK Property - Equals(CaseFalse) | sfActionMenu | cstActionMenu | false | Prop:Exist | |
| 8 | Verify the menu does not exist until it is opened (it is created dynamically) | |||||
| 9 | Set Value | sfActionMenu | mnuAccountActions | SelectMenu | n/a | Path:Item*=Account Actions~Item*=Change Owner~Item==Assign to Queue#PreScrollToView:true |
| 10 | CHECK Property - Equals(CaseFalse) | sfActionMenu | lblActionOut | Selected action: Assign to Queue | Prop:text | PreScrollToView:true |
| 11 | Verify the chosen action -- Account Actions, Change Owner, Assign to Queue (the nested submenu was created when Change Owner was entered) | |||||
| 12 | CHECK Property - Equals(CaseFalse) | sfActionMenu | btnAccountActions | false | Prop:aria-expanded | PreScrollToView:true |
| 13 | Verify choosing the leaf closed the menu | |||||
| 14 | CHECK Property - Equals(CaseFalse) | sfActionMenu | cstActionMenu | false | Prop:Exist | |
| 15 | Verify the menu was removed from the DOM after the choice | |||||
| 16 | Set Value | sfActionMenu | btnAccountActions | {click} | PreScrollToView:true | |
| 17 | CHECK Property - Equals(CaseFalse) | sfActionMenu | btnAccountActions | true | Prop:aria-expanded | PreScrollToView:true |
| 18 | Verify reopening the menu reports expanded | |||||
| 19 | CHECK Property - Equals(CaseFalse) | sfActionMenu | cstActionMenu | true | Prop:Visible | PreScrollToView:true |
| 20 | Verify the menu is created again and displayed | |||||
| 21 | Set Value | sfActionMenu | mnuAccountActions | SelectMenu | n/a | Path:Item*=Account Actions~Item==Clone#PreScrollToView:true |
| 22 | CHECK Property - Equals(CaseFalse) | sfActionMenu | lblActionOut | Selected action: Clone | Prop:text | PreScrollToView:true |
| 23 | Verify a direct menu item works too -- and the path walk did not toggle the already-open menu closed first | |||||
| 24 | CHECK Property - Equals(CaseFalse) | sfActionMenu | btnAccountActions | false | Prop:aria-expanded | PreScrollToView:true |
| 25 | Verify the menu closed after the direct item | |||||
| 26 | Set Value | sfActionMenu | btnAccountActions | {click} | PreScrollToView:true | |
| 27 | CHECK Property - Equals(CaseFalse) | sfActionMenu | btnAccountActions | true | Prop:aria-expanded | PreScrollToView:true |
| 28 | Verify the menu is open again before dismissing it | |||||
| 29 | Set Value | sfActionMenu | btnAccountActions | {ESC} | PreScrollToView:true | |
| 30 | CHECK Property - Equals(CaseFalse) | sfActionMenu | btnAccountActions | false | Prop:aria-expanded | PreScrollToView:true |
| 31 | Verify pressing Escape closed the menu (trigger reports collapsed) | |||||
| 32 | CHECK Property - Equals(CaseFalse) | sfActionMenu | cstActionMenu | false | Prop:Exist | |
| 33 | Verify Escape removed the menu from the DOM |
READY TO SEE THE EVIDENCE?
Request a DemoSee whether TA STUDIO fits your enterprise applications.
A focused walkthrough grounded in the applications your team tests.
Get in Touch