From 2517b19e467c3e5f27fdb2bf5a2e7ed9c24e9d7d Mon Sep 17 00:00:00 2001 From: razzle Date: Thu, 14 Mar 2024 13:08:00 -0500 Subject: [PATCH] fix test Signed-off-by: razzle --- src/test/e2e/01_component_choice_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/e2e/01_component_choice_test.go b/src/test/e2e/01_component_choice_test.go index 9d5030b0c8..8930094f24 100644 --- a/src/test/e2e/01_component_choice_test.go +++ b/src/test/e2e/01_component_choice_test.go @@ -28,11 +28,11 @@ func TestComponentChoice(t *testing.T) { // We currently don't have a pattern to actually test the interactive prompt, so just testing automation for now stdOut, stdErr, err := e2e.Zarf("package", "deploy", path, "--components=first-choice,second-choice", "--confirm") require.Error(t, err, stdOut, stdErr) - require.Contains(t, stdErr, "Component first-choice is using group which has been deprecated", "output should show a warning for group being deprecated.") // Deploy a single choice and expect success stdOut, stdErr, err = e2e.Zarf("package", "deploy", path, "--components=first-choice", "--confirm") require.NoError(t, err, stdOut, stdErr) + require.Contains(t, stdErr, "Component first-choice is using group which has been deprecated", "output should show a warning for group being deprecated.") // Verify the file was created require.FileExists(t, firstFile)