Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .circleci/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ ahoy cli "./vendor/bin/behat --strict --colors --tags="~@skipped" tests"
ahoy cli "drush en tide_webform -y"
ahoy cli "./vendor/bin/behat --strict --colors --tags="~@skipped" modules/tide_webform"
ahoy cli "drush en tide_media -y"
ahoy cli "drush en tide_media_secure_files -y"
ahoy cli "drush en tide_media_file_overwrite -y"
ahoy cli "./vendor/bin/behat --strict --colors --tags="~@skipped" modules/tide_media"
ahoy cli "drush en tide_event -y"
ahoy cli "./vendor/bin/behat --strict --colors --tags="~@skipped" modules/tide_event"
Expand Down
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,9 @@
},
"drupal/views_bulk_operations": {
"getSubscribedEvents() fails on `drush updb` due to autoloader negative-cache (missing class_exists() guard) - https://www.drupal.org/project/views_bulk_operations/issues/3589629#comment-16583537": "https://www.drupal.org/files/issues/2026-05-12/views_bulk_operations-class-exists-guard-3589629-2.patch"
},
"drupal/entity_embed": {
"Entity embed dialog can no longer use custom data- attributes in CKEditor 5 - https://www.drupal.org/project/entity_embed/issues/3410132": "https://www.drupal.org/files/issues/2026-06-15/entity-embed-allow-custom-data-attrs-javascript.patch"
}
},
"installer-paths": {
Expand Down
23 changes: 23 additions & 0 deletions modules/tide_media/tests/behat/features/media_browser.feature
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,26 @@ Feature: Media browser
And I wait for AJAX to finish
Then I should see the text "Select media item to embed"
And I press the "Close" button

@api @javascript
Scenario: Media Browser allows embed with custom data attribute
Given I am logged in as a user with the "create test content, access media overview, access tide_media_browser entity browser pages, access tide_media_browser_iframe entity browser pages, use text format rich_text" permission
And media document entity:
| name | mid |
| Demo Document | 888666 |

When I visit "/node/add/test"
Then I press "Media"
And I wait for AJAX to finish
Then I should see the text "Select media item to embed"

When I click on iFramed element ".views-field-entity-browser-select .form-checkbox" within "entity_browser_iframe_tide_media_browser_iframe"
Then I click on iFramed element "#edit-submit" within "entity_browser_iframe_tide_media_browser_iframe"
And I wait for AJAX to finish
Then I should see the text "Embed media item"

When I check "Display last update date"
Then I click on the element ".ui-dialog-buttonpane .button--primary"
And I wait for AJAX to finish
And I wait for 1 seconds
Then I should see a ".embedded-entity[data-show-last-updated='1']" element
122 changes: 0 additions & 122 deletions patches/entity_embed/3396133-ckeditor-5-interface_26.patch

This file was deleted.

24 changes: 24 additions & 0 deletions tests/behat/bootstrap/TideCommonTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,30 @@ public function clickOnModalElement(string $selector) {
$element->click();
}

/**
* @Then /^I click on iFramed element "([^"]*)" within "([^"]*)"$/
*
* @param string $selector
* A CSS selector.
* @param string $name
* An iFrame name.
*/
public function clickOnIframedElement(string $selector, string $name) {
$this->getSession()->switchToIFrame($name);

$page = $this->getSession()->getPage();
$element = $page->find('css', $selector);

if ($element === NULL) {
throw new \Exception('The element "' . $selector . '" was not found in iframe.');
}

$element->focus();
$element->click();

$this->getSession()->switchToIFrame();
}

/**
* @Then /^I click on the detail "([^"]*)"$/
* @Then /^I click on the detail with text "([^"]*)"$/
Expand Down
Loading