Calender test

This commit is contained in:
2026-11-27 09:46:09 +02:00
parent 3207d0064a
commit acf87aa3cd
@@ -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.