Skip to content

[test]: select a field mapping#8344

Open
rijulpoudel wants to merge 1 commit into
mainfrom
issue-8343
Open

[test]: select a field mapping#8344
rijulpoudel wants to merge 1 commit into
mainfrom
issue-8343

Conversation

@rijulpoudel

@rijulpoudel rijulpoudel commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator

Fixes #8343

Summary by CodeRabbit

  • Tests
    • Added coverage for selecting a data-mapping value.
    • Verifies the selected mapping path is updated correctly and changes are marked as pending.

@coderabbitai

coderabbitai Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 319ec0d2-af1a-4566-9277-50246e56ae7f

📥 Commits

Reviewing files that changed from the base of the PR and between 7c0e603 and 18229a9.

📒 Files selected for processing (1)
  • specifyweb/frontend/js_src/lib/components/WbPlanView/__tests__/mappingReducer.test.ts

📝 Walkthrough

Walkthrough

Changes

Data Mapper reducer validation

Layer / File(s) Summary
Mapping selection reducer test
specifyweb/frontend/js_src/lib/components/WbPlanView/__tests__/mappingReducer.test.ts
Adds a Jest test that selects catalogNumber at line 0/index 0 and verifies mappingPath and changesMade.
🚥 Pre-merge checks | ✅ 6
✅ Passed checks (6 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the change: adding a test for selecting a field mapping.
Linked Issues check ✅ Passed The new test aligns with #8343 by verifying field mapping selection in the WorkBench Data Mapper.
Out of Scope Changes check ✅ Passed The PR only adds a focused test for the reported mapper behavior and shows no unrelated changes.
Automatic Tests ✅ Passed The PR adds a Jest test file under tests that matches the repo’s testMatch pattern and exercises reducer behavior.
Testing Instructions ✅ Passed The added Jest test clearly targets WbPlanView’s mappingReducer ChangeSelectElementValueAction and verifies the expected state update.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch issue-8343

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

Copy link
Copy Markdown

Warning

One or more dependencies are approaching or past End-of-Life.
Please plan upgrades accordingly.

STATUS=WARNING
NODE_VERSION=20
NODE_CYCLE=20
EOL_DATE=2026-04-30
DAYS_REMAINING=-83

--- Node.js ---
Version: 20
EOL: 2026-04-30
Status: WARNING

STATUS=OK
PYTHON_VERSION=3.12
PYTHON_CYCLE=3.12
EOL_DATE=2028-10-31
DAYS_REMAINING=832

--- Python ---
Version: 3.12
EOL: 2028-10-31
Status: OK

STATUS=WARNING
DJANGO_VERSION=4.2
DJANGO_CYCLE=4.2
EOL_DATE=2026-04-07
DAYS_REMAINING=-106

--- Django ---
Version: 4.2
EOL: 2026-04-07
Status: WARNING


@rijulpoudel

Copy link
Copy Markdown
Collaborator Author

@CodeRabbit Full Review

@coderabbitai

coderabbitai Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor
✅ Action performed

Full review finished.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 📋Back Log

Development

Successfully merging this pull request may close these issues.

[test]: Select a field mapping in the WorkBench Data Mapper

2 participants