Created
August 5, 2021 15:01
-
-
Save simonziegler/44f5e48ded0052ff536e593412adf2e9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@inherits TestComponentBase | |
<SnapshotTest Setup="Setup"> | |
<TestInput> | |
<MBCheckbox Label="Hello" /> | |
</TestInput> | |
<ExpectedOutput> | |
<div class="mdc-form-field"> | |
<div class="mdc-touch-target-wrapper"> | |
<div class="mdc-checkbox mdc-checkbox--touch "> | |
<input type="checkbox" class="mdc-checkbox__native-control " id="mb_958304f3-95b6-42e6-a8e6-623e4f6efbb2"> | |
<div class="mdc-checkbox__background"> | |
<svg class="mdc-checkbox__checkmark" viewBox="0 0 24 24"> | |
<path class="mdc-checkbox__checkmark-path" fill="none" d="M1.73,12.91 8.1,19.28 22.79,4.59"></path> | |
</svg> | |
<div class="mdc-checkbox__mixedmark"></div> | |
</div> | |
<div class="mdc-checkbox__ripple"></div> | |
</div> | |
</div> | |
<label for="mb_958304f3-95b6-42e6-a8e6-623e4f6efbb2">Hello</label> | |
</div> | |
</ExpectedOutput> | |
@code { | |
void Setup(SnapshotTest test) | |
{ | |
test.Services.AddLogging().AddMBServices(); | |
} | |
} | |
</SnapshotTest> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment