mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 00:23:59 +09:00
CI fixes
This commit is contained in:
@ -35,11 +35,11 @@ namespace osu.Game.Tests.Visual.Online
|
|||||||
public void TestVisibility()
|
public void TestVisibility()
|
||||||
{
|
{
|
||||||
AddStep("Change metadata to null", () => metadataBindable.Value = null);
|
AddStep("Change metadata to null", () => metadataBindable.Value = null);
|
||||||
AddAssert("Panel is hidden", () => panel.IsPresent == false);
|
AddAssert("Panel is hidden", () => !panel.IsPresent);
|
||||||
AddStep("Change metadata", () => metadataBindable.Value = metadata);
|
AddStep("Change metadata", () => metadataBindable.Value = metadata);
|
||||||
AddAssert("Panel is visible", () => panel.IsPresent == true);
|
AddAssert("Panel is visible", () => panel.IsPresent);
|
||||||
AddStep("Change metadata to null", () => metadataBindable.Value = null);
|
AddStep("Change metadata to null", () => metadataBindable.Value = null);
|
||||||
AddAssert("Panel is hidden", () => panel.IsPresent == false);
|
AddAssert("Panel is hidden", () => !panel.IsPresent);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static readonly APINewsSidebar metadata = new APINewsSidebar
|
private static readonly APINewsSidebar metadata = new APINewsSidebar
|
||||||
|
@ -160,7 +160,7 @@ namespace osu.Game.Overlays.News.Sidebar
|
|||||||
{
|
{
|
||||||
IdleColour = colourProvider.Light2;
|
IdleColour = colourProvider.Light2;
|
||||||
HoverColour = colourProvider.Light1;
|
HoverColour = colourProvider.Light1;
|
||||||
Action = () => { }; // Avoid button being disabled since there's no proper action assigned.
|
Action = () => { }; // Avoid button being disabled since there's no proper action assigned.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user