Skip to content

Commit

Permalink
Merge pull request #902 from openeuropa/EWPP-1304-v3
Browse files Browse the repository at this point in the history
EWPP-1304: Change link label for Awarded grants field of the Call for proposals CT on the full view
  • Loading branch information
upchuk authored Aug 2, 2021
2 parents 55865bb + 7f9d1a6 commit 2b69a58
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
{% include '@ecl-twig/link' with {
link: {
type: 'standalone',
label: 'Grands awarded'|t,
label: 'Grants awarded'|t,
path: item.content['#url'],
icon_position: 'after'
},
Expand Down
6 changes: 3 additions & 3 deletions tests/Functional/ContentCallForProposalsRenderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -280,20 +280,20 @@ public function testProposalRendering(): void {
'items' => [
[
'label' => 'Results',
'body' => 'Grands awarded',
'body' => 'Grants awarded',
],
],
];
$field_list_assert->assertPattern($results_expected_values, $results_field_group->getHtml());
$this->assertLinkIcon($results_field_group, 'Grands awarded', 'http://example.com/results');
$this->assertLinkIcon($results_field_group, 'Grants awarded', 'http://example.com/results');

// Assert internal Grants awarded link field.
$node->set('oe_call_proposals_grants', ['uri' => 'internal:/']);
$node->save();
$this->drupalGet($node->toUrl());

$field_list_assert->assertPattern($results_expected_values, $results_field_group->getHtml());
$this->assertLinkIcon($results_field_group, 'Grands awarded', '/build/', FALSE);
$this->assertLinkIcon($results_field_group, 'Grants awarded', '/build/', FALSE);

// Assert Funding programme field.
$node->set('oe_call_proposals_funding', 'http://publications.europa.eu/resource/authority/eu-programme/AFIS2020');
Expand Down

0 comments on commit 2b69a58

Please sign in to comment.