Update tests to reflect new expected behaviour

This commit is contained in:
Bartłomiej Dach
2022-05-06 13:44:04 +02:00
parent e9d52aa954
commit 19297375e2

View File

@ -99,15 +99,15 @@ namespace osu.Game.Tests.Visual.UserInterface
} }
/// <summary> /// <summary>
/// Tests expanding a container will expand underlying groups if contracted. /// Tests expanding a container will not expand underlying groups if they were manually contracted by the user.
/// </summary> /// </summary>
[Test] [Test]
public void TestExpandingContainerExpandsContractedGroup() public void TestExpandingContainerDoesNotExpandContractedGroup()
{ {
AddStep("contract group", () => toolboxGroup.Expanded.Value = false); AddStep("contract group", () => toolboxGroup.Expanded.Value = false);
AddStep("expand container", () => container.Expanded.Value = true); AddStep("expand container", () => container.Expanded.Value = true);
AddAssert("group expanded", () => toolboxGroup.Expanded.Value); AddAssert("group not expanded", () => !toolboxGroup.Expanded.Value);
AddAssert("controls expanded", () => slider1.Expanded.Value && slider2.Expanded.Value); AddAssert("controls expanded", () => slider1.Expanded.Value && slider2.Expanded.Value);
AddStep("contract container", () => container.Expanded.Value = false); AddStep("contract container", () => container.Expanded.Value = false);