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)