Skip to content

Fixes 34633: test map field fixes through what users get - #35905

Merged
Khairajani merged 2 commits into
mainfrom
dbt-map-field-test-followups
Oct 22, 2026
Merged

Khairajani merged 2 commits into
mainfrom
dbt-map-field-test-followups

Conversation

@Khairajani

@Khairajani Khairajani commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #34633

Follow-up to #35698, addressing review comments on its 2.0 backport (#35895). Test-only change.

  • CoreBooleanField.test.tsx: renders the real Toggle and checks the switch is named by its map key, instead of checking the props given to a mock.
  • IngestionWorkflowForm.test.tsx: submits the dbt form with an untouched Catalog Mapping row and checks it is not saved.

Both tests fail when their fix is removed. 233 tests in the form and ingestion suites pass; UI checkstyle is clean.

🤖 Generated with Claude Code

RetriggerView in GreptileConfidence Score: 5/5

This test-only PR appears safe to merge.

Summary

This test-only PR checks what users get rather than just checking mock props.

  • DBT form tests check what gets saved after an empty mapping row is added.
  • Map toggle tests check the name on the rendered switch.

Reviews (2) · Last reviewed commit: "Merge branch 'main' into dbt-map-field-t..." · Reviewed by Greptile

The toggle test now renders the real Toggle and checks its accessible name,
and the dbt form test submits an untouched Catalog Mapping row and checks it
is not saved.
@Khairajani
Khairajani requested a review from a team as a code owner October 21, 2026 14:52
@Khairajani Khairajani added safe to test Add this label to run secure Github workflows on PRs UI UI specific issues labels Oct 21, 2026
@github-actions

github-actions Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 79%
79.05% (128061/162000) 65.44% (44938/68662) 68.43% (25648/37480)

@gitar-bot

gitar-bot Bot commented Oct 22, 2026

Copy link
Copy Markdown
Code Review ✅ Approved

🟢 Low risk · The changes only strengthen UI tests for toggle labeling and empty dbt mappings; production behavior and interfaces remain untouched.

Test-only follow-up that replaces mock-prop assertions in CoreBooleanField.test.tsx with a check that the real Toggle is named by its map key, and adds a submit test in IngestionWorkflowForm.test.tsx confirming an untouched Catalog Mapping row is not saved. No issues found.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@Khairajani
Khairajani enabled auto-merge October 22, 2026 05:45
@sonarqubecloud

Copy link
Copy Markdown

@Khairajani
Khairajani added this pull request to the merge queue Oct 22, 2026
Merged via the queue into main with commit 99a551a Oct 22, 2026
82 checks passed
@Khairajani
Khairajani deleted the dbt-map-field-test-followups branch October 22, 2026 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test Add this label to run secure Github workflows on PRs UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dbt: BigQuery tables not linked when manifest database is a Trino catalog alias

2 participants