From d143bfcde0db6dbf24f0693c032a8cd2df575f92 Mon Sep 17 00:00:00 2001
From: phenaproxima <phenaproxima@205645.no-reply.drupal.org>
Date: Thu, 16 Sep 2021 17:17:02 +0000
Subject: [PATCH] Issue #3233124 by phenaproxima, tedbow, rkoller: Test that
 update status is cleared after an update is applied

---
 tests/src/Build/CoreUpdateTest.php | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/tests/src/Build/CoreUpdateTest.php b/tests/src/Build/CoreUpdateTest.php
index 844addd891..3a7f02c459 100644
--- a/tests/src/Build/CoreUpdateTest.php
+++ b/tests/src/Build/CoreUpdateTest.php
@@ -134,6 +134,12 @@ class CoreUpdateTest extends UpdateTestBase {
    * Asserts that Drupal core was successfully updated.
    */
   private function assertUpdateSuccessful(): void {
+    // The update form should not have any available updates.
+    // @todo Figure out why this assertion fails when the batch processor
+    //   redirects directly to the update form, instead of update.status, when
+    //   updating via the UI.
+    $this->visit('/admin/modules/automatic-update');
+    $this->getMink()->assertSession()->pageTextContains('No update available');
     // The status page should report that we're running Drupal 9.8.1.
     $this->assertCoreVersion('9.8.1');
     // The fake placeholder text from ::getConfigurationForUpdate() should be
-- 
GitLab