Skip to content
Snippets Groups Projects
Commit 2b1907b9 authored by Harjinder Singh's avatar Harjinder Singh
Browse files

given exit 1 code

parent 61a1c50c
No related branches found
No related tags found
3 merge requests!24added name roshan,!21exit code 1,!20added exit code0
Pipeline #195 passed
......@@ -10,4 +10,4 @@ job1:
- npm i
- export PERCY_TOKEN=3e70bb54021368d87b63c70412e1a8b7aa371d31c6659ef1f7f5a9e30e9081be
- npx percy exec -- node snapshot.js
- exit 0
\ No newline at end of file
- exit 1
\ No newline at end of file
......@@ -3,7 +3,9 @@ const puppeteer = require('puppeteer');
const FirstUrl = 'http://localhost:3000/login';
const SecondURL = 'http://localhost:3000/landing'
const expect = require('expect');
Test = async () => {
const browser = await puppeteer.launch({ headless: false });
const page = await browser.newPage()
await page.goto(FirstUrl);
......@@ -11,12 +13,16 @@ const expect = require('expect');
await page.goto(SecondURL);
await percySnapshot(page, 'landing page Snapshot')
await page.close();
await browser.close();
return 0;
}
Test();
// const PercyScript = require('@percy/script');
// // A script to navigate our app and take snapshots with Percy.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment