Merge branch 'review2-p1-fix-desktop' into claude/owner-review-2-p1
This commit is contained in:
commit
8e7357a974
8 files changed
+33
-8
No files matched your search
@@ -308,6 +308,18 @@ public sealed class SettingsLogicTests
|
||||
Assert.Equal(("Not supported", "—", "—", false), (none.TierText, none.DecoderText, none.NeedsText, none.HasNeeds));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void ASettingsPageIsFoundOnlyByTheRowsItShows()
|
||||
{
|
||||
// About's translation row shows outside English only: its keyword is read at each search, not once (owner review 2).
|
||||
var shown = false;
|
||||
var about = new SettingsPageItem(SettingsPage.About, () => shown ? ["About.Translation"] : []);
|
||||
Assert.False(about.Matches(Loc.L("About.Translation")), "a hidden row does not match");
|
||||
shown = true;
|
||||
Assert.True(about.Matches(Loc.L("About.Translation")));
|
||||
Assert.True(new SettingsPageItem(SettingsPage.About, ["About.Build"]).Matches(Loc.L("About.Build")));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void EnumDrivenKeysExistInEveryRequiredLanguage()
|
||||
{
|
||||
|
||||
@@ -361,6 +361,8 @@ public sealed class SettingsScreenSmokeTests
|
||||
Assert.Contains(settings.VisiblePages, p => p.Page == SettingsPage.About);
|
||||
settings.SearchText = Loc.L("About.Releases");
|
||||
Assert.Contains(settings.VisiblePages, p => p.Page == SettingsPage.Updates);
|
||||
settings.SearchText = Loc.L("About.Translation");
|
||||
Assert.False(settings.VisiblePages.Any(p => p.Page == SettingsPage.About), "the hidden translation row does not match");
|
||||
settings.SearchText = string.Empty;
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user