mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-09-23 03:05:56 +00:00
Refactor: --- Hooks should be placed before the tests such that it is obvious that you read what is set in hooks before reading the tests. Here, test.afterEach is placed at the top of test describe. Uncomment the Mobile Safari browser, it has to work and is working. Fixes: --- On the afterEach hook, we were deleting the rules and waiting for the page load, with await page.waitForLoadState('domcontentloaded') which behaves unreliably or being flaky on multiple runs. In order to fix this, we can simply go for the selector count expectation to be 0 that is not present. In this case, the delete button should not be present after the rule is successfully deleted. Also, avoid using page.getByText instead use page.locator with selectors, because getByText will lead to problems when you have the text present elsewhere in the same page. Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/9036 Reviewed-by: Antonin Delpeuch <wetneb@noreply.codeberg.org> Reviewed-by: Beowulf <beowulf@beocode.eu> Reviewed-by: Otto <otto@codeberg.org> Co-authored-by: Nirmal Kumar R <mysticmode@yahoo.com> Co-committed-by: Nirmal Kumar R <mysticmode@yahoo.com> |
||
---|---|---|
.. | ||
e2e | ||
fuzz | ||
gitea-lfs-meta | ||
gitea-repositories-meta | ||
integration | ||
testdata/data | ||
mysql.ini.tmpl | ||
pgsql.ini.tmpl | ||
sqlite.ini.tmpl | ||
test_utils.go |