From 664042811047b318f3ddde012bbcc069a47153f3 Mon Sep 17 00:00:00 2001 From: Kevin Wenger Date: Wed, 21 Feb 2024 09:31:29 +0100 Subject: [PATCH] fix drupal 10.1+ testing --- tests/src/Functional/UiFieldTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/src/Functional/UiFieldTest.php b/tests/src/Functional/UiFieldTest.php index cd95b4c..9a7d70a 100644 --- a/tests/src/Functional/UiFieldTest.php +++ b/tests/src/Functional/UiFieldTest.php @@ -97,8 +97,8 @@ public function testAddField() { $this->assertSession()->statusCodeEquals(200); // Add the Template Whisperer field. - // Since Drupal 10.1.0 the button "add field" text has been changed. - if (version_compare(\Drupal::VERSION, '10.2.0', '<')) { + // Since Drupal 10.1 the button "add field" text has been changed. + if (version_compare(\Drupal::VERSION, '10.1', '>=')) { $this->clickLink('Create a new field'); } else {