Skip to content

Commit 0d92734

Browse files
Fix tests
1 parent 91e34b1 commit 0d92734

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

JournalApp.Tests/ManageCategoriesTests.razor

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
);
8686

8787
// Initial state.
88-
layout.FindAll(".manage-category-edit-button").Count.Should().Be(12);
88+
layout.FindAll(".manage-category-edit-button").Count.Should().Be(10);
8989

9090
// Open the dialog to create a new category.
9191
layout.Find(".add-category-button").Click();
@@ -96,7 +96,7 @@
9696

9797
// Submit changes and confirm there is a new category in the list.
9898
layout.Find(".category-dialog .submit-button").Click();
99-
layout.FindAll(".manage-category-edit-button").Count.Should().Be(13);
99+
layout.FindAll(".manage-category-edit-button").Count.Should().Be(11);
100100
}
101101

102102
[Fact]
@@ -111,7 +111,7 @@
111111
);
112112

113113
// Initial state.
114-
layout.FindAll(".manage-category-edit-button").Count.Should().Be(6);
114+
layout.FindAll(".manage-category-edit-button").Count.Should().Be(5);
115115

116116
// Open the dialog to create a new category.
117117
layout.Find(".add-category-button").Click();
@@ -122,7 +122,7 @@
122122

123123
// Submit changes and confirm there is a new category in the list.
124124
layout.Find(".category-dialog .submit-button").Click();
125-
layout.FindAll(".manage-category-edit-button").Count.Should().Be(7);
125+
layout.FindAll(".manage-category-edit-button").Count.Should().Be(6);
126126
}
127127

128128
[Fact]

JournalApp/Data/PreferenceService.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ private void UpdateStatusBar()
134134
if (OperatingSystem.IsAndroid())
135135
{
136136
logger.LogDebug("Updating status bar");
137+
#pragma warning disable CS0618 // Type or member is obsolete
137138
if (IsDarkMode)
138139
{
139140
StatusBar.SetColor(Color.FromHex("#EAB8D6"));
@@ -144,6 +145,7 @@ private void UpdateStatusBar()
144145
StatusBar.SetColor(Color.FromHex("#854C73"));
145146
StatusBar.SetStyle(StatusBarStyle.LightContent);
146147
}
148+
#pragma warning restore CS0618 // Type or member is obsolete
147149
}
148150
}
149151

0 commit comments

Comments
 (0)