Skip to content

Commit 01fcd17

Browse files
committed
minor #2735 [Toolkit] Update snapshots & fix tests, following #2728 (Kocal)
This PR was merged into the 2.x branch. Discussion ---------- [Toolkit] Update snapshots & fix tests, following #2728 | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Docs? | no <!-- required for new features --> | Issues | Fix #... <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead --> | License | MIT <!-- Replace this notice by a description of your feature/bugfix. This will help reviewers and should be a good start for the documentation. Additionally (see https://symfony.com/releases): - Always add tests and ensure they pass. - For new features, provide some code snippets to help understand usage. - Features and deprecations must be submitted against branch main. - Update/add documentation as required (we can help!) - Changelog entry should follow https://symfony.com/doc/current/contributing/code/conventions.html#writing-a-changelog-entry - Never break backward compatibility (see https://symfony.com/bc). --> The tests didn't run on #2728 because I only updated .md files... 😬 Commits ------- 15fac72 [Toolkit] Update snapshots & fix tests, following #2728
2 parents 9426209 + 15fac72 commit 01fcd17

5 files changed

+10
-10
lines changed

src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component AspectRatio, code 1__1.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
- Code:
55
```twig
66
<twig:AspectRatio ratio="1 / 1" class="max-w-[300px]">
7-
<img
8-
src="https://images.unsplash.com/photo-1535025183041-0991a977e25b?w=300&amp;dpr=2&amp;q=80"
7+
<img
8+
src="https://images.unsplash.com/photo-1535025183041-0991a977e25b?w=300&amp;dpr=2&amp;q=80"
99
alt="Landscape photograph by Tobias Tullius"
1010
class="h-full w-full rounded-md object-cover"
1111
/>

src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component AspectRatio, code 2__1.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
- Code:
55
```twig
66
<twig:AspectRatio ratio="1 / 1" class="max-w-[350px]">
7-
<img
8-
src="https://images.unsplash.com/photo-1535025183041-0991a977e25b?w=300&amp;dpr=2&amp;q=80"
7+
<img
8+
src="https://images.unsplash.com/photo-1535025183041-0991a977e25b?w=300&amp;dpr=2&amp;q=80"
99
alt="Landscape photograph by Tobias Tullius"
1010
class="h-full w-full rounded-md object-cover"
1111
/>

src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component AspectRatio, code 3__1.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
- Code:
55
```twig
66
<twig:AspectRatio ratio="16 / 9" class="max-w-[350px]">
7-
<img
8-
src="https://images.unsplash.com/photo-1535025183041-0991a977e25b?w=300&amp;dpr=2&amp;q=80"
7+
<img
8+
src="https://images.unsplash.com/photo-1535025183041-0991a977e25b?w=300&amp;dpr=2&amp;q=80"
99
alt="Landscape photograph by Tobias Tullius"
1010
class="h-full w-full rounded-md object-cover"
1111
/>

src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Card, code 3__1.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@
2525
{{ notification.description }}
2626
</p>
2727
</div>
28-
</div>
28+
</div>
2929
{%- endfor -%}
3030
</twig:Card:Content>
3131
<twig:Card:Footer>
3232
<twig:Button class="w-full">
33-
<twig:ux:icon name="lucide:check" />
33+
<twig:ux:icon name="lucide:check" />
3434
Mark all as read
3535
</twig:Button>
3636
</twig:Card:Footer>
@@ -78,7 +78,7 @@
7878
</div>
7979
</div>
8080
<div class="flex items-center p-6 pt-0 ">
81-
<button class="inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&amp;_svg]:pointer-events-none [&amp;_svg]:size-4 [&amp;_svg]:shrink-0 bg-primary text-primary-foreground hover:bg-primary/90 h-10 px-4 py-2 w-full"><svg xmlns="https://www.w3.org/2000/svg" viewbox="0 0 24 24" fill="currentColor" aria-hidden="true"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20 6L9 17l-5-5"></path></svg>
81+
<button class="inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&amp;_svg]:pointer-events-none [&amp;_svg]:size-4 [&amp;_svg]:shrink-0 bg-primary text-primary-foreground hover:bg-primary/90 h-10 px-4 py-2 w-full"><svg xmlns="https://www.w3.org/2000/svg" viewbox="0 0 24 24" fill="currentColor" aria-hidden="true"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20 6L9 17l-5-5"></path></svg>
8282
Mark all as read
8383
</button>
8484
</div>

src/Toolkit/tests/Kit/KitFactoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function testCanCreateShadKit(): void
6969
$this->assertStringContainsString(<<<'EOF'
7070
# Table
7171
72-
A component for displaying structured data in rows and columns with support for headers, captions, and customizable styling.
72+
A structured grid element that organizes data into rows and columns, supporting headers, captions, and footers.
7373
EOF
7474
, $table->doc->markdownContent);
7575
}

0 commit comments

Comments
 (0)