When setting up an A/B test, creating a new variation gives that variation a default name like Variation 1. This is fine, but gives an unexpected null value in code. It should include testVariationName “Variation 1” where it is accessible in code.
Reproduction:
Set up code like this, set up an a/b test, create a new variation and don’t change the name, then view “Variation 1”. It should log "variation name", null
.
function contentLoaded(data, content) {
console.log("variation name", content.testVariationName);
}
...
<BuilderComponent model="page" contentLoaded={contentLoaded} />