Commit Graph

46 Commits

Author SHA1 Message Date
wn_ 91a91dac15 Perform validation of redirect URLs during the redirect process.
Previously, validation was only done after all redirects and the final request had completed.  This approach ensures all redirects are to URLs that pass extended validation.
2023-12-29 00:41:52 +00:00
wn_ 0ea9db3170 Fix specifying auth type in UrlHelper::fetch(), add a test for 403 auth retry. 2023-12-24 11:21:43 +00:00
wn_ 9a1f7c2ebf Appease PHPStan in UrlHelperTest 2023-12-23 19:58:39 +00:00
wn_ 3c171cc92c Add some tests for UrlHelper::fetch() 2023-12-23 19:52:56 +00:00
Chih-Hsuan Yen f1a9ac9b15 sanitizer: add a test to make sure <figure> is intact
Somehow with the old approach, `<figure>` is rearranged into `<head>`,
and the latter is stripped by `Sanitizer::strip_harmful_tags()` (see
[1]). The issue is fixed by [2]. Here I added a test for the regression.

[1] https://community.tt-rss.org/t/unexpected-behavior-with-figure-tag/6244
[2] 67012f9dac
2023-12-18 22:46:35 +08:00
Andrew Dolgov 2b8e344532
add some unittest options for xmlrunner 2023-12-02 12:48:54 +03:00
Andrew Dolgov e453befab6
fix filename 2023-12-02 12:47:36 +03:00
Andrew Dolgov dbb6e7291e
enable unit test results for selenium 2023-12-02 12:44:21 +03:00
Andrew Dolgov e52eaf0e7b
add sanitizer integration test 2023-12-02 11:14:07 +03:00
Andrew Dolgov 0b7d021f8e
add wait-for-element to selenium test 2023-11-01 13:40:35 +03:00
Andrew Dolgov 1be156408a
add some more phpunit api tests 2023-10-29 10:46:01 +03:00
Andrew Dolgov 7cd2c5cac8
fix apitest 2023-10-29 09:42:53 +03:00
Andrew Dolgov adf3985afa
fix circular dependency 2023-10-29 09:25:01 +03:00
Andrew Dolgov 8b72d9ab11
add phpunit integration (wip) 2023-10-29 09:14:18 +03:00
Andrew Dolgov 855695a862
add stuff necessary to run integration tests using phpunit 2023-10-28 18:45:09 +03:00
Andrew Dolgov 0ac8710ea1
add always-failing mock of api test 2023-10-28 18:08:42 +03:00
Andrew Dolgov d2424b9e4b
use python unittest for selenium tests 2023-10-28 11:11:13 +03:00
Andrew Dolgov 925256c81f
unify test class naming 2023-10-27 22:10:28 +03:00
Andrew Dolgov 5920ac814c
replace some dirname horrors with a separate unit-tested method 2023-10-27 22:07:28 +03:00
Andrew Dolgov 69c1c62992
add a workaround for make_self_url() when invoked off /api/ endpoint, add unit tests for this method 2023-10-24 22:27:27 +03:00
Andrew Dolgov efd5d79dde
make sure we fail properly 2023-10-22 13:51:24 +03:00
Andrew Dolgov db05575b2d
add configurable ns 2023-10-22 13:42:41 +03:00
Andrew Dolgov ce3eb32076
un-mock test, use SELENIUM_IMAGE 2023-10-22 13:35:01 +03:00
Andrew Dolgov 752c692170
use CI_COMMIT_SHORT_SHA for selenium test mock 2023-10-22 12:46:39 +03:00
Andrew Dolgov 382d01e8db
update test filename 2023-10-22 11:19:56 +03:00
Andrew Dolgov bde94dbf4b
add selenium mock 2023-10-22 10:57:58 +03:00
Andrew Dolgov e35a4a1306 tests: add stub autoloader, add a few more rewrite_relative tests 2022-03-22 14:32:32 +03:00
Andrew Dolgov 1c4f7ab3b8 * add phpunit as a dev dependency
* add some basic tests for UrlHelper::rewrite_relative()
 * fix UrlHelper::rewrite_relative() to work better on non-absolute
   relative URL paths
2022-03-22 12:24:31 +03:00
Andrew Dolgov 1aeeed930a remove a bunch of obsolete files 2019-12-08 09:44:05 +03:00
Andrew Dolgov 50a4c2d723 remove selenium stuff 2018-12-02 15:05:22 +03:00
Andrew Dolgov 1e2d4410d3 move some more shared stuff to CommonDialogs, Filters, and Utils 2018-12-01 22:39:29 +03:00
Andrew Dolgov 4bed9be57d js-ification: start on some common dialogs 2018-12-01 18:25:32 +03:00
Andrew Dolgov 8359ca6dad combined mode (and more) css class name updates 2018-11-30 15:48:17 +03:00
Andrew Dolgov 7c9b5a3fe4 move label stuff to Labels class
fix some unresolved functions
2017-05-04 15:57:40 +03:00
Andrew Dolgov 3517d363d3 add api test for labels, api: fix setArticleLabel assign not handled correctly 2017-04-27 09:04:23 +03:00
Andrew Dolgov 7c437c476c rename functional tests 2017-04-27 08:47:21 +03:00
Andrew Dolgov 4d7e0dae87 add some more api tests 2017-04-27 08:46:57 +03:00
Andrew Dolgov 891df34637 add some basic API unit tests 2017-04-27 00:24:17 +03:00
Andrew Dolgov f78e10d14c test some basic popup dialogs 2017-04-25 18:55:09 +03:00
Andrew Dolgov b95e694c7f add some basic prefs UI tests 2017-04-25 18:45:11 +03:00
Andrew Dolgov 1bf13f9ec7 add test checking if all articles feed opens 2017-04-25 14:42:21 +03:00
Andrew Dolgov 94eedc29c0 add initial gitlab-ci and selenium stuff 2017-04-25 13:44:41 +03:00
Andrew Dolgov c9c4f6b7e3 remove tests/ 2011-12-12 22:39:33 +04:00
Christian Weiske f679105cb2 add unit tests for rewrite_relative_url and fix a number of bugs in it 2010-11-11 09:44:05 +03:00
Christian Weiske 24eb4c780f add unit tests for url_is_html and fix a bug with UPPERCASE <HTML> in it 2010-11-11 09:43:18 +03:00
Christian Weiske 444537736b add unit tests for fix_url() and fix a bug I discovered because of them - protocols longer than "http" broke url fixing 2010-11-11 09:41:51 +03:00