From 90c14b843abb9450c01f92dea92bebfa7448f976 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Fri, 6 May 2022 15:35:04 -0700 Subject: [PATCH] (E2E) `testErrorChrome` - Update to work with current wp-demo build This test was added during 5.50.alpha (#23257, #22805). It's purpose is to assert that the page-chrome/site-wide-template is present. It appears that the markup from WordPress has changed slightly. (It may be that I originally tested against an older version of WP.) In any event, this relaxes the test so that it also passes on a newer WP build. --- tests/phpunit/E2E/Core/ErrorTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/E2E/Core/ErrorTest.php b/tests/phpunit/E2E/Core/ErrorTest.php index 90f7c4edda..a5b9589521 100644 --- a/tests/phpunit/E2E/Core/ErrorTest.php +++ b/tests/phpunit/E2E/Core/ErrorTest.php @@ -97,7 +97,7 @@ class ErrorTest extends \CiviEndToEndTestCase { 'Backdrop' => '/body class=\".*not-logged-in/', 'Drupal' => '/body class=\".*not-logged-in/', 'Drupal8' => '/body class=\".*not-logged-in/', - 'WordPress' => '/ role=.navigation./', + 'WordPress' => '/( role=.navigation.| class=.site-header.)/', ]; if (!isset($patterns[CIVICRM_UF])) { $this->markTestIncomplete('testErrorChrome() cannot check for chrome on ' . CIVICRM_UF); -- 2.25.1