Async Account Lookup
Panel 8 of the Lightning-Pattern POC page (mockapps/salesforce): a Salesforce-style record lookup -- a role=textbox input inside a role=combobox wrapper whose aria-controls points at a listbox with a GENERATED id; matching business records appear ASYNCHRONOUSLY (500ms) after typing, and selecting one rebuilds the whole widget with new ids. POC: type Ac, wait for Acme Corporation, select it and verify the selected account value.
| # | Action | Window / Method | Object | Value | Aux 1 | Aux 2 |
|---|---|---|---|---|---|---|
| 1 | Call User Method | fLaunchWebApplication | autSalesforce | <NONE> | ||
| 2 | Enter comment for Logs | Comment Name=Async Account Lookup | Brief Description=Type Ac, wait for Acme Corporation, select it and verify the selected account value | Expected Result=Async results contain only Acme Corporation; selecting it fills the rebuilt lookup with Acme Corporation and closes the results | ||
| 3 | CHECK Property - Equals(CaseFalse) | sfAsyncLookup | edtAccountLookup | Search Accounts... | Prop:placeholder | |
| 4 | Verify the Account lookup is present and empty, showing its search prompt | |||||
| 5 | CHECK Property - Equals(CaseFalse) | sfAsyncLookup | edtAccountLookup | 1 | Prop:ItemCount | InputValue:Ac |
| 6 | Verify typing Ac makes the async results appear with exactly one matching business record | |||||
| 7 | CHECK Property - Equals(CaseFalse) | sfAsyncLookup | edtAccountLookup | Acme Corporation | Prop:Items | |
| 8 | Verify the one async result is Acme Corporation | |||||
| 9 | Set Value | sfAsyncLookup | edtAccountLookup | Acme Corporation | InputValue:Ac | |
| 10 | CHECK Value - Equals(CaseFalse) | sfAsyncLookup | edtAccountLookup | Acme Corporation | ||
| 11 | Verify the selected account value is Acme Corporation -- read from the REBUILT lookup (selection recreates the widget with new generated ids) | |||||
| 12 | CHECK Property - Equals(CaseFalse) | sfAsyncLookup | lstAccountLookup | false | Prop:Visible | |
| 13 | Verify the async results listbox is closed after the selection |
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