Files
tbd-station-14/Content.IntegrationTests/Tests/MappingEditorTest.cs
DrSmugleaf 54d5bd266c Add mapping editor (#23427)
* Add mapping editor (#757)

* Remove mapping actions, never again

* Cleanup actions system

* Jarvis, remove all references to CM14

* Fix InventoryUIController crashing when an InventoryGui is not found

* Rename mapping1 to mapping

* Clean up context calls

* Add doc comments

* Add delegate for hiding decals in the mapping screen

* Jarvis mission failed

* a

* Add test

* Fix not flushing save stream in mapping manager

* change

* Fix verbs

* fixes

* localise

---------

Co-authored-by: DrSmugleaf <DrSmugleaf@users.noreply.github.com>
Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
Co-authored-by: Pieter-Jan Briers <pieterjan.briers+git@gmail.com>
2024-08-04 13:31:45 +10:00

42 lines
988 B
C#

using Content.Client.Gameplay;
using Content.Client.Mapping;
using Robust.Client.State;
namespace Content.IntegrationTests.Tests;
[TestFixture]
public sealed class MappingEditorTest
{
[Test]
public async Task StopHardCodingWidgetsJesusChristTest()
{
await using var pair = await PoolManager.GetServerClient(new PoolSettings
{
Connected = true
});
var client = pair.Client;
var state = client.ResolveDependency<IStateManager>();
await client.WaitPost(() =>
{
Assert.DoesNotThrow(() =>
{
state.RequestStateChange<MappingState>();
});
});
// arbitrary short time
await client.WaitRunTicks(30);
await client.WaitPost(() =>
{
Assert.DoesNotThrow(() =>
{
state.RequestStateChange<GameplayState>();
});
});
await pair.CleanReturnAsync();
}
}