Calender test
This commit is contained in:
@@ -121,6 +121,18 @@ it('opens only the popover on a tap, and the dialog from its button', function (
|
|||||||
->assertScript($open, false);
|
->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 () {
|
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
|
// The bar (today – today + 2) is grabbed at its middle day, so dropping it
|
||||||
// on today + 4 moves it three days later.
|
// on today + 4 moves it three days later.
|
||||||
|
|||||||
Reference in New Issue
Block a user