2 declare(strict_types = 1);
31 $I->useExistingSession(
'admin');
32 $I->see(
'Scheduler',
'#system_txschedulerM1');
33 $I->click(
'Scheduler',
'#system_txschedulerM1');
34 $I->switchToContentFrame();
42 $I->see(
'No tasks defined yet');
43 $I->click(
'//a[contains(@title, "Add task")]',
'.module-docheader');
44 $I->waitForElementNotVisible(
'#task_SystemStatusUpdateNotificationEmail');
45 $I->selectOption(
'#task_class',
'System Status Update');
46 $I->seeElement(
'#task_SystemStatusUpdateNotificationEmail');
47 $I->selectOption(
'#task_type',
'Single');
48 $I->fillField(
'#task_SystemStatusUpdateNotificationEmail',
'test@local.typo3.org');
49 $I->click(
'button.dropdown-toggle',
'.module-docheader');
50 $I->wantTo(
'Click "Save and close"');
51 $I->click(
"//a[contains(@data-value,'saveclose')]");
52 $I->waitForText(
'The task was added successfully.');
62 $I->click(
'a[data-original-title="Run task"]');
63 $I->waitForText(
'Executed: System Status Update');
64 $I->seeElement(
'.tx_scheduler_mod1 .disabled');
74 $I->click(
'//a[contains(@data-original-title, "Edit")]');
75 $I->waitForText(
'Edit task');
76 $I->seeInField(
'#task_SystemStatusUpdateNotificationEmail',
'test@local.typo3.org');
77 $I->fillField(
'#task_SystemStatusUpdateNotificationEmail',
'foo@local.typo3.org');
78 $I->click(
'button.dropdown-toggle',
'.module-docheader');
79 $I->wantTo(
'Click "Save and close"');
80 $I->click(
"//a[contains(@data-value,'saveclose')]");
81 $I->waitForText(
'The task was updated successfully.');
90 $I->wantTo(
'See a enable button for a task');
91 $I->click(
'//a[contains(@data-original-title, "Enable")]',
'#tx_scheduler_form');
92 $I->dontSeeElement(
'.tx_scheduler_mod1 .disabled');
93 $I->dontSee(
'disabled');
94 $I->wantTo(
'See a disable button for a task');
95 $I->click(
'//a[contains(@data-original-title, "Disable")]');
96 $I->waitForElementVisible(
'div.tx_scheduler_mod1');
97 $I->seeElement(
'.tx_scheduler_mod1 .disabled');
108 $I->wantTo(
'See a delete button for a task');
109 $I->seeElement(
'//a[contains(@data-original-title, "Delete")]');
110 $I->click(
'//a[contains(@data-original-title, "Delete")]');
111 $I->wantTo(
'Cancel the delete dialog');
114 $modalDialog->canSeeDialog();
115 $I->click(
'Cancel', ModalDialog::$openedModalButtonContainerSelector);
116 $I->waitForElementNotVisible(ModalDialog::$openedModalSelector, 30);
118 $I->switchToContentFrame();
119 $I->wantTo(
'Still see and can click the Delete button as the deletion has been canceled');
120 $I->click(
'//a[contains(@data-original-title, "Delete")]');
121 $modalDialog->clickButtonInDialog(
'OK');
122 $I->switchToContentFrame();
123 $I->see(
'The task was successfully deleted.');
124 $I->see(
'No tasks defined yet');
132 $I->selectOption(
'select[name=SchedulerJumpMenu]',
'Setup check');
133 $I->waitForElementVisible(
'div.tx_scheduler_mod1');
134 $I->see(
'Setup check');
135 $I->see(
'This screen checks if the requisites for running the Scheduler as a cron job are fulfilled');
143 $I->selectOption(
'select[name=SchedulerJumpMenu]',
'Information');
144 $I->waitForElementVisible(
'div.tx_scheduler_mod1');
145 $I->see(
'Information');
146 $I->canSeeNumberOfElements(
'.tx_scheduler_mod1 table tbody tr', [1, 10000]);
154 $I->amGoingTo(
'create a task when none exists yet');
155 $I->canSee(
'Scheduled tasks',
'h1');
158 $I->amGoingTo(
'test the new task group button on task edit view');
159 $I->click(
'#DataTables_Table_0 > tbody > tr > td.nowrap > span > div:nth-child(1) > a:nth-child(1)');
160 $I->waitForElementNotVisible(
'#t3js-ui-block');
161 $I->canSee(
'Edit task',
'h2');
162 $I->click(
'#task_group_row > div > div > div > div > a');
163 $I->waitForElementNotVisible(
'#t3js-ui-block');
164 $I->canSee(
'Create new Scheduler task group on root level',
'h1');
166 $I->fillField(
'//input[contains(@data-formengine-input-name, "data[tx_scheduler_task_group]") and contains(@data-formengine-input-name, "[groupName]")]',
'new task group');
167 $I->click(
'button[name="_savedok"]');
169 $I->waitForElementNotVisible(
'#t3js-ui-block');
170 $I->click(
'a[title="Close"]');
171 $I->waitForElementVisible(
'#tx_scheduler_form');
173 $I->selectOption(
'select#task_class',
'new task group');
174 $I->click(
'button[value="save"]');
175 $I->waitForElementNotVisible(
'#t3js-ui-block');
176 $I->click(
'a[title="Cancel"]');
177 $I->waitForElementVisible(
'div.tx_scheduler_mod1');
179 $I->canSee(
'new task group',
'.taskGroup');