Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vnbaaij committed Jun 13, 2024
1 parent 443f535 commit a05403b
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@

<fluent-dialog id="xxx" class="fluent-dialog-main prevent-scroll" style="position: absolute; z-index: 999; top: 50%; left: 50%; --dialog-width: 500px; --dialog-height: 200px;" modal="true" trap-focus="true" blazor:ondialogdismiss="1" b-dsxskpj5rr="" blazor:elementreference="">
<div class="stack-horizontal fluent-dialog-header" style="justify-content: start; align-items: start; column-gap: 10px; row-gap: 10px; width: 100%;" b-0nr62qx0mz="">
<fluent-dialog id="xxx" class="fluent-dialog-main prevent-scroll" style="position: absolute; z-index: 999; top: 50%; left: 50%; --dialog-width: 500px; --dialog-height: 200px;" modal="true" trap-focus="true" blazor:ondialogdismiss="1" tabindex="-1" b-nhhazhtmim="" blazor:elementreference="">
<div class="stack-horizontal fluent-dialog-header" style="justify-content: start; align-items: start; column-gap: 10px; row-gap: 10px; width: 100%;" b-rm53amj1yp="">
<div style="width: 100%;">
<h4 typo="pane-header" class="fluent-typography" b-1nnnfjehkp="">Sample title</h4>
<h4 typo="pane-header" class="fluent-typography" b-r6kodva1vo="">Sample title</h4>
</div>
<fluent-button type="button" aria-label="Close" appearance="stealth" blazor:onclick="6" b-x1200685t0="" blazor:elementreference="xxx">
<svg style="width: 16px; fill: var(--accent-fill-rest);" focusable="false" viewBox="0 0 24 24" aria-hidden="true" blazor:onclick="8">
<fluent-button type="button" id="xxx" appearance="stealth" blazor:onclick="7" aria-label="Close" b-ai83c66izh="" blazor:elementreference="xxx">
<svg style="width: 16px; fill: var(--accent-fill-rest);" focusable="false" viewBox="0 0 24 24" aria-hidden="true" blazor:onkeydown="9" blazor:onclick="10">
<path d="m4.4 4.55.07-.08a.75.75 0 0 1 .98-.07l.08.07L12 10.94l6.47-6.47a.75.75 0 1 1 1.06 1.06L13.06 12l6.47 6.47c.27.27.3.68.07.98l-.07.08a.75.75 0 0 1-.98.07l-.08-.07L12 13.06l-6.47 6.47a.75.75 0 0 1-1.06-1.06L10.94 12 4.47 5.53a.75.75 0 0 1-.07-.98l.07-.08-.07.08Z"></path>
</svg>
</fluent-button>
</div>
<div class="stack-horizontal fluent-dialog-footer" style="justify-content: end; align-items: end; column-gap: 10px; row-gap: 10px; width: 100%;" b-0nr62qx0mz="">
<fluent-button type="button" appearance="accent" blazor:onclick="7" b-x1200685t0="" blazor:elementreference="xxx">Close</fluent-button>
<div class="stack-horizontal fluent-dialog-footer" style="justify-content: end; align-items: end; column-gap: 10px; row-gap: 10px; width: 100%;" b-rm53amj1yp="">
<fluent-button type="button" appearance="accent" blazor:onclick="8" b-ai83c66izh="" blazor:elementreference="xxx">Close</fluent-button>
</div>
<div class="fluent-dialog-body">
My body
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@

<fluent-dialog class="fluent-dialog-main prevent-scroll" style="position: absolute; z-index: 999; top: 50%; left: 50%; --dialog-width: 500px; --dialog-height: unset;" modal="true" trap-focus="true" b-dsxskpj5rr="" blazor:elementreference="xxx">My dialog content</fluent-dialog>
<fluent-dialog class="fluent-dialog-main prevent-scroll" style="position: absolute; z-index: 999; top: 50%; left: 50%; --dialog-width: 500px; --dialog-height: unset;" modal="true" trap-focus="true" tabindex="-1" b-nhhazhtmim="" blazor:elementreference="xxx">My dialog content</fluent-dialog>
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@

<fluent-dialog class="fluent-dialog-main prevent-scroll" style="position: absolute; z-index: 999; top: 50%; left: 50%; --dialog-width: 500px; --dialog-height: unset;" modal="true" trap-focus="true" b-dsxskpj5rr="" blazor:elementreference="">
<div class="stack-horizontal fluent-dialog-header" style="justify-content: start; align-items: start; column-gap: 10px; row-gap: 10px; width: 100%;" b-0nr62qx0mz="">
<fluent-dialog class="fluent-dialog-main prevent-scroll" style="position: absolute; z-index: 999; top: 50%; left: 50%; --dialog-width: 500px; --dialog-height: unset;" modal="true" trap-focus="true" tabindex="-1" b-nhhazhtmim="" blazor:elementreference="">
<div class="stack-horizontal fluent-dialog-header" style="justify-content: start; align-items: start; column-gap: 10px; row-gap: 10px; width: 100%;" b-rm53amj1yp="">
<div style="width: 100%;">
Header content
</div>
<fluent-button type="button" appearance="stealth" blazor:onclick="1" b-x1200685t0="" blazor:elementreference="">
<svg style="width: 16px; fill: var(--accent-fill-rest);" focusable="false" viewBox="0 0 24 24" aria-hidden="true" blazor:onclick="2">
<fluent-button type="button" id="xxx" appearance="stealth" blazor:onclick="1" b-ai83c66izh="" blazor:elementreference="">
<svg style="width: 16px; fill: var(--accent-fill-rest);" focusable="false" viewBox="0 0 24 24" aria-hidden="true" blazor:onkeydown="3" blazor:onclick="4">
<path d="m4.4 4.55.07-.08a.75.75 0 0 1 .98-.07l.08.07L12 10.94l6.47-6.47a.75.75 0 1 1 1.06 1.06L13.06 12l6.47 6.47c.27.27.3.68.07.98l-.07.08a.75.75 0 0 1-.98.07l-.08-.07L12 13.06l-6.47 6.47a.75.75 0 0 1-1.06-1.06L10.94 12 4.47 5.53a.75.75 0 0 1-.07-.98l.07-.08-.07.08Z"></path>
</svg>
</fluent-button>
<fluent-tooltip anchor="xxx" delay="300" blazor:ontooltipdismiss="2" placement="Placement.Bottom" blazor:elementreference=""></fluent-tooltip>
</div>
<div class="fluent-dialog-body">
Body content
</div>
<div class="stack-horizontal fluent-dialog-footer" style="justify-content: start; align-items: end; column-gap: 10px; row-gap: 10px; width: 100%;" b-0nr62qx0mz="">
<div class="stack-horizontal fluent-dialog-footer" style="justify-content: start; align-items: end; column-gap: 10px; row-gap: 10px; width: 100%;" b-rm53amj1yp="">
Footer content
</div>
</fluent-dialog>
8 changes: 8 additions & 0 deletions tests/Core/Dialog/FluentDialogTests.razor
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@
@inherits TestContext
@code
{
[Inject]
private LibraryConfiguration LibraryConfiguration { get; set; } = new LibraryConfiguration();

public FluentDialogTests()
{
Services.AddSingleton(LibraryConfiguration);
}

[Fact]
public void FluentDialog_Default()
{
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

<header class="header" style="height: 50px;" data-label="datavalue" b-y704zuwgsz="" blazor:elementreference="xxx">
<div class="header-gutters" b-y704zuwgsz=""></div>
</header>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

<header class="header" b-y704zuwgsz="" blazor:elementreference="xxx">
<div class="header-gutters" b-y704zuwgsz="">
<b>render me</b>
</div>
</header>
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

<header id="xxx" class="header" style="height: 50px;" b-y704zuwgsz="" blazor:elementreference="xxx">
<div class="header-gutters" b-y704zuwgsz=""></div>
</header>

0 comments on commit a05403b

Please sign in to comment.