Skip to content

Commit

Permalink
fix drupal 10.1+ testing
Browse files Browse the repository at this point in the history
  • Loading branch information
WengerK committed Feb 21, 2024
1 parent 0b72d1e commit 6640428
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/src/Functional/UiFieldTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 6640428

Please sign in to comment.