mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2026-05-28 02:52:14 -04:00
The race condition on the test is happening because, we are immediately calling `page.goto()` after the `Commit changes` button is clicked without waiting for the previous redirect to finish. This interruption leads to the error: `Error: page.goto: Target page, context or browser has been closed`. By adding the `await expect(page).toHaveURL`, Playwright waits for the redirection and verifies the URL and then finally go to the next `await page.goto()` to go to the `edit` page of the file. Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/12554 Reviewed-by: Gusted <gusted@noreply.codeberg.org> |
||
|---|---|---|
| .. | ||
| e2e | ||
| forgery | ||
| fuzz | ||
| gitea-lfs-meta | ||
| gitea-repositories-meta | ||
| integration | ||
| testdata/data | ||
| install.ini.tmpl | ||
| mysql.ini.tmpl | ||
| pgsql.ini.tmpl | ||
| sqlite.ini.tmpl | ||
| test_utils.go | ||
| unittest.ini.tmpl | ||