diff --git a/tests/Browser/TaskCalendarAccessibilityTest.php b/tests/Browser/TaskCalendarAccessibilityTest.php index f9c9b8b..28a5b86 100644 --- a/tests/Browser/TaskCalendarAccessibilityTest.php +++ b/tests/Browser/TaskCalendarAccessibilityTest.php @@ -121,6 +121,18 @@ it('opens only the popover on a tap, and the dialog from its button', function ( ->assertScript($open, false); }); +it('opens the dialog from the popover button with the mouse', function () { + $key = $this->task->id.'-'.$this->user->id; + + visit(route('jobs.calendar')) + ->on()->desktop() + ->hover('#bar-'.$key) + ->hover('#bar-info-'.$key.'-open') + ->click('#bar-info-'.$key.'-open') + ->assertSee('Tehtävän aikataulu') + ->assertScript("document.getElementById('task-schedule-dialog').open", true); +}); + it('moves a task to another person by dragging its bar', function () { // The bar (today – today + 2) is grabbed at its middle day, so dropping it // on today + 4 moves it three days later.