From 2c1b77270b6537b0e32761e310e225a295f52567 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Fri, 6 May 2022 16:35:11 -0700 Subject: [PATCH] (E2E) testErrorChrome - Revise page-chrome check for all Drupal-style UFs --- tests/phpunit/E2E/Core/ErrorTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/phpunit/E2E/Core/ErrorTest.php b/tests/phpunit/E2E/Core/ErrorTest.php index a5b9589521..5c8d376658 100644 --- a/tests/phpunit/E2E/Core/ErrorTest.php +++ b/tests/phpunit/E2E/Core/ErrorTest.php @@ -94,9 +94,9 @@ class ErrorTest extends \CiviEndToEndTestCase { public function testErrorChrome(string $url, string $errorType) { $this->skipIfNonCompliant(__FUNCTION__, $errorType); $patterns = [ - 'Backdrop' => '/body class=\".*not-logged-in/', - 'Drupal' => '/body class=\".*not-logged-in/', - 'Drupal8' => '/body class=\".*not-logged-in/', + 'Backdrop' => '/href=.*user\/(login|register)/', + 'Drupal' => '/href=.*user\/register/', + 'Drupal8' => '/href=.*user\/(login|register)/', 'WordPress' => '/( role=.navigation.| class=.site-header.)/', ]; if (!isset($patterns[CIVICRM_UF])) { -- 2.25.1