Skip to content
Snippets Groups Projects
Commit b200582f authored by catch's avatar catch
Browse files

Issue #3463594 by alexpott: ImageAdminStylesTest::testAjaxEnabledEffectForm()...

Issue #3463594 by alexpott: ImageAdminStylesTest::testAjaxEnabledEffectForm() fails because statusMessageExists() does not wait

(cherry picked from commit 6a0c12a6)
parent 2664526b
No related branches found
No related tags found
Loading
Pipeline #235942 passed with warnings
Pipeline: drupal

#235954

    Pipeline: drupal

    #235947

      ......@@ -726,4 +726,25 @@ private function buildJavascriptStatusMessageSelector(?string $message = NULL, ?
      return $this->buildStatusMessageSelector($message, $type) . ' | ' . $js_selector;
      }
      /**
      * {@inheritdoc}
      */
      public function statusMessageContains(string $message, ?string $type = NULL): void {
      $selector = $this->buildStatusMessageSelector($message, $type);
      $this->waitForElement('xpath', $selector);
      parent::statusMessageContains($message, $type);
      }
      /**
      * {@inheritdoc}
      */
      public function statusMessageNotContains(string $message, ?string $type = NULL): void {
      $selector = $this->buildStatusMessageSelector($message, $type);
      // Wait for a second for the message to not exist.
      $this->waitForHelper(1000, function (Element $page) use ($selector) {
      return !$page->find('xpath', $selector);
      });
      parent::statusMessageNotContains($message, $type);
      }
      }
      0% Loading or .
      You are about to add 0 people to the discussion. Proceed with caution.
      Finish editing this message first!
      Please register or to comment