Skip to content

Commit 938e84e

Browse files
committed
JGC-492 - Assert stable table content to avoid column-wrap flakiness
1 parent fbaae61 commit 938e84e

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

lifecycle_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,9 +530,12 @@ func TestReleaseBundleFormatFlag(t *testing.T) {
530530
getOption(cliutils.IncludeRepos, tests.RtProdRepo1),
531531
"--project=default",
532532
getOption(cliutils.Format, "table"))
533+
// The bundle name column wraps across lines, so assert on stable, non-wrapping
534+
// content: the table title, headers, and the environment value.
535+
assert.Contains(t, tableOutput, "Promotion Result")
533536
assert.Contains(t, tableOutput, "BUNDLE NAME")
534537
assert.Contains(t, tableOutput, "ENVIRONMENT")
535-
assert.Contains(t, tableOutput, tests.LcRbName1)
538+
assert.Contains(t, tableOutput, prodEnvironment)
536539
assertStatusCompleted(t, lcManager, tests.LcRbName1, number1, "")
537540
}
538541

0 commit comments

Comments
 (0)