Skip to content
Snippets Groups Projects

Issue #3248928: Redirect or provide link to apply form for user who started update if accessing start form

Merged Issue #3248928: Redirect or provide link to apply form for user who started update if accessing start form
All threads resolved!
All threads resolved!
1 file
+ 6
12
Compare changes
  • Side-by-side
  • Inline
@@ -256,16 +256,16 @@ class UpdaterFormTest extends AutomaticUpdatesFunctionalTestBase {
$this->assertUpdateReady();
$assert_session->buttonExists('Continue');
// Return to the start page.
// If we try to return to the start page, we should be redirected back to
// the confirmation page.
$this->drupalGet('/admin/modules/automatic-update');
$assert_session->pageTextContainsOnce('Cannot begin an update because another Composer operation is currently in progress.');
$assert_session->buttonNotExists('Update');
$this->assertUpdateReady();
// Delete the existing update.
$page->pressButton('Delete existing update');
$assert_session->pageTextContains('Staged update deleted');
$page->pressButton('Cancel update');
$assert_session->addressEquals('/admin/reports/updates/automatic-update');
$assert_session->pageTextContains('The update was successfully cancelled.');
$assert_session->pageTextNotContains('Cannot begin an update because another Composer operation is currently in progress.');
// Ensure we can start another update after deleting the existing one.
$page->pressButton('Update');
$this->checkForMetaRefresh();
@@ -274,12 +274,6 @@ class UpdaterFormTest extends AutomaticUpdatesFunctionalTestBase {
$this->assertUpdateReady();
$this->assertUpdateStagedTimes(2);
$assert_session->buttonExists('Continue');
// Cancel the update, then ensure that we are bounced back to the start
// page, and that it will allow us to begin the update anew.
$page->pressButton('Cancel update');
$assert_session->addressEquals('/admin/reports/updates/automatic-update');
$assert_session->pageTextContains('The update was successfully cancelled.');
$assert_session->buttonExists('Update');
}
/**
Loading