test: script for AIBOM and CBOM label validation#913
Conversation
Reviewer's GuideExtends the table matcher API to support configurable matching conditions, updates all affected tests to the new signature, and adds/adjusts SBOM UI feature scenarios to validate AI/CBOM labels and related list/explorer filtering behavior, including some test data tweaks. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- In
toHaveColumnWithValue, the success message for the rowIndex-undefined case always claimsAll rowsmatch even whenmatchingCondition === "any"; consider tailoring the message based on the actual matching condition to avoid misleading output. - The new
optionshandling intoHaveColumnWithValueincludes a redundantconst rowIndex = options?.rowIndex ?? undefined;assignment; sinceoptions?.rowIndexis alreadynumber | undefined, you can simplify by using it directly and reduce noise.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- In `toHaveColumnWithValue`, the success message for the rowIndex-undefined case always claims `All rows` match even when `matchingCondition === "any"`; consider tailoring the message based on the actual matching condition to avoid misleading output.
- The new `options` handling in `toHaveColumnWithValue` includes a redundant `const rowIndex = options?.rowIndex ?? undefined;` assignment; since `options?.rowIndex` is already `number | undefined`, you can simplify by using it directly and reduce noise.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
72729f8 to
1702ea8
Compare
carlosthe19916
left a comment
There was a problem hiding this comment.
Thanks for the PR, some observations left below
| testFilterMatches("Empty filter input is handled", { | ||
| filters: { "Filter text": "" }, | ||
| assertions: { columnName: "Name", value: "quarkus-bom" }, | ||
| assertions: { columnName: "Name", value: "claude-4-opus" }, |
There was a problem hiding this comment.
I don't think this change is necesary.
I think there are similar lines like this one in this PR
ad7637f to
ebc7793
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #913 +/- ##
==========================================
- Coverage 64.91% 64.05% -0.87%
==========================================
Files 195 195
Lines 3338 3338
Branches 751 751
==========================================
- Hits 2167 2138 -29
- Misses 872 912 +40
+ Partials 299 288 -11 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
3bc3594 to
2f76a67
Compare
carlosthe19916
left a comment
There was a problem hiding this comment.
@mrrajan LGTM!
Before merging it please address the two minor points I mentioned in my comments below
| for (const row of allRows) { | ||
| await baseExpect(row).toContainText(value); | ||
| } | ||
| } else if (typeof rowIndex === "number") { |
There was a problem hiding this comment.
Signed-off-by: mrrajan <86094767+mrrajan@users.noreply.github.com.>
Signed-off-by: mrrajan <86094767+mrrajan@users.noreply.github.com.>
Signed-off-by: mrrajan <86094767+mrrajan@users.noreply.github.com.>
Signed-off-by: mrrajan <86094767+mrrajan@users.noreply.github.com.>
Signed-off-by: mrrajan <86094767+mrrajan@users.noreply.github.com.>
2f76a67 to
dc87cc0
Compare
Signed-off-by: mrrajan <86094767+mrrajan@users.noreply.github.com.> Assisted-by: Cursor
|
/backport |
|
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin release/0.4.z
git worktree add -d .worktree/backport-913-to-release/0.4.z origin/release/0.4.z
cd .worktree/backport-913-to-release/0.4.z
git switch --create backport-913-to-release/0.4.z
git cherry-pick -x 93fc4ab39f232f6ebd48b0855d9924067f345a2b |
Signed-off-by: mrrajan <86094767+mrrajan@users.noreply.github.com.>
Signed-off-by: mrrajan <86094767+mrrajan@users.noreply.github.com.>
Signed-off-by: mrrajan <86094767+mrrajan@users.noreply.github.com.>
Signed-off-by: mrrajan <86094767+mrrajan@users.noreply.github.com.>

Summary by Sourcery
Extend table matchers to support conditional column value checks and add SBOM label validation flows for AIBOM and CBOM across list and explorer pages.
Tests: