Skip to content

Commit

Permalink
Fix flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
joshhanley committed Jan 18, 2024
1 parent 9533c93 commit 1f856af
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/Browser/AutoSelectTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public function render()
{
return <<< 'HTML'
<div>
<p dusk="some-element-other-than-the-input">some-element-other-than-the-input</p>
<x-autocomplete auto-select wire:model.live="selected">
<x-autocomplete-input wire:model.live="input" dusk="input" />
Expand Down Expand Up @@ -195,7 +196,7 @@ public function on_autoselect_refocus_first_option_selected()
->assertHasClass('@result-0', 'bg-blue-500')
->assertClassMissing('@result-1', 'bg-blue-500')
->assertClassMissing('@result-2', 'bg-blue-500')
->clickAtXPath('//body')
->click('@some-element-other-than-the-input')
->click('@input')
->assertHasClass('@result-0', 'bg-blue-500')
->assertClassMissing('@result-1', 'bg-blue-500')
Expand Down

0 comments on commit 1f856af

Please sign in to comment.