Skip to content

Commit

Permalink
update vselect tests for new location of .vs__dropdown-menu
Browse files Browse the repository at this point in the history
  • Loading branch information
13twelve committed Jan 7, 2025
1 parent 2a5f93c commit f0c736b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DuskServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public function boot(): void
$element->click('.vs__search');
$this->waitFor('.vs__dropdown-menu');

$this->clickAtXPath('//.vs__dropdown-menu li[contains(.,"' . $optionLabel . '")]');
$this->clickAtXPath('//ul[contains(@class,"vs__dropdown-menu")]//li[contains(text(),"' . $optionLabel . '")]');

$this->assertVselectHasOptionSelected($wrapperClass, $optionLabel);
});
Expand Down

0 comments on commit f0c736b

Please sign in to comment.