mirror of
1
Fork 0
forgejo/tests
Gusted a10c6eb9c9
[GITEA] Fix generated source URL on rendered files
- The permalink and 'Reference in New issue' URL of an renderable
file (those where you can see the source and a rendered version of it,
such as markdown) doesn't contain `?display=source`. This leads the
issue that the URL doesn't have any effect, as by default the rendered
version is shown and thus not the source.
- Add `?display=source` to the permalink URL and to 'Reference in New Issue' if it's renderable file.
- Add integration testing.

(cherry picked from commit 458f20f862)
(cherry picked from commit 5e630d7b10)

Conflicts:
	models/fixtures/repo_unit.yml
	https://codeberg.org/forgejo/forgejo/pulls/1178
2023-08-01 10:09:23 +02:00
..
e2e Refactor web package and context package (#25298) 2023-06-18 09:59:09 +02:00
fuzz Move fuzz tests into tests/fuzz (#22376) 2023-01-09 15:30:14 +08:00
gitea-lfs-meta Test views of LFS files (#22196) 2022-12-23 07:41:56 +08:00
gitea-repositories-meta Add commits dropdown in PR files view and allow commit by commit review (#25528) 2023-07-28 21:18:12 +02:00
integration [GITEA] Fix generated source URL on rendered files 2023-08-01 10:09:23 +02:00
mssql.ini.tmpl [CI] set PASSWORD_HASH_ALGO = argon2 for integration tests 2023-08-01 08:26:38 +02:00
mysql.ini.tmpl [CI] set PASSWORD_HASH_ALGO = argon2 for integration tests 2023-08-01 08:26:38 +02:00
mysql8.ini.tmpl [CI] set PASSWORD_HASH_ALGO = argon2 for integration tests 2023-08-01 08:26:38 +02:00
pgsql.ini.tmpl [CI] tests/pgsql.ini.tmpl: do not use minio 2023-08-01 08:26:38 +02:00
sqlite.ini.tmpl [TESTS] increase test-sqlite log level to Trace 2023-08-01 09:26:58 +02:00
test_utils.go [TESTS] Speed up TestEventSourceManagerRun 2023-08-01 09:29:47 +02:00