Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 7e85de94 authored by drishu's avatar drishu
Browse files

OEL-001: Fix tests after markup changes.

parent 37557e36
No related branches found
No related tags found
1 merge request!21OEL-001: Layout fixes.
......@@ -7,7 +7,7 @@
{% set extra_attributes = create_attribute() %}
{% set extra_attributes = extra_attributes.addClass('nav-link') %}
<li class="nav-item">
<li class="nav-item oe-authentication">
{{ pattern('link', {
label: content['#title']|render,
path: content['#url']|render,
......
......@@ -22,7 +22,7 @@
{% set extra_attributes = extra_attributes.setAttribute('data-bs-target', '#' ~ _language.link.target) %}
{% set extra_attributes = extra_attributes.addClass('nav-link') %}
<li class="nav-item">
<li class="nav-item language-switcher">
{{ pattern('link', {
label: _language.link.label,
path: _language.link.href,
......
......@@ -95,7 +95,7 @@ class MultilingualBlockTest extends KernelTestBase {
$render = $this->container->get('renderer')->renderRoot($build);
$crawler = new Crawler($render->__toString());
$block = $crawler->filter('#block-languageswitcherinterfacetext');
$block = $crawler->filter('li.language-switcher');
$this->assertCount(1, $block);
$link = $crawler->filter('a.nav-link');
$this->assertSame('English', trim($link->text()));
......
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