Skip to content

Commit

Permalink
adapt to puppeteer latest config
Browse files Browse the repository at this point in the history
  • Loading branch information
tianfeng92 committed Aug 26, 2024
1 parent 0033ad3 commit ebe2057
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
branches: [main]

jobs:
build:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down
4 changes: 2 additions & 2 deletions src/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
} from '@puppeteer/replay';
import { Schema } from '@puppeteer/replay';
import fs from 'fs';
import puppeteer, { Product } from 'puppeteer';
import puppeteer, { SupportedBrowser } from 'puppeteer';

type UserFlow = Schema.UserFlow;
type Step = Schema.Step;
Expand Down Expand Up @@ -156,7 +156,7 @@ async function runReplay(recording: UserFlow) {
try {
const browser = await puppeteer.launch({
headless: false,
product: process.env.BROWSER_NAME as Product,
browser: process.env.BROWSER_NAME as SupportedBrowser,
executablePath: process.env.BROWSER_PATH,
});

Expand Down

0 comments on commit ebe2057

Please sign in to comment.