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

Skip to content
Snippets Groups Projects
Commit 209e48b0 authored by drishu's avatar drishu
Browse files

OEL-452: Fix authenticaton test.

parent 28a9e5ee
No related branches found
No related tags found
1 merge request!7OEL-452: [oe_whitelabel] multilingual
......@@ -7,7 +7,7 @@
{% set extra_attributes = create_attribute() %}
{% set extra_attributes = extra_attributes.addClass('nav-link') %}
<ul class="nav">
<ul class="nav oe-authentication">
<li class="nav-item">
{{ pattern('link', {
label: content['#title']|render,
......
......@@ -68,10 +68,10 @@ class AuthenticationBlockTest extends KernelTestBase {
$render = $this->container->get('renderer')->renderRoot($build);
$crawler = new Crawler($render->__toString());
$actual = $crawler->filter('#block-euloginlinkblock');
$actual = $crawler->filter('.oe-authentication');
$this->assertCount(1, $actual);
$icon = $actual->filter('svg');
$this->assertSame('bi icon--m', $icon->attr('class'));
$this->assertSame('bi icon--s', $icon->attr('class'));
$use = $icon->filter('use');
$expected = '/themes/contrib/oe_bootstrap_theme/assets/icons/bootstrap-icons.svg#person-fill';
$this->assertSame($expected, $use->attr('xlink: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