Skip to content

DanielSuo117/velocitai / skills/save-verify-strategy

save-verify-strategy

Verified

表单保存后验证(Toast / 重定向 / 数据对比 / 富文本清空)。触发:保存验证、toast、重定向检测、Meta+A、保存成功判断。

FileKindSize
SKILL.mdskill md3.2 KB
references/data-comparison.mdmarkdown1.2 KB
references/macos-select-all.mdmarkdown1.1 KB
references/multi-tab-reentry.mdmarkdown1004 B

references/data-comparison.md

View on GitHub
# 数据对比验证模式(最终验证)

> 由 [save-verify-strategy](../SKILL.md) 按需加载。需要做保存前后数据比对时才读。

当没有 Toast 或 UI 反馈时,用「写入标记 → 保存 → 重新打开 → 读取对比」作为最终验证闭环。

```python
# ── 写入阶段 ──
timestamp = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
edit_page.fill_description(timestamp)
write_test_data("标记键名", timestamp)          # 持久化到配置文件

# ... 保存操作 ...

# ── 验证阶段(重新打开编辑页)──
saved = read_test_data().get("标记键名")
actual = edit_page.get_description_text()
allure.attach(saved, name="期望时间戳", ...)     # 无论成败都记录到报告
allure.attach(actual, name="实际时间戳", ...)
assert actual == saved, (
    f"数据不一致:期望='{saved}',实际='{actual}'"
)
```

**关键要点**:
1. 标记数据必须**写入配置文件**(跨用例共享,非内存变量),便于后续用例复用
2. 无论断言成败,都用 `allure.attach()` 将期望值和实际值写入报告
3. 断言失败信息必须包含**两个值的对比**,方便排查
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 194kUpdated Claude CodeCodexVerifiedInstall