Skip to main content

How to hold and free toast message

Validate

To Toasthold Messagestoast inmessage Scenario_eval("hold_toaster Editor= setInterval(function() { $('.toast-message').mouseenter() })")

ToastTo messagesfree aretoast oftenmessage temporary, so Scenario Editor tests should wait for them intentionally and capture their text before they disappear._eval("clearInterval(hold_toaster);$('.toast-message').mouseleave()")

Note: guidance“toast-message“

  • Useis a conditionalclass waitname. for theIf toast tomessage appear.
  • Captureis onlygetting thedisappeared after click some element of toast message neededthen forno theneed validation.
  • Avoidto fixeduse sleepsa unlessstep timingto itself is the test objective.
  • Handle success, warning, and error toasts as distinct outcomes.

Validation workflow

  1. Trigger the application action that produces the toast.
  2. Wait for thefree toast containermessage or message
    text to appear.
  3. Validate the expected message or status.
  4. Capture output if the toast does not appear or disappears too quickly.

Last updated: SeptemberJune 20,26, 20262023

If you have any feedback on this topic, please contact us at documentation@appvance.ai