diff --git a/config/sync/core.entity_view_display.rdf_entity.asset_distribution.view_mode_tile.yml b/config/sync/core.entity_view_display.rdf_entity.asset_distribution.view_mode_tile.yml index 8a4caca242..456e91b650 100644 --- a/config/sync/core.entity_view_display.rdf_entity.asset_distribution.view_mode_tile.yml +++ b/config/sync/core.entity_view_display.rdf_entity.asset_distribution.view_mode_tile.yml @@ -34,7 +34,7 @@ content: settings: hosted_files_title: Download remote_files_title: External - show_remote_files: false + show_remote_files: true third_party_settings: template_suggestion: template_suggestion: no_wrappers diff --git a/tests/features/asset_distribution/track_download.feature b/tests/features/asset_distribution/track_download.feature index 6f4cdce495..bc77c3c137 100644 --- a/tests/features/asset_distribution/track_download.feature +++ b/tests/features/asset_distribution/track_download.feature @@ -106,6 +106,10 @@ Feature: Asset distribution editing. | Marianne Sherburne | marianne.herburne@example.com | OpenBSD images | | Anonymous (not verified) | trackme@example.com | OpenBSD images | + # Sub test to assert that distribution tiles show the external button. + When I go to the "Winter of 95" release + Then I should see the link "External" in the "i386" tile + Scenario: Tests the CSV download. Given users: | Username | E-mail | @@ -140,4 +144,4 @@ Feature: Asset distribution editing. | ,user1,user1@example.com,text.pdf,"Distribution 1", | | ,user2,user2@example.com,test.zip,"Distribution 2", | | ,"Anonymous (not verified)",anon@example.com,test1.zip,"Distribution 3", | - | ,user1,user1@example.com,test1.zip,"Distribution 3", | \ No newline at end of file + | ,user1,user1@example.com,test1.zip,"Distribution 3", | diff --git a/tests/src/Context/JoinupContext.php b/tests/src/Context/JoinupContext.php index 0db4c99bd4..93ac7a7571 100644 --- a/tests/src/Context/JoinupContext.php +++ b/tests/src/Context/JoinupContext.php @@ -1201,6 +1201,26 @@ public function assertOrderedTilesPresent(TableNode $titles_table) { Assert::assertEquals($headings_expected, $headings_in_page, 'The expected tiles were not found or were not in the proper order.'); } + /** + * Asserts that a certain link is present in a tile. + * + * @param string $heading + * The heading of the tile. + * @param string $link + * The text of the link. + * + * @throws \Exception + * Thrown when the tile or the link are not found. + * + * @Then I( should) see the link :text in the :heading tile + */ + public function assertTileContainsLink($heading, $link) { + $element = $this->getTileByHeading($heading); + if (!$element->findLink($link)) { + throw new \Exception("The link '$link' was not found in the tile '$heading'."); + } + } + /** * Asserts that a certain text is present in a tile. * diff --git a/web/modules/custom/asset_distribution/config/install/core.entity_view_display.rdf_entity.asset_distribution.view_mode_tile.yml b/web/modules/custom/asset_distribution/config/install/core.entity_view_display.rdf_entity.asset_distribution.view_mode_tile.yml index d46faf4c82..912961f37a 100644 --- a/web/modules/custom/asset_distribution/config/install/core.entity_view_display.rdf_entity.asset_distribution.view_mode_tile.yml +++ b/web/modules/custom/asset_distribution/config/install/core.entity_view_display.rdf_entity.asset_distribution.view_mode_tile.yml @@ -31,7 +31,7 @@ content: settings: hosted_files_title: Download remote_files_title: External - show_remote_files: false + show_remote_files: true third_party_settings: template_suggestion: template_suggestion: no_wrappers