Skip to main content

Validate Toast Messages in Scenario Editor

Validate Toast Messages in Scenario Editor

ToToast holdmessages are often temporary, so Scenario Editor tests should wait for them intentionally and capture their text before they disappear.

  • Use a conditional wait for the toast to appear.
  • Capture only the message _eval("hold_toasterneeded =for setInterval(function()the {validation.
  • Avoid $('.toast-message').mouseenter()fixed })")sleeps

    Tounless freetiming 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 the toast container or message _eval("clearInterval(hold_toaster);$('.toast-message').mouseleave()")text

    Note:to “toast-message“appear.

  3. Validate isthe aexpected classmessage name.or Ifstatus.
  4. Capture output if the toast messagedoes isnot gettingappear disappearedor afterdisappears clicktoo some element of toast message then no need to use a step to free toast message

    quickly.

    Last updated: JuneSeptember 26,20, 20232026

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