Skip to content

Commit

Permalink
add a bit delay
Browse files Browse the repository at this point in the history
  • Loading branch information
shuding committed May 1, 2023
1 parent 6317940 commit f2cbb7f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/e2e/app-dir/actions/app-action.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ createNextDescribe(
next.on('stdout', (log) => {
logs.push(log)
})
next.on('stderr', (log) => {
logs.push(log)
})

const browser = await next.browser('/server')

Expand All @@ -100,6 +103,8 @@ createNextDescribe(
list.items.add(file);
document.getElementById('file').files = list.files;
`)

await new Promise((resolve) => setTimeout(resolve, 1000))
await browser.elementByCss('#upload').click()

expect(
Expand Down

0 comments on commit f2cbb7f

Please sign in to comment.