You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .agents/skills/e2e-test/SKILL.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,7 +66,7 @@ Do not read the full reference files until the decision tree or workflow sends y
66
66
5.**Never use `TestHelpers.delay()`** — use `Assertions.*` which has auto-retry
67
67
6.**Use `FixtureBuilder` for state** — do not set state through UI interactions
68
68
7.**Selectors live in `*.testIds.ts`** (co-located) or `tests/selectors/` (legacy)
69
-
8.**Tag correctly** — Use the tag that matches your feature and test type. Options include `SmokeE2E`, `SmokeTrade`, `SmokePredictions`, `SmokePerps`, `SmokeConfirmations`, `RegressionTrade`, `RegressionWallet`, etc. Check **`tests/tags.js`** for the full list and descriptions, and **existing specs in the same feature folder** to see which tag they use.
69
+
8.**Tag correctly** — Use the tag that matches your feature and test type. Options include `SmokeE2E`, `SmokeSwap`, `SmokeStake`, `SmokeMoney`, `SmokePredictions`, `SmokePerps`, `SmokeConfirmations`, `RegressionTrade`, `RegressionWallet`, etc. Check **`tests/tags.js`** for the full list and descriptions, and **existing specs in the same feature folder** to see which tag they use.
70
70
9.**Descriptive test names** — no 'should' prefix (e.g., `'opens market details'`)
71
71
10.**Fix lint/tsc before running** — never run with known errors
| Regression |`tests/regression/<feature>/<name>.spec.ts`|`RegressionTrade`, `RegressionWallet`, etc. |
9
9
10
-
Import tags from `tests/tags.ts`. Check **`tests/tags.js`** for the full list and descriptions. Use the same tag as **existing specs in that feature folder** (e.g. `tests/smoke/predict/` uses `SmokeTrade`).
10
+
Import tags from `tests/tags.ts`. Check **`tests/tags.js`** for the full list and descriptions. Use the same tag as **existing specs in that feature folder** (e.g. `tests/smoke/swap/` uses `SmokeSwap`, `tests/smoke/stake/` uses `SmokeStake`, `tests/smoke/card/` and `tests/smoke/ramps/` use `SmokeMoney`).
@@ -66,11 +63,7 @@ function buildComment(results) {
66
63
].join('\n');
67
64
}
68
65
69
-
if(valueMismatches>0){
70
-
return`✅ ${COMMENT_MARKER} — Schema is up to date**\n${valueMismatches} value mismatches detected (expected — fixture represents an existing user).\n[View details](${RUN_URL})`;
71
-
}
72
-
73
-
return`✅ ${COMMENT_MARKER} — No differences found**\nFixture is up to date. [View details](${RUN_URL})`;
66
+
returnnull;
74
67
}
75
68
76
69
functionemitAnnotation(results){
@@ -148,11 +141,16 @@ async function main() {
148
141
149
142
// Post PR comment if this is a PR
150
143
if(PR_NUMBER){
144
+
// Always clean up any prior fixture-validation comments so passing runs
145
+
// remove stale "structural changes" comments from previous failures.
146
+
awaitdeletePreviousComments();
147
+
151
148
constcomment=buildComment(results);
152
149
if(comment){
153
-
awaitdeletePreviousComments();
154
150
awaitpostComment(comment);
155
151
console.log(`Posted fixture validation comment on PR #${PR_NUMBER}`);
0 commit comments