Skip to content

Commit e997ccc

Browse files
authored
feat: customTags optional field added (#157)
1 parent eb5c4a8 commit e997ccc

File tree

6 files changed

+14
-9
lines changed

6 files changed

+14
-9
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ cy.vrtTrack("Whole page with additional options", {
132132
viewport: "1920x1080",
133133
os: "MacOS",
134134
device: "Cloud agent",
135+
customTags: "Cloud, DarkTheme, Auth",
135136
diffTollerancePercent: 1,
136137
ignoreAreas: [{ x: 1, y: 2, width: 100, height: 200 }],
137138
retryLimit: 2,

cypress/integration/example.spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ context("Visual Regression Tracker", () => {
3232
cy.vrtTrack("With additional options", {
3333
os: "MacOS",
3434
device: "Cloud agent",
35+
customTags: "Cloud, DarkTheme, Auth",
3536
diffTollerancePercent: 0,
3637
ignoreAreas: [
3738
{

lib/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ declare namespace Cypress {
1010
* cy.get("#id").vrtTrack("name", {
1111
* os: "MacOS",
1212
* device: "Cloud agent",
13+
* customTags: "Cloud, DarkTheme, Auth",
1314
* diffTollerancePercent: 1.23,
1415
* ignoreAreas: [
1516
* {x: 1, y: 2, width: 100, height: 200}
@@ -56,6 +57,7 @@ declare namespace Cypress {
5657
viewport?: string;
5758
os?: string;
5859
device?: string;
60+
customTags?: string;
5961
diffTollerancePercent?: number;
6062
ignoreAreas?: IgnoreArea[];
6163
retryLimit?: number;

lib/utils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ export const toTestRunDto = ({
3838
}`,
3939
os: options?.os,
4040
device: options?.device,
41+
customTags: options?.customTags,
4142
diffTollerancePercent: options?.diffTollerancePercent,
4243
ignoreAreas: options?.ignoreAreas,
4344
});

package-lock.json

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
},
2424
"homepage": "https://github.com/Visual-Regression-Tracker/agent-cypress#readme",
2525
"dependencies": {
26-
"@visual-regression-tracker/sdk-js": "5.1.1"
26+
"@visual-regression-tracker/sdk-js": "5.2.0"
2727
},
2828
"devDependencies": {
2929
"@types/jest": "^26.0.24",

0 commit comments

Comments
 (0)