Modal, Backdrop & Toast

Panel 9+11 of the Lightning-Pattern POC page (mockapps/salesforce): a modal record-creation flow with a backdrop, followed by a TRANSIENT success toast (2.5s) that is removed from the DOM on its own. POC: open New Contact, enter values, Save, verify the modal closes and the success toast appears then disappears. The Save click uses PostWaitTime:0Sec -- the default click waits 2s after clicking, which would eat most of the toast lifetime.

#ActionWindow / MethodObjectValueAux 1Aux 2
1Call User MethodfLaunchWebApplicationautSalesforce<NONE>
2Enter comment for LogsComment Name=Modal / Backdrop + Transient ToastBrief Description=Open New Contact, enter values, Save, verify the modal closes and the success toast appears then disappearsExpected Result=Modal and backdrop exist only while open; values accepted; after Save both are gone; the toast appears with the success text and then removes itself
3CHECK Property - Equals(CaseFalse)sfModalToastwinModalBoxfalseProp:Exist
4Verify no modal exists before it is opened
5Set ValuesfModalToastbtnNewContact{click}
6CHECK Property - Equals(CaseFalse)sfModalToastwinModalBoxtrueProp:Visible
7Verify the New Contact modal opened
8CHECK Property - Equals(CaseFalse)sfModalToastwinModalBoxtrueProp:aria-modal
9Verify the dialog declares itself modal (aria-modal)
10CHECK Property - Equals(CaseFalse)sfModalToastdivBackdroptrueProp:Visible
11Verify the backdrop is showing behind the modal
12Set ValuesfModalToastedtFirstNameAlex
13Set ValuesfModalToastedtLastNameMorgan
14CHECK Value - Equals(CaseFalse)sfModalToastedtFirstNameAlex
15Verify First Name was entered inside the modal
16CHECK Value - Equals(CaseFalse)sfModalToastedtLastNameMorgan
17Verify Last Name was entered inside the modal
18Set ValuesfModalToastbtnSave{click}PostWaitTime:0Sec
19CHECK Property - Equals(CaseFalse)sfModalToastlblToastContact was createdProp:text
20Verify the success toast appeared with the success message
21CHECK Property - Equals(CaseFalse)sfModalToastwinModalBoxfalseProp:Exist
22Verify Save closed the modal
23CHECK Property - Equals(CaseFalse)sfModalToastdivBackdropfalseProp:Exist
24Verify the backdrop was removed with the modal
25CHECK Property - Equals(CaseFalse)sfModalToastlblToastfalseProp:Exist
26Verify the transient toast disappeared on its own (polled until gone, not a fixed sleep)
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