Skip to content

Pest testing Flux::toast #427

Closed Answered by codeldev
codeldev asked this question in Feature Requests
Oct 16, 2024 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

For anyone else struggling with this, after trial & error, this worked for me:

->assertDispatched('toast-show',
    duration: 3000,
    slots   : [
        'text' => trans('config.branding.logo.uploaded'),
    ],
    dataset : [
        'variant'   => 'success',
        'position' => 'top right',
    ]
)

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by codeldev
Comment options

You must be logged in to vote
2 replies
@raz-iacob
Comment options

@raz-iacob
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants