@anselmdk/feature-spec-md 0.6.2 → 0.7.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +63 -16
- package/SPEC_FORMAT.md +98 -0
- package/dist/githubActionDiffReport.js +16 -26
- package/dist/githubActionDiffReport.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/mockReports.js +7 -4
- package/dist/mockReports.js.map +1 -1
- package/dist/playwright.d.ts +3 -3
- package/dist/playwright.d.ts.map +1 -1
- package/dist/playwright.js +62 -15
- package/dist/playwright.js.map +1 -1
- package/dist/reportTemplate.d.ts.map +1 -1
- package/dist/reportTemplate.js +178 -98
- package/dist/reportTemplate.js.map +1 -1
- package/dist/screenshots.d.ts +1 -3
- package/dist/screenshots.d.ts.map +1 -1
- package/dist/screenshots.js +20 -23
- package/dist/screenshots.js.map +1 -1
- package/dist/types.d.ts +22 -23
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/mocks/current/screenshots/screenshots.json +19 -1
- package/src/mocks/current/specs/support-desk.model.md +14 -1
- package/src/mocks/previous/screenshots/screenshots.json +10 -1
package/dist/screenshots.js
CHANGED
|
@@ -1,42 +1,36 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Screenshot evidence manifest loading and normalization for generated spec
|
|
3
|
-
* implementation reports.
|
|
4
|
-
*/
|
|
5
1
|
import { readFile } from "node:fs/promises";
|
|
6
2
|
import { expandArtifactPatterns } from "./filePatterns.js";
|
|
7
|
-
/** Load screenshot evidence manifests and normalize entries for report rendering. */
|
|
8
3
|
export async function collectSpecScreenshots(patterns) {
|
|
9
|
-
const
|
|
4
|
+
const evidence = [];
|
|
10
5
|
for (const file of await expandArtifactPatterns(patterns)) {
|
|
11
6
|
const parsed = JSON.parse(await readFile(file, "utf8"));
|
|
12
|
-
const entries = Array.isArray(parsed)
|
|
13
|
-
? parsed
|
|
7
|
+
const entries = isRecord(parsed) && Array.isArray(parsed.evidence)
|
|
8
|
+
? parsed.evidence
|
|
14
9
|
: isRecord(parsed) && Array.isArray(parsed.screenshots)
|
|
15
10
|
? parsed.screenshots
|
|
16
11
|
: [];
|
|
17
12
|
for (const entry of entries) {
|
|
18
|
-
const
|
|
19
|
-
if (
|
|
20
|
-
|
|
13
|
+
const normalized = normalizeEvidence(entry);
|
|
14
|
+
if (normalized)
|
|
15
|
+
evidence.push(normalized);
|
|
21
16
|
}
|
|
22
17
|
}
|
|
23
|
-
return
|
|
18
|
+
return evidence;
|
|
24
19
|
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
const screenshotKeys = new Set(screenshots.map((screenshot) => screenshotKey(screenshot.specPath, screenshot.line)));
|
|
20
|
+
export function validateScenarioScreenshots(specs, evidence) {
|
|
21
|
+
const evidenceKeys = new Set(evidence.map((entry) => screenshotKey(entry.specPath, entry.line)));
|
|
28
22
|
const issues = [];
|
|
29
23
|
for (const spec of specs) {
|
|
30
24
|
for (const scenario of spec.scenarios) {
|
|
31
25
|
if (scenario.evidence.screenshots === "required") {
|
|
32
26
|
for (const step of scenario.steps) {
|
|
33
|
-
if (!
|
|
27
|
+
if (!evidenceKeys.has(screenshotKey(spec.filePath, step.line))) {
|
|
34
28
|
issues.push({
|
|
35
29
|
code: "missing-screenshot-evidence",
|
|
36
30
|
severity: "error",
|
|
37
31
|
filePath: spec.filePath,
|
|
38
32
|
line: step.line,
|
|
39
|
-
message: `
|
|
33
|
+
message: `Visual evidence is required for ${scenario.id} ${step.keyword} ${step.text}`,
|
|
40
34
|
});
|
|
41
35
|
}
|
|
42
36
|
}
|
|
@@ -51,23 +45,26 @@ export function screenshotKey(filePath, line) {
|
|
|
51
45
|
export function normalizeFilePath(filePath) {
|
|
52
46
|
return filePath.replace(/\\/g, "/").replace(/^\.\//, "");
|
|
53
47
|
}
|
|
54
|
-
function
|
|
48
|
+
function normalizeEvidence(value) {
|
|
55
49
|
if (!isRecord(value))
|
|
56
50
|
return null;
|
|
57
51
|
const specPath = value.specPath;
|
|
58
52
|
const line = value.line;
|
|
53
|
+
const changed = value.changed;
|
|
59
54
|
const imagePath = value.path ?? value.imagePath;
|
|
60
|
-
if (typeof specPath !== "string" ||
|
|
61
|
-
|
|
62
|
-
|
|
55
|
+
if (typeof specPath !== "string" || typeof line !== "number")
|
|
56
|
+
return null;
|
|
57
|
+
const changedValue = typeof changed === "boolean" ? changed : true;
|
|
58
|
+
if (changedValue && typeof imagePath !== "string")
|
|
63
59
|
return null;
|
|
64
|
-
}
|
|
65
60
|
return {
|
|
66
61
|
specPath: normalizeFilePath(specPath),
|
|
67
62
|
line,
|
|
68
|
-
|
|
63
|
+
changed: changedValue,
|
|
64
|
+
path: typeof imagePath === "string" ? imagePath : undefined,
|
|
69
65
|
title: typeof value.title === "string" ? value.title : undefined,
|
|
70
66
|
testPath: typeof value.testPath === "string" ? value.testPath : undefined,
|
|
67
|
+
comparedWithLine: typeof value.comparedWithLine === "number" ? value.comparedWithLine : undefined,
|
|
71
68
|
};
|
|
72
69
|
}
|
|
73
70
|
function isRecord(value) {
|
package/dist/screenshots.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"screenshots.js","sourceRoot":"","sources":["../src/screenshots.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"screenshots.js","sourceRoot":"","sources":["../src/screenshots.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAG3D,MAAM,CAAC,KAAK,UAAU,sBAAsB,CAAC,QAAkB;IAC7D,MAAM,QAAQ,GAAqB,EAAE,CAAC;IACtC,KAAK,MAAM,IAAI,IAAI,MAAM,sBAAsB,CAAC,QAAQ,CAAC,EAAE,CAAC;QAC1D,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,MA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AAO,IAAI,CAAC;IAC/D,OAAO;QACL,QAAQ,EAAE,iBAAiB,CAAC,QAAQ,CAAC;QACrC,IAAI;QACJ,OAAO,EAAE,YAAY;QACrB,IAAI,EAAE,OAAO,SAAS,KAAK,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS;QAC3D,KAAK,EAAE,OAAO,KAAK,CAAC,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS;QAChE,QAAQ,EAAE,OAAO,KAAK,CAAC,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS;QACzE,gBAAgB,EACd,OAAO,KAAK,CAAC,gBAAgB,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,CAAC,SAAS;KAClF,CAAC;AACJ,CAAC;AAED,SAAS,QAAQ,CAAC,KAAc;IAC9B,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,CAAC;AACrD,CAAC"}
|
package/dist/types.d.ts
CHANGED
|
@@ -1,33 +1,43 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shared TypeScript types for parsed spec documents, validation issues,
|
|
3
|
-
* coverage summaries, test references, and screenshot evidence.
|
|
4
|
-
*/
|
|
5
|
-
/** Shared frontmatter fields supported by all spec documents. */
|
|
6
1
|
export type SpecFrontmatter = {
|
|
7
2
|
id: string;
|
|
8
3
|
title: string;
|
|
9
4
|
status?: "draft" | "active" | "deprecated";
|
|
10
5
|
owner?: string;
|
|
11
6
|
};
|
|
12
|
-
/** Frontmatter fields supported by documents that may reference models. */
|
|
13
7
|
export type ModelReferenceFrontmatter = SpecFrontmatter & {
|
|
14
8
|
model?: string;
|
|
15
9
|
models?: string[] | string;
|
|
16
10
|
};
|
|
11
|
+
export type SpecExtensionSection = {
|
|
12
|
+
title: string;
|
|
13
|
+
body: string;
|
|
14
|
+
line: number;
|
|
15
|
+
};
|
|
16
|
+
export type SpecExtensionSections = {
|
|
17
|
+
/** Known unknowns, unresolved choices, or decisions that need a product answer. */
|
|
18
|
+
openQuestions?: SpecExtensionSection;
|
|
19
|
+
/** Assumptions the spec currently relies on until they are confirmed or replaced. */
|
|
20
|
+
assumptions?: SpecExtensionSection;
|
|
21
|
+
/** API endpoints, request/response contracts, auth requirements, and OpenAPI links. */
|
|
22
|
+
apiContract?: SpecExtensionSection;
|
|
23
|
+
/** Role/group capability matrix, permission rules, and access-control notes. */
|
|
24
|
+
permissions?: SpecExtensionSection;
|
|
25
|
+
/** Entity state machines, state transition rules, and lifecycle examples. */
|
|
26
|
+
lifecycle?: SpecExtensionSection;
|
|
27
|
+
/** Mock adapters, seeded data, fixed-time setup, and CI/e2e environment contracts. */
|
|
28
|
+
testEnvironment?: SpecExtensionSection;
|
|
29
|
+
};
|
|
17
30
|
export type ScenarioTestType = "unit" | "integration" | "playwright" | "manual" | "skip";
|
|
18
31
|
export type ScreenshotPolicy = "required" | "optional" | "skip";
|
|
19
32
|
export type ScenarioEvidencePolicy = {
|
|
20
33
|
test: ScenarioTestType;
|
|
21
34
|
screenshots: ScreenshotPolicy;
|
|
22
35
|
};
|
|
23
|
-
/** Frontmatter fields supported by `*.feature.md` files. */
|
|
24
36
|
export type FeatureFrontmatter = ModelReferenceFrontmatter & {
|
|
25
37
|
test?: ScenarioTestType;
|
|
26
38
|
screenshots?: ScreenshotPolicy;
|
|
27
39
|
};
|
|
28
|
-
/** Frontmatter fields supported by `*.design.md` files. */
|
|
29
40
|
export type DesignFrontmatter = ModelReferenceFrontmatter;
|
|
30
|
-
/** Parsed contents of one `*.model.md` file. */
|
|
31
41
|
export type ModelSpec = {
|
|
32
42
|
kind: "model";
|
|
33
43
|
filePath: string;
|
|
@@ -38,7 +48,6 @@ export type ModelSpec = {
|
|
|
38
48
|
rules: FeatureRule[];
|
|
39
49
|
source: string;
|
|
40
50
|
};
|
|
41
|
-
/** Parsed contents of one `*.feature.md` file. */
|
|
42
51
|
export type FeatureSpec = {
|
|
43
52
|
kind?: "feature";
|
|
44
53
|
filePath: string;
|
|
@@ -49,7 +58,6 @@ export type FeatureSpec = {
|
|
|
49
58
|
scenarios: FeatureScenario[];
|
|
50
59
|
source: string;
|
|
51
60
|
};
|
|
52
|
-
/** Parsed contents of one `*.stack.md` file. */
|
|
53
61
|
export type StackSpec = {
|
|
54
62
|
kind: "stack";
|
|
55
63
|
filePath: string;
|
|
@@ -63,7 +71,6 @@ export type StackSpec = {
|
|
|
63
71
|
rules: FeatureRule[];
|
|
64
72
|
source: string;
|
|
65
73
|
};
|
|
66
|
-
/** Parsed contents of one `*.design.md` file. */
|
|
67
74
|
export type DesignSpec = {
|
|
68
75
|
kind: "design";
|
|
69
76
|
filePath: string;
|
|
@@ -78,16 +85,13 @@ export type DesignSpec = {
|
|
|
78
85
|
rules: FeatureRule[];
|
|
79
86
|
source: string;
|
|
80
87
|
};
|
|
81
|
-
/** Any parsed spec document. */
|
|
82
88
|
export type SpecDocument = ModelSpec | FeatureSpec | StackSpec | DesignSpec;
|
|
83
|
-
/** A model concept declared in the `## Model` section. */
|
|
84
89
|
export type ModelItem = {
|
|
85
90
|
id: string;
|
|
86
91
|
title: string;
|
|
87
92
|
body: string;
|
|
88
93
|
line: number;
|
|
89
94
|
};
|
|
90
|
-
/** A rule declared in the `## Rules` section. */
|
|
91
95
|
export type FeatureRule = {
|
|
92
96
|
id: string;
|
|
93
97
|
text: string;
|
|
@@ -95,7 +99,6 @@ export type FeatureRule = {
|
|
|
95
99
|
strength: "required" | "recommended" | "optional" | "unspecified";
|
|
96
100
|
line: number;
|
|
97
101
|
};
|
|
98
|
-
/** A concrete example declared in the `## Scenarios` section. */
|
|
99
102
|
export type FeatureScenario = {
|
|
100
103
|
id: string;
|
|
101
104
|
title: string;
|
|
@@ -103,7 +106,6 @@ export type FeatureScenario = {
|
|
|
103
106
|
evidence: ScenarioEvidencePolicy;
|
|
104
107
|
steps: FeatureStep[];
|
|
105
108
|
};
|
|
106
|
-
/** A single Given / When / Then style step inside a scenario. */
|
|
107
109
|
export type FeatureStep = {
|
|
108
110
|
keyword: StepKeyword;
|
|
109
111
|
text: string;
|
|
@@ -111,7 +113,6 @@ export type FeatureStep = {
|
|
|
111
113
|
};
|
|
112
114
|
export type RuleKeyword = "MUST" | "MUST NOT" | "SHOULD" | "SHOULD NOT" | "MAY" | "OPTIONAL";
|
|
113
115
|
export type StepKeyword = "Given" | "When" | "Then" | "And" | "But";
|
|
114
|
-
/** Validation problem found in a spec, test reference, or report input. */
|
|
115
116
|
export type ValidationIssue = {
|
|
116
117
|
code: string;
|
|
117
118
|
severity: "error" | "warning";
|
|
@@ -119,7 +120,6 @@ export type ValidationIssue = {
|
|
|
119
120
|
filePath?: string;
|
|
120
121
|
line?: number;
|
|
121
122
|
};
|
|
122
|
-
/** A model item, rule, or scenario ID found in executable tests. */
|
|
123
123
|
export type TestReference = {
|
|
124
124
|
id: string;
|
|
125
125
|
filePath: string;
|
|
@@ -127,7 +127,6 @@ export type TestReference = {
|
|
|
127
127
|
kind: "model" | "rule" | "scenario";
|
|
128
128
|
source: "title" | "tag" | "covers" | "annotation" | "free-text";
|
|
129
129
|
};
|
|
130
|
-
/** Coverage state for one expected model item, rule, or scenario. */
|
|
131
130
|
export type CoverageItem = {
|
|
132
131
|
id: string;
|
|
133
132
|
title?: string;
|
|
@@ -136,7 +135,6 @@ export type CoverageItem = {
|
|
|
136
135
|
covered: boolean;
|
|
137
136
|
references: TestReference[];
|
|
138
137
|
};
|
|
139
|
-
/** Complete test coverage mapping for a set of spec documents. */
|
|
140
138
|
export type CoverageSummary = {
|
|
141
139
|
modelCoverage?: CoverageItem[];
|
|
142
140
|
ruleCoverage: CoverageItem[];
|
|
@@ -145,12 +143,13 @@ export type CoverageSummary = {
|
|
|
145
143
|
orphanRuleReferences: TestReference[];
|
|
146
144
|
orphanScenarioReferences: TestReference[];
|
|
147
145
|
};
|
|
148
|
-
/** Screenshot evidence associated with an exact spec line. */
|
|
149
146
|
export type SpecScreenshot = {
|
|
150
147
|
specPath: string;
|
|
151
148
|
line: number;
|
|
152
|
-
|
|
149
|
+
changed?: boolean;
|
|
150
|
+
path?: string;
|
|
153
151
|
title?: string;
|
|
154
152
|
testPath?: string;
|
|
153
|
+
comparedWithLine?: number;
|
|
155
154
|
};
|
|
156
155
|
//# sourceMappingURL=types.d.ts.map
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,YAAY,CAAC;IAC3C,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG,eAAe,GAAG;IACxD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,mFAAmF;IACnF,aAAa,CAAC,EAAE,oBAAoB,CAAC;IACrC,qFAAqF;IACrF,WAAW,CAAC,EAAE,oBAAoB,CAAC;IACnC,uFAAuF;IACvF,WAAW,CAAC,EAAE,oBAAoB,CAAC;IACnC,gFAAgF;IAChF,WAAW,CAAC,EAAE,oBAAoB,CAAC;IACnC,6EAA6E;IAC7E,SAAS,CAAC,EA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a,CAAC,EAAE,YAAY,EAAE,CAAC;IAC/B,YAAY,EAAE,YAAY,EAAE,CAAC;IAC7B,gBAAgB,EAAE,YAAY,EAAE,CAAC;IACjC,qBAAqB,CAAC,EAAE,aAAa,EAAE,CAAC;IACxC,oBAAoB,EAAE,aAAa,EAAE,CAAC;IACtC,wBAAwB,EAAE,aAAa,EAAE,CAAC;CAC3C,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,18 +1,36 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
2
|
+
"evidence": [
|
|
3
3
|
{
|
|
4
4
|
"specPath": "src/mocks/current/specs/ticket-inbox.feature.md",
|
|
5
5
|
"line": 27,
|
|
6
|
+
"changed": true,
|
|
6
7
|
"path": "screenshots/SUPPORT-INBOX-S001-line-27-current.svg",
|
|
7
8
|
"title": "Inbox with priority badges",
|
|
8
9
|
"testPath": "src/mocks/current/tests/supportDesk.spec.ts"
|
|
9
10
|
},
|
|
11
|
+
{
|
|
12
|
+
"specPath": "src/mocks/current/specs/ticket-inbox.feature.md",
|
|
13
|
+
"line": 28,
|
|
14
|
+
"changed": false,
|
|
15
|
+
"title": "Inbox remains visually unchanged after selecting the first ticket",
|
|
16
|
+
"testPath": "src/mocks/current/tests/supportDesk.spec.ts",
|
|
17
|
+
"comparedWithLine": 27
|
|
18
|
+
},
|
|
10
19
|
{
|
|
11
20
|
"specPath": "src/mocks/current/specs/ticket-reply.feature.md",
|
|
12
21
|
"line": 27,
|
|
22
|
+
"changed": true,
|
|
13
23
|
"path": "screenshots/SUPPORT-REPLY-S001-line-27-current.svg",
|
|
14
24
|
"title": "Reply composer with suggested answer",
|
|
15
25
|
"testPath": "src/mocks/current/tests/supportDesk.spec.ts"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"specPath": "src/mocks/current/specs/ticket-reply.feature.md",
|
|
29
|
+
"line": 28,
|
|
30
|
+
"changed": false,
|
|
31
|
+
"title": "Reply composer stays visually unchanged while text is reviewed",
|
|
32
|
+
"testPath": "src/mocks/current/tests/supportDesk.spec.ts",
|
|
33
|
+
"comparedWithLine": 27
|
|
16
34
|
}
|
|
17
35
|
]
|
|
18
36
|
}
|
|
@@ -26,4 +26,17 @@ A visible urgency label used to sort the queue.
|
|
|
26
26
|
|
|
27
27
|
## Rules
|
|
28
28
|
|
|
29
|
-
- SUPPORT-M-R001: Tickets
|
|
29
|
+
- SUPPORT-M-R001: Tickets keep a stable public reference.
|
|
30
|
+
|
|
31
|
+
## Open Questions
|
|
32
|
+
|
|
33
|
+
- SUPPORT-Q001: Should permission tables have optional coverage checks later?
|
|
34
|
+
|
|
35
|
+
## Assumptions
|
|
36
|
+
|
|
37
|
+
- SUPPORT-A001: Review notes are shown in reports as informational context.
|
|
38
|
+
|
|
39
|
+
## Permissions
|
|
40
|
+
|
|
41
|
+
- Agents can view assigned tickets.
|
|
42
|
+
- Leads can reassign tickets.
|
|
@@ -1,11 +1,20 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
2
|
+
"evidence": [
|
|
3
3
|
{
|
|
4
4
|
"specPath": "src/mocks/previous/specs/ticket-inbox.feature.md",
|
|
5
5
|
"line": 27,
|
|
6
|
+
"changed": true,
|
|
6
7
|
"path": "screenshots/SUPPORT-INBOX-S001-line-27-previous.svg",
|
|
7
8
|
"title": "Inbox before priority badges",
|
|
8
9
|
"testPath": "src/mocks/previous/tests/supportDesk.spec.ts"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"specPath": "src/mocks/previous/specs/ticket-inbox.feature.md",
|
|
13
|
+
"line": 28,
|
|
14
|
+
"changed": false,
|
|
15
|
+
"title": "Inbox remains visually unchanged after selecting the first ticket",
|
|
16
|
+
"testPath": "src/mocks/previous/tests/supportDesk.spec.ts",
|
|
17
|
+
"comparedWithLine": 27
|
|
9
18
|
}
|
|
10
19
|
]
|
|
11
20
|
}
|