Giter VIP home page Giter VIP logo

e2e-puppeteer's Introduction

e2e-puppeteer

前端端到端测试实践

环境

node: 12.14.0 

解决问题

通过puppeteer模拟用户操作,将操作后的页面效果进行截屏保存,此外保留第一次成功运行后的所有截屏图片,回归测试时可利用新旧截屏图片对比是否一致找出问题。

目录及文件介绍

  • compared :存放前后图片对比结果生成的图片
  • imgs :存放页面截图
    • first-test :存放第一次运行测试脚本(main.js)所产生的的页面截图
  • src:存放核心源码
    • test :存放测试脚本
  • compare.js :存放基于resemblejs的图片对比脚本
  • main.js :入口文件
  • runDiff.js :执行图片对比

e2e-puppeteer's People

Contributors

go-on-the-way avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.