diff --git a/tests/Heimdall.Web.Tests/Components/Pages/SiteDetailTests.cs b/tests/Heimdall.Web.Tests/Components/Pages/SiteDetailTests.cs index 7305733..023ff7e 100644 --- a/tests/Heimdall.Web.Tests/Components/Pages/SiteDetailTests.cs +++ b/tests/Heimdall.Web.Tests/Components/Pages/SiteDetailTests.cs @@ -106,6 +106,19 @@ public class SiteDetailTests : PageTestBase var environment = (YamlMappingNode)agent.Children[new YamlScalarNode("environment")]; ((YamlScalarNode)environment.Children[new YamlScalarNode("Agent__InferenceExecutionProvider")]).Value.ShouldBe("CPU"); }); + + cut.FindAll("button").Single(b => b.TextContent.Contains("Docker Run", StringComparison.OrdinalIgnoreCase)).Click(); + cut.WaitForAssertion(() => + { + var commands = cut.FindAll("pre code").Select(code => code.TextContent).ToArray(); + commands.Length.ShouldBe(6); + commands[0].ShouldContain("docker pull registry.example/heimdall-agent:latest"); + commands[1].ShouldContain("--pull always"); + commands[1].ShouldContain("registry.example/heimdall-agent:latest"); + commands[3].ShouldContain("docker pull 'registry.example/heimdall-agent:latest'"); + commands[4].ShouldContain("'--pull','always'"); + commands[4].ShouldContain("'registry.example/heimdall-agent:latest'"); + }); } [Fact] @@ -175,6 +188,8 @@ public class SiteDetailTests : PageTestBase run.ShouldContain("registry.example/heimdall-agent-gpu:latest"); run.ShouldContain("--group-add \"$(stat -c '%g' /var/run/docker.sock)\""); run.ShouldContain("-v /var/run/docker.sock:/var/run/docker.sock"); + commands[4].ShouldContain("'--pull','always'"); + commands[4].ShouldContain("'registry.example/heimdall-agent-gpu:latest'"); }); }