Get the Visual service to your wdio.conf file.
services: [
[
"visual",
{
baselineFolder: path.join(process.cwd(), "snapshot", "baseline"),
formatImageName: "{tag}-{width}x{height}",
screenshotPath: path.join(process.cwd(), "screenshot"),
savePerInstance: true,
addIOSBezelCorners: true,
},
],
],
Then use below code to validate.
No comments:
Post a Comment