| Línea 36... |
Línea 36... |
| 36 |
# Check the "asynchronous_restore_task" adhoc task details.
|
36 |
# Check the "asynchronous_restore_task" adhoc task details.
|
| 37 |
And I should see "Ad hoc" in the "\core\task\asynchronous_restore_task" "table_row"
|
37 |
And I should see "Ad hoc" in the "\core\task\asynchronous_restore_task" "table_row"
|
| 38 |
And I should see "2 days" in the "core\task\asynchronous_restore_task" "table_row"
|
38 |
And I should see "2 days" in the "core\task\asynchronous_restore_task" "table_row"
|
| 39 |
And I should see "c69335460f7f" in the "core\task\asynchronous_restore_task" "table_row"
|
39 |
And I should see "c69335460f7f" in the "core\task\asynchronous_restore_task" "table_row"
|
| 40 |
And I should see "1916" in the "core\task\asynchronous_restore_task" "table_row"
|
40 |
And I should see "1916" in the "core\task\asynchronous_restore_task" "table_row"
|
| - |
|
41 |
|
| - |
|
42 |
@javascript
|
| - |
|
43 |
Scenario: If a task with a stored progress bar is running, I should be able to observe the progress.
|
| - |
|
44 |
Given the following config values are set as admin:
|
| - |
|
45 |
| progresspollinterval | 1 |
|
| - |
|
46 |
And the following "tool_task > scheduled tasks" exist:
|
| - |
|
47 |
| classname | seconds | hostname | pid |
|
| - |
|
48 |
| \core\task\delete_unconfirmed_users_task | 120 | c69335460f7f | 1917 |
|
| - |
|
49 |
And the following "stored progress bars" exist:
|
| - |
|
50 |
| idnumber | percent |
|
| - |
|
51 |
| core_task_delete_unconfirmed_users_task | 50.00 |
|
| - |
|
52 |
And I navigate to "Server > Tasks > Tasks running now" in site administration
|
| - |
|
53 |
And I should see "2 mins" in the "Delete unconfirmed users" "table_row"
|
| - |
|
54 |
And I should see "c69335460f7f" in the "Delete unconfirmed users" "table_row"
|
| - |
|
55 |
And I should see "1917" in the "Delete unconfirmed users" "table_row"
|
| - |
|
56 |
And I should see "50.0%" in the "Delete unconfirmed users" "table_row"
|
| - |
|
57 |
When I set the stored progress bar "core_task_delete_unconfirmed_users_task" to "75.00"
|
| - |
|
58 |
# Wait for the progress polling.
|
| - |
|
59 |
And I wait "1" seconds
|
| - |
|
60 |
Then I should not see "50.0%" in the "Delete unconfirmed users" "table_row"
|
| - |
|
61 |
And I should see "75.0%" in the "Delete unconfirmed users" "table_row"
|