Skip to content

Commit 6d467be

Browse files
committed
Add Icon menu item in nav
1 parent 71412bc commit 6d467be

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

ux.symfony.com/templates/_header.html.twig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@
2929
<div class="AppNav_menu">
3030
<a href="{{ path('app_turbo') }}" class="AppNav_item">Turbo</a>
3131
<a href="{{ path('app_live_component') }}" class="AppNav_item">Live <span>Components</span></a>
32+
<a href="{{ path('app_icons') }}" class="AppNav_item">
33+
<span class="AppNav_badge">New</span>
34+
Icons
35+
</a>
3236
<a href="{{ path('app_packages') }}" class="AppNav_item">Packages</a>
3337
<a href="{{ path('app_demos') }}" class="AppNav_item">Demos</a>
3438
</div>

ux.symfony.com/templates/_nav.html.twig

Whitespace-only changes.

ux.symfony.com/tests/Functional/IconsTest.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,19 @@ final class IconsTest extends KernelTestCase
2121
{
2222
use HasBrowser;
2323

24+
public function testCanViewIconFromHomepage(): void
25+
{
26+
$this->browser()
27+
->visit('/')
28+
->assertSuccessful()
29+
->assertSeeIn('.AppNav_menu', 'Icons')
30+
->click('Icons')
31+
->assertSuccessful()
32+
->assertSeeIn('title', 'Icons')
33+
->assertSeeIn('h1', 'Icons')
34+
;
35+
}
36+
2437
public function testCanViewIconIndex(): void
2538
{
2639
$this->browser()

0 commit comments

Comments
 (0)