We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
assertSessionHas()
1.3.2
10.23
8.2
No response
The assertSessionHas() does not work with flash messages.
<?php use Livewire\Volt\Component; new class extends Component { public function save() { session()->flash('message', 'ops!'); } }; ?> <div> volt abc </div>
Volt::test('mycomponent') ->call('save') ->assertSessionHas('message', 'ops!');
The text was updated successfully, but these errors were encountered:
does this work for you with other session data? or is it only flash data?
Sorry, something went wrong.
@inmanturbo
flash() does not work. session([x => y]) works.
flash()
session([x => y])
But the issue here is about testing flash() messages.
Can you double check if this issue also happens when using regular Livewire components? If not, please re-open this issue.
nunomaduro
No branches or pull requests
Volt Version
1.3.2
Laravel Version
10.23
PHP Version
8.2
Database Driver & Version
No response
Description
The
assertSessionHas()
does not work with flash messages.Steps To Reproduce
Volt component
Test
Fail
The text was updated successfully, but these errors were encountered: