Skip to content
Snippets Groups Projects
Select Git revision
  • 7e60835cb38504b4a2d0b7180bb0313d523ea7c6
  • master default protected
  • testing
  • staging
4 results

snapshot.js

Blame
  • harjinder.singh's avatar
    Harjinder Singh authored
    7e60835c
    History
    snapshot.js 378 B
    const PercyScript = require('@percy/script');
    
    // A script to navigate our app and take snapshots with Percy.
    PercyScript.run(async (page, percySnapshot) => {
      await page.goto('http://localhost:3000/login');
      await percySnapshot('login Snapshot');
    
      await page.goto('http://localhost:3000/landing');
      await percySnapshot('landing snapshot');
    
    
      // Enter a new to-do.
      
    });