Skip to content
Snippets Groups Projects
Commit 485fb5ae authored by Adam G-H's avatar Adam G-H
Browse files

Issue #3298863: Drupal core no longer supplies "Download" links for available updates

parent 68aad692
No related branches found
No related tags found
No related merge requests found
...@@ -86,8 +86,13 @@ class AvailableUpdatesReportTest extends AutomaticUpdatesFunctionalTestBase { ...@@ -86,8 +86,13 @@ class AvailableUpdatesReportTest extends AutomaticUpdatesFunctionalTestBase {
private function assertVersionLink(string $version, string $url): void { private function assertVersionLink(string $version, string $url): void {
$assert = $this->assertSession(); $assert = $this->assertSession();
$row = $assert->elementExists('css', "table.update .project-update__version:contains(\"$version\")"); $row = $assert->elementExists('css', "table.update .project-update__version:contains(\"$version\")");
$link = $assert->elementExists('named', ['link', 'Download'], $row); // In Drupal 9.5 and later, the "Download" link does not exist. We can drop
$this->assertStringEndsWith($url, $link->getAttribute('href')); // this assertion (and likely this entire method) when Drupal 9.5 is the
// minimum supported version of core.
$link = $row->findLink('Download');
if ($link) {
$this->assertStringEndsWith($url, $link->getAttribute('href'));
}
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment