diff --git a/tests/ZB.MOM.WW.ScadaBridge.CentralUI.PlaywrightTests/Deployment/DeploymentActionTests.cs b/tests/ZB.MOM.WW.ScadaBridge.CentralUI.PlaywrightTests/Deployment/DeploymentActionTests.cs index af2479e6..28e1add0 100644 --- a/tests/ZB.MOM.WW.ScadaBridge.CentralUI.PlaywrightTests/Deployment/DeploymentActionTests.cs +++ b/tests/ZB.MOM.WW.ScadaBridge.CentralUI.PlaywrightTests/Deployment/DeploymentActionTests.cs @@ -86,11 +86,11 @@ public class DeploymentActionTests : IClassFixture Skip.IfNot(_cluster.Available, ClusterAvailability.SkipReason); var (instanceId, uniqueName) = await _cluster.CreateInstanceAsync(); - // Deploy moves the instance config state to Enabled, so the context menu - // offers "Disable" (it would offer "Enable" only for a Disabled instance). - await CliRunner.DeployInstanceAsync(instanceId); try { + // Deploy moves the instance config state to Enabled, so the context menu + // offers "Disable" (it would offer "Enable" only for a Disabled instance). + await CliRunner.DeployInstanceAsync(instanceId); var page = await _pw.NewAuthenticatedPageAsync(); await OpenInstanceContextMenuAsync(page, uniqueName); @@ -119,12 +119,12 @@ public class DeploymentActionTests : IClassFixture Skip.IfNot(_cluster.Available, ClusterAvailability.SkipReason); var (instanceId, uniqueName) = await _cluster.CreateInstanceAsync(); - // Deploy then Disable leaves the instance config state at Disabled, so the - // context menu offers "Enable". - await CliRunner.DeployInstanceAsync(instanceId); - await CliRunner.DisableInstanceAsync(instanceId); try { + // Deploy then Disable leaves the instance config state at Disabled, so the + // context menu offers "Enable". + await CliRunner.DeployInstanceAsync(instanceId); + await CliRunner.DisableInstanceAsync(instanceId); var page = await _pw.NewAuthenticatedPageAsync(); await OpenInstanceContextMenuAsync(page, uniqueName);