Skip to content

Commit de4a004

Browse files
Fix test
JournalApp.Tests.IndexTests.HideTodaysNotes(hideNotes: False) System.InvalidOperationException : Missing <MudPopoverProvider />, please add it to your layout. See https://mudblazor.com/getting-started/installation#manual-install-add-components I believe it was broken after updating to MudBlazor v7.3.0 from v7.0.0
1 parent a5d5dd8 commit de4a004

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

JournalApp.Tests/IndexTests.razor

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,14 @@
104104
var preferences = Services.GetService<PreferenceService>();
105105
preferences.HideNotes = hideNotes;
106106

107-
var cut = Render(@<Index />);
107+
var layout = Render(
108+
@<MainLayout>
109+
<Body>
110+
<Index />
111+
</Body>
112+
</MainLayout>
113+
);
108114

109-
cut.FindAll(".data-point-group").Count.Should().Be(hideNotes ? 2 : 3);
115+
layout.FindAll(".data-point-group").Count.Should().Be(hideNotes ? 2 : 3);
110116
}
111117
}

0 commit comments

Comments
 (0)