Mar 6, 2024
0
Level 5
Dusk : Call to undefined method [assertAttributeDoesntContain]
I'm trying to use the assertAttributeDoesntContain() method as documented but getting the error that this doesn't exist but I definitely have 10.12.0 installed.
https://laravel.com/docs/10.x/dusk#assert-attribute-doesnt-contain
$browser->assertAttributeContains('@search-results > li:nth-child(1)', 'class', 'bg-gray-100');
$browser->assertAttributeDoesntContain('@search-results > li:nth-child(2)', 'class', 'bg-gray-100');
assertAttributeContains() passes but assertAttributeDoesntContain() doesn't exist
Am I being dumb?
Please or to participate in this conversation.