KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_issue24915_job_variant_fields.cpp File Reference

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)
 

Detailed Description

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.

Function Documentation

◆ BOOST_FIXTURE_TEST_CASE() [1/2]

BOOST_FIXTURE_TEST_CASE ( JobVariantDrivesFieldsDataStore ,
ISSUE24915_FIXTURE  )

◆ BOOST_FIXTURE_TEST_CASE() [2/2]

BOOST_FIXTURE_TEST_CASE ( SchematicVariantDoesNotLeakIntoDataStore ,
ISSUE24915_FIXTURE  )