picimako / terra-support

Adds support for Cerner's Terra UI component and test automation libraries.
https://plugins.jetbrains.com/plugin/15430-terra-support
Apache License 2.0
0 stars 0 forks source link

Extend screenshot name resolution to handle test ids #40

Closed picimako closed 3 years ago

picimako commented 3 years ago

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.

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

Out of scope

picimako commented 3 years ago

Completed on release branch.