Skip to content

Commit 1d53326

Browse files
committed
Undo change to ES module
1 parent 160a223 commit 1d53326

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/main.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
import { launch } from 'puppeteer';
1+
const puppeteer = require('puppeteer');
22

33
(async () => {
44
console.log('Starting test...');
55

6-
const browser = await launch({
6+
const browser = await puppeteer.launch({
77
headless: true,
88
args: ['--no-sandbox', '--disable-setuid-sandbox']
99
});
1010

1111
try {
1212
const page = await browser.newPage();
1313

14-
console.log('Navigating to http://localhost/accounts/signup/...');
15-
await page.goto('http://localhost/accounts/signup/', {
14+
console.log('Navigating to http://localhost:80/accounts/signup/...');
15+
await page.goto('http://localhost:80/accounts/signup/', {
1616
waitUntil: 'networkidle2',
1717
timeout: 30000
1818
});

0 commit comments

Comments
 (0)