Skip to content

Commit

Permalink
fix tests for Drupal 10.3 since changes on taxonomy form supporting v…
Browse files Browse the repository at this point in the history
…ertical tabs
  • Loading branch information
WengerK committed Apr 25, 2024
1 parent c8c32d6 commit 65449bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- replace usage of user_role_names() deprecated in 10.2 and removed in 11.0
- fix tests for Drupal 10.3 since twig template debug indicator of overiden themes changed from ascii to emojis
- fix tests for Drupal 10.3 since changes on field creation experience
- fix tests for Drupal 10.3 since changes on taxonomy form supporting vertical tabs

## [4.0.1] - 2024-03-01
### Changed
Expand Down
4 changes: 2 additions & 2 deletions tests/src/Functional/WidgetFormElementTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ public function testWhenNotPossibleStayInPlace() {
// Access the taxonomy term edit page.
$this->drupalGet('taxonomy/term/' . $this->tag->id() . '/edit');

// Since Drupal 11.0 Taxonomy term form has been changed to support tabs.
if (version_compare(\Drupal::VERSION, '11', '>=')) {
// Since Drupal 10.3 Taxonomy term form has been changed to support tabs.
if (version_compare(\Drupal::VERSION, '10.3', '>=')) {
// Asserts the field is located on the Advanced Group - when possible.
$this->assertSession()->elementExists('css', 'div[data-vertical-tabs-panes] #edit-field-template-whisperer-2-0 select');
}
Expand Down

0 comments on commit 65449bf

Please sign in to comment.