|
KiCad PCB EDA Suite
|
Test for issue #24915: the BOM job edit dialog must populate its preview data with the job's saved variant, not the schematic's currently active variant. More...
#include <boost/test/unit_test.hpp>#include <qa_utils/wx_utils/unit_test_utils.h>#include <eeschema_helpers.h>#include <fields_data_model.h>#include <locale_io.h>#include <sch_reference_list.h>#include <sch_sheet_path.h>#include <sch_symbol.h>#include <schematic.h>Go to the source code of this file.
Functions | |
| BOOST_FIXTURE_TEST_CASE (JobVariantDrivesFieldsDataStore, ISSUE24915_FIXTURE) | |
| BOOST_FIXTURE_TEST_CASE (SchematicVariantDoesNotLeakIntoDataStore, ISSUE24915_FIXTURE) | |
Test for issue #24915: the BOM job edit dialog must populate its preview data with the job's saved variant, not the schematic's currently active variant.
The dialog fix routes the job's variant into the data model. The dialog itself cannot be constructed headlessly, so this test pins the contract the fix depends on: the model resolves everything against its own current variant, regardless of which variant is active on the schematic. Reuses the issue24217 fixture, variant H0 there marks R2 and R3 DNP and overrides R1 to 10k and R3 to 2M.
Definition in file test_issue24915_job_variant_fields.cpp.
| BOOST_FIXTURE_TEST_CASE | ( | JobVariantDrivesFieldsDataStore | , |
| ISSUE24915_FIXTURE | ) |
Definition at line 102 of file test_issue24915_job_variant_fields.cpp.
References FIELDS_EDITOR_GRID_DATA_MODEL::AddColumn(), BOOST_CHECK_EQUAL(), and FIELDS_EDITOR_GRID_DATA_MODEL::SetCurrentVariant().
| BOOST_FIXTURE_TEST_CASE | ( | SchematicVariantDoesNotLeakIntoDataStore | , |
| ISSUE24915_FIXTURE | ) |
Definition at line 127 of file test_issue24915_job_variant_fields.cpp.
References FIELDS_EDITOR_GRID_DATA_MODEL::AddColumn(), and BOOST_CHECK_EQUAL().