We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 160a223 commit 1d53326Copy full SHA for 1d53326
test/main.js
@@ -1,18 +1,18 @@
1
-import { launch } from 'puppeteer';
+const puppeteer = require('puppeteer');
2
3
(async () => {
4
console.log('Starting test...');
5
6
- const browser = await launch({
+ const browser = await puppeteer.launch({
7
headless: true,
8
args: ['--no-sandbox', '--disable-setuid-sandbox']
9
});
10
11
try {
12
const page = await browser.newPage();
13
14
- console.log('Navigating to http://localhost/accounts/signup/...');
15
- await page.goto('http://localhost/accounts/signup/', {
+ console.log('Navigating to http://localhost:80/accounts/signup/...');
+ await page.goto('http://localhost:80/accounts/signup/', {
16
waitUntil: 'networkidle2',
17
timeout: 30000
18
0 commit comments