LetsFlow
  • Introduction
  • Tutorial
    • The basics
    • A handshake
    • A conversation
    • A proper introduction
    • Group meeting
    • Quote
  • Cookbook
  • ENGINE
    • Installation
    • Authentication
    • API
    • Services
      • Configuration
      • Messaging
        • ZeroMQ
        • AMQP 0-9-1
        • Webhook
      • Engine service
  • Integration
    • Frontend
      • React
      • Angular
      • Vue
      • Svelte
    • Backend
  • Reference
    • Scenario
      • Actor
      • Action
        • Update instruction
      • State
        • Transition
          • Log
        • Notify
      • Data function
    • Schema
    • Process
      • Current state
      • Previous log
      • Prediction
      • Events
        • Instantiate event
        • Action event
        • Timeout event
  • Libraries
    • Core library
    • JMESPath
    • Test suite
      • Given
      • When
      • Then
        • Assert state
        • Assert actor
        • Assert variable
        • Assert service
        • Assert event
      • Customize
  • Advanced topics
    • Deep integration
    • Decentralized workflows
    • Custom JMESPath functions
    • Custom YAML tags
Powered by GitBook
On this page
  • Skipped event
  • Error message
  • Successful event
  • No skipped events
  • Timeout event

Was this helpful?

  1. Libraries
  2. Test suite
  3. Then

Assert event

Skipped event

Assert that an event has been skipped. In other words, ensure that the previous action is not allowed.

Then the last event is skipped
Then the last event of the "main" process is skipped

Error message

Use with to specify the expected error message.

Then the last event is skipped with "Response is invalid: data must have required property 'email'"
Then the last event is skipped with:
  """
  Response is invalid: data must have required property 'email'
  """

The last event may have multiple error messages. It needs to include the expected error message.

Successful event

Assert that the last event has not been skipped; the last action was applied successfully.

Then the last event is not skipped
Then the last event of the "main" process is not skipped

No skipped events

Assert that the event chain doesn't contain any skipped events; all the actions have been applied successfully.

Then nothing is skipped
Then nothing is skipped from the "main" process

Timeout event

Assert that the previous state change was caused by a timeout.

When 24 hours pass
Then the last event is a timeout
Then the last event in the "main" process is a timeout
PreviousAssert serviceNextCustomize

Last updated 22 days ago

Was this helpful?