describe(‘describe block’, () => {
Terra.validates.element(‘name [id]’); //screenshot name will be 'describe_block[id].png'
Terra.validates.element(‘name [[id]’); //screenshot name will be 'describe_block[[id].png'
});
Solution details
Extend TerraScreenshotNameResolver to handle this case as well.
Summary of scope
In https://github.com/cerner/terra-toolkit-boneyard/blob/main/config/wdio/visualRegressionConf.js there is a small logic which says that if there is a part of the name parameter of a screenshot validation call that is enclosed by the [ and ] characters, then only that part is added to the screenshot name, e.g.
Solution details
Out of scope