Skip to content

Commit

Permalink
TEST Refactor: waitForFileChooser({ timeout: 800_000 #2326
Browse files Browse the repository at this point in the history
  • Loading branch information
BenediktMehl committed Dec 9, 2022
1 parent 0f5e5d5 commit 8ce820e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { clickButtonOnPageElement } from "../../../../puppeteer.helper"
export class UploadFileButtonPageObject {
async openFiles(paths: string[], clickOnFileChooser = true) {
const [fileChooser] = await Promise.all([
page.waitForFileChooser({ timeout: 60_000 }),
page.waitForFileChooser({ timeout: 800_000 }),
clickOnFileChooser && clickButtonOnPageElement("[title='Load cc.json files']")
])

Expand Down

0 comments on commit 8ce820e

Please sign in to comment.