Summer Sale! All accounts are 50% off this week.

bwrigley's avatar

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?

0 likes
0 replies

Please or to participate in this conversation.