tests specific to circle ci

This commit is contained in:
Dylan Vorster
2017-11-21 00:48:07 +02:00
parent 7372ad075d
commit 1fd302a4e1

View File

@@ -14,9 +14,16 @@ async function itShould(directive, test: (page: puppeteer.Page) => any){
}
beforeAll(async () => {
browser = await puppeteer.launch({
headless: false
});
if(process.env.CIRCLECI){
console.log("using CircleCI");
browser = await puppeteer.launch({
args: ['--no-sandbox', '--disable-setuid-sandbox']
});
}else{
browser = await puppeteer.launch({
headless: false
});
}
});
afterAll(() => {