Skip to content

Commit

Permalink
Removed headless:new option during launching browser instance
Browse files Browse the repository at this point in the history
  • Loading branch information
voidCounter committed Jun 18, 2024
1 parent e82e5f5 commit 3d24025
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
5 changes: 1 addition & 4 deletions test/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ let server;
before(async function() {
server = http.createServer({root: path.join(__dirname, "..")});
server.listen(8000);
global.browser = global.browser || await puppeteer.launch({headless: "new"});
global.browser = global.browser || await puppeteer.launch();
});

describe("Demo", async function() {
Expand All @@ -41,9 +41,6 @@ let server;
const oldUrl = page.url();
await page.click("#demo");

// wait for the page to load
await page.waitForNavigation({timeout: 0});

// Make sure the URL changed
assert.notEqual(oldUrl, page.url());

Expand Down
2 changes: 1 addition & 1 deletion test/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const indexHTMLURL = "file://" + path.join(__dirname, "..", "index.html");

(async () => {
before(async function() {
global.browser = global.browser || await puppeteer.launch({headless: "new"});
global.browser = global.browser || await puppeteer.launch();
});

describe("Form", async function() {
Expand Down
2 changes: 1 addition & 1 deletion test/javascript_components.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ let _js = "";

(async () => {
before(async function() {
global.browser = global.browser || await puppeteer.launch({headless: "new"});
global.browser = global.browser || await puppeteer.launch();
});

describe("JavaScript components", async function() {
Expand Down
2 changes: 1 addition & 1 deletion test/page_structure.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ async function getProperty(page, selector, property) {

(async () => {
before(async function() {
global.browser = global.browser || await puppeteer.launch({headless: "new"});
global.browser = global.browser || await puppeteer.launch();
});

describe("Page Structure", async function() {
Expand Down

0 comments on commit 3d24025

Please sign in to comment.