Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone committed May 7, 2024
1 parent 4f2f8fd commit 960714f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
6 changes: 3 additions & 3 deletions tests/Browser/GlobalSearchTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ public function test_it_can_use_control_click_to_open_on_new_tab()

$browser->within('@global-search-component', function ($browser) {
$browser->click('@global-search')
->elsewhereWhenAvailable('@global-search-results', function ($browser) {
$browser->click('button[dusk="users 0"]');
});
->elsewhereWhenAvailable('@global-search-results', function ($browser) {
$browser->click('button[dusk="users 0"]');
});
})
->waitForLocation('/nova/resources/users/1')
->on(new Detail('users', '1'));
Expand Down
12 changes: 6 additions & 6 deletions tests/Browser/ReplicateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ public function test_can_replicate_a_resource()
$browser->whenAvailable('@title', function ($browser) {
$browser->type('', 'Replicated Post');
})
->whenAvailable(new SelectControlComponent('users-select'), function ($browser) use ($post) {
$browser->select('', $post->user_id);
});
->whenAvailable(new SelectControlComponent('users-select'), function ($browser) use ($post) {
$browser->select('', $post->user_id);
});
})
->create()
->waitForText('The user post was created!');
Expand Down Expand Up @@ -71,9 +71,9 @@ public function test_can_replicate_a_resource_without_deletable_field()
$browser->whenAvailable('@title', function ($browser) {
$browser->type('', 'Replicated Post 2');
})
->whenAvailable(new SelectControlComponent('users-select'), function ($browser) use ($post) {
$browser->select('', $post->user_id);
});
->whenAvailable(new SelectControlComponent('users-select'), function ($browser) use ($post) {
$browser->select('', $post->user_id);
});
})
->create()
->waitForText('The user post was created!');
Expand Down
1 change: 0 additions & 1 deletion tests/DuskTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ protected function whileIndexQueryAscOrder(callable $callback)
* Define application states.
*
* @param array|string $states
* @param \Closure(\Laravel\Dusk\Browser):void $callback
* @return $this
*/
protected function defineApplicationStates($states)
Expand Down

0 comments on commit 960714f

Please sign in to comment.