Skip to content

Commit

Permalink
puppeteer upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
digitaldesigndj committed Aug 27, 2023
1 parent 9b829f9 commit 70ee9f4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions test/1_puppet_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Deno.test(
"The homepage should work puppeteer (200)",
{
sanitizeResources: false,
sanitizeOps: false,
},
freshPuppetTestWrapper(async (t, page) => {
const response = await page.goto(`${BASE_URL}`, {
Expand All @@ -20,6 +21,7 @@ Deno.test(
"The showcase should work",
{
sanitizeResources: false,
sanitizeOps: false,
},
freshPuppetTestWrapper(async (t, page) => {
const response = await page.goto(`${BASE_URL}/showcase`, {
Expand All @@ -33,6 +35,7 @@ Deno.test(
"The 404 page should 404",
{
sanitizeResources: false,
sanitizeOps: false,
},
freshPuppetTestWrapper(async (t, page) => {
const response = await page.goto(`${BASE_URL}/404`, {
Expand Down
3 changes: 2 additions & 1 deletion test/wrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import { assertEquals } from "$std/testing/asserts.ts"
import { delay } from "$std/async/delay.ts"
import { startFreshServer } from "$fresh/tests/test_utils.ts"
import { BASE_URL, DENO_ENV } from "@/utils/config.js"
import puppeteer from "puppeteer"
// import puppeteer from "puppeteer"
import { default as puppeteer } from "npm:puppeteer"

const puppet_config = DENO_ENV === "development"
? { headless: false, defaultViewport: null }
Expand Down

0 comments on commit 70ee9f4

Please sign in to comment.