Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
nagyad committed Dec 5, 2022
1 parent 6537276 commit b303b5d
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"openeuropa/code-review": "^2.0",
"openeuropa/oe_contact_forms": "^1.5",
"openeuropa/oe_content": "3.x-dev",
"openeuropa/oe_corporate_blocks": "^4.4",
"openeuropa/oe_corporate_blocks": "dev-EWPP-2827",
"openeuropa/oe_corporate_countries": "~2.0",
"openeuropa/oe_media": "^1.19",
"openeuropa/oe_multilingual": "^1.10",
Expand Down
2 changes: 1 addition & 1 deletion oe_theme.theme
Original file line number Diff line number Diff line change
Expand Up @@ -1253,7 +1253,7 @@ function oe_theme_preprocess_block__system_branding_block(&$variables) {
$variables['logo_aria_label'] = t('Home') . ' - ' . t('European Commission');
$variables['site_logo_alt'] = t('European Commission logo');
$variables['site_logo_title'] = t('European Commission');
$site_logo_href = 'https://ec.europa.eu/info';
$site_logo_href = 'https://commission.europa.eu';
}
else {
$variables['logo_aria_label'] = t('Home') . ' - ' . t('European Union');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ navigation_list:
type: "text"
label: "Title URL"
description: "URL to link the title of the navigation list."
preview: "https://ec.europa.eu/info/education/policy-educational-issues_en"
preview: "https://commission.europa.eu/education/policy-educational-issues_en"
external_link:
type: "boolean"
label: "External link"
Expand All @@ -28,22 +28,22 @@ navigation_list:
description: "Array of links that form the navigation list."
preview:
- label: 'Addressing shared challenges'
url: 'https://ec.europa.eu/info/education/policy-educational-issues/shared-challenges-education-and-training_en'
url: 'https://commission.europa.eu/education/policy-educational-issues/shared-challenges-education-and-training_en'
is_external: true
- label: 'Setting objectives and measuring progress'
url: 'https://ec.europa.eu/info/education/policy-educational-issues/setting-objectives-and-measuring-progress_en'
url: 'https://commission.europa.eu/education/policy-educational-issues/setting-objectives-and-measuring-progress_en'
- label: 'International cooperation'
url: 'https://ec.europa.eu/info/education/policy-educational-issues/international-cooperation_en'
url: 'https://commission.europa.eu/education/policy-educational-issues/international-cooperation_en'
is_external: true
secondary_links:
type: "array"
label: "Secondary Links"
description: "Secondary array of links that form the navigation list."
preview:
- label: 'Integrating migrants and refugees'
url: 'https://ec.europa.eu/info/education/policy-educational-issues/shared-challenges-education-and-training/integrating-migrants-and-refugees_en'
url: 'https://commission.europa.eu/education/policy-educational-issues/shared-challenges-education-and-training/integrating-migrants-and-refugees_en'
- label: 'Early school leaving'
url: 'https://ec.europa.eu/info/education/policy-educational-issues/shared-challenges-education-and-training/early-school-leaving_en'
url: 'https://commission.europa.eu/education/policy-educational-issues/shared-challenges-education-and-training/early-school-leaving_en'
is_external: true
border:
type: "boolean"
Expand Down
6 changes: 3 additions & 3 deletions tests/features/corporate-blocks.feature
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Feature: Corporate blocks feature
Scenario Outline: By default the European Commission footer is displayed.
Given I am an anonymous user
When I am on "<page>"
Then I should see the European Commission footer with link "https://ec.europa.eu/info/index_en"
Then I should see the European Commission footer with link "https://commission.europa.eu/index_en"

Examples:
| page |
Expand All @@ -27,7 +27,7 @@ Feature: Corporate blocks feature
Scenario Outline: Changing the site's style will display either the European Commission or the European Union footer.
Given I am an anonymous user
When I am on "<page>"
Then I should see the European Commission footer with link "https://ec.europa.eu/info/index_en"
Then I should see the European Commission footer with link "https://commission.europa.eu/index_en"
And I should not see the "European Union" footer

When the theme is configured to use the "European Union" style
Expand All @@ -38,7 +38,7 @@ Feature: Corporate blocks feature
When the theme is configured to use the "European Commission" style
And I reload the page
Then I should not see the "European Union" footer
But I should see the European Commission footer with link "https://ec.europa.eu/info/index_en"
But I should see the European Commission footer with link "https://commission.europa.eu/index_en"

Examples:
| page |
Expand Down
8 changes: 4 additions & 4 deletions tests/features/site-branding.feature
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ Feature: Site branding
Then the header logo should contain accessibility attributes with link "<link>" label "<label>" alt "<alt>" title "<title>"

Examples:
| language_selector | link | label | alt | title |
| English | https://ec.europa.eu/info/index_en | Home - European Commission | European Commission logo | European Commission |
| български | https://ec.europa.eu/info/index_bg | Home - European Commission | European Commission logo | European Commission |
| language_selector | link | label | alt | title |
| English | https://commission.europa.eu/index_en | Home - European Commission | European Commission logo | European Commission |
| български | https://commission.europa.eu/index_bg | Home - European Commission | European Commission logo | European Commission |
# Non-EU language.
| Icelandic | https://ec.europa.eu/info | Home - European Commission | European Commission logo | European Commission |
| Icelandic | https://commission.europa.eu/ | Home - European Commission | European Commission logo | European Commission |
2 changes: 1 addition & 1 deletion tests/src/Functional/fixtures/ec_footer.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
corporate_site_link:
href: 'https://ec.europa.eu/info/index_en'
href: 'https://commission.europa.eu/index_en'
label: 'European Commission website'
class_navigation:
-
Expand Down

0 comments on commit b303b5d

Please sign in to comment.