Resolution: Not an issue
Affects Version/s: 1.2.2
Fix Version/s: None
Component/s: Preview App
The Preview-as-visitor functionality does not apply traits correctly. Magnolia does not serve the variants that it should.
To reproduce on demo:
- Create two variants for /sportstation. The order of variants is important.
- London: Country=United Kingdom AND Cookie WeatherLocality=London
- UK: Country=United Kingdom
- Preview the page as visitor. Set Country=United Kingdom.
- Expected: London variant is served. Both variants have equal weight (1 matching trait) so we serve whichever variant comes first (London).
- Actual: UK variant is served although it is second in the variant order.
- Move the UK variant to first place, above London.
- Preview as visitor. Set Country=United Kingdom and WeatherLocality=London
- Expected: London variant is served. London now has more weight (2 matching traits) so we serve it first regardless of variant order.
- Actual: UK variant is served.