BackstopJS
BackstopJS copied to clipboard
Different scenarios with same references
Is it possible to have different scenarios that all point to one set of references?
I have some pages with different base fonts (16px / 10px) and I need to serve different CSS files, but the end result in those components on those pages are suppose to be the same.
So basically you would have one source of truth with multiple scenarios using the references of one particular scenario
Scenario A : create references Scenario B : do not create new reference, use same references as scenario A
That way, if scenario A & B fails, you create new references on Scenario A. If scenario B fails and A passes, you know that B needs fixing.
This ensures that if Scenario A and B pass, it's because they are exactly the same.
This is a little confusing to follow -- but please check the docs for the referenceUrl
property. Maybe this helps?
Otherwise you may need to do a dynamic config.
I apologize for the confusion.
Basically I have two scenarios, but I want both scenarios to point to the same references. Currently when you create a scenario it will by default create references for that scenario. I want to create a scenario and tell it : don't create references for this scenario, base your references off of this other scenario.
Does that make more sens?
Edit: ill test out referenceUrl