Skip to content

Commit 46dde73

Browse files
committed
chore(test): wait for close request when closing
Signed-off-by: Max <[email protected]>
1 parent 3f211d5 commit 46dde73

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

playwright/support/fixtures/File.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ export class File {
4949

5050
async close() {
5151
await this.page.getByRole('button', { name: 'Close', exact: true }).click()
52+
await this.page.waitForRequest(/close/)
5253
await expect(this.page.getByLabel(this.name, { exact: true }))
5354
.not.toBeVisible()
5455
}

0 commit comments

Comments
 (0)