Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/go-on-the-way/e2e-puppeteer
前端端到端测试实践
https://github.com/go-on-the-way/e2e-puppeteer
e2e puppeteer resemblejs
Last synced: 4 days ago
JSON representation
前端端到端测试实践
- Host: GitHub
- URL: https://github.com/go-on-the-way/e2e-puppeteer
- Owner: go-on-the-way
- License: mit
- Created: 2020-06-15T08:44:21.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-06-15T09:11:39.000Z (over 4 years ago)
- Last Synced: 2024-11-09T01:13:03.446Z (about 2 months ago)
- Topics: e2e, puppeteer, resemblejs
- Language: JavaScript
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# e2e-puppeteer
前端端到端测试实践### 环境
```
node: 12.14.0
```### 解决问题
通过puppeteer模拟用户操作,将操作后的页面效果进行截屏保存,此外保留第一次成功运行后的所有截屏图片,回归测试时可利用新旧截屏图片对比是否一致找出问题。### 目录及文件介绍
- compared :存放前后图片对比结果生成的图片
- imgs :存放页面截图
- first-test :存放第一次运行测试脚本(main.js)所产生的的页面截图
- src:存放核心源码
- test :存放测试脚本
- compare.js :存放基于resemblejs的图片对比脚本
- main.js :入口文件
- runDiff.js :执行图片对比