Commit Graph

17 Commits

Author SHA1 Message Date
Frederic Guillot
506503bbcd
Add Miniflux namespace everywhere 2016-08-24 21:17:58 -04:00
Frederic Guillot
0d96059945
Move csrf functions to Helper namespace 2016-08-17 22:05:11 -04:00
Frederic Guillot
8ac08649e8
Move generate_token() to Helper namespace 2016-08-17 21:41:14 -04:00
Frederic Guillot
55e4ab882c
Move get_ip_address() and get_user_agent() to Request namespace 2016-08-17 21:27:05 -04:00
Frederic Guillot
38b08719da
Setup unit tests 2016-08-17 21:06:43 -04:00
Eshin Kunishima
aabee67bdd
Tiny performance tweaks 2016-05-03 17:46:20 +09:00
Frederic Guillot
aaaafb263b Run php-cs-fixer on the code base 2016-04-17 19:44:45 -04:00
Mathias Kresin
475c71d107 fix race conditions in tests
Wait till the counter has the desired value, instead of assuming that
the counter already has the expected value. This fixes the tests on
slow browsers.

Furthermore, the wait isn't needed any more, now that the counter
queries are race ondition proof.

The waitForIconMarkReadInvisible was the wrong wait function here, since
the whole article will be hidden instead of the read icon. This could
lead into race condition related errors if the article is hidden before
the waitForIconMarkRead() functions runs. The article variable that is
used to address the child read icon can refer to an (DOM) object which
doesn't exist any longer => StaleElementReferenceException.

The correct wait function in such a case would be waitForArticleInvisible().
2015-08-13 23:06:33 +02:00
Mathias Kresin
7ea37a1790 remove unnecessary javascript actions
They do exactly the same as the non javascript version.
2015-04-23 23:37:33 +02:00
Mathias Kresin
ee98a62519 mark items on page 2+ read as well, update tests
Update integration tests, to ensure that all articles are marked read,
instead of only visible.
2015-04-07 22:46:50 +02:00
Mathias Kresin
3a65e5ee64 do mark-feed-as-read in javascript without reload
follow-up to 4809f736dc. Update
integration tests, to ensure that all articles are marked read, instead
of only visible.
2015-03-08 13:19:29 +01:00
Mathias Kresin
065805e485 disable shortcut tests for firefox
The key property isn't properly set with selenium.
2015-03-08 13:19:29 +01:00
Mathias Kresin
f3e9b4d9b5 improve image-proxy
- use passthrough mode for image proxy (fixes #295)
- add image proxy when rendering an article (fixes #314)
- add referrer cloaking option to feed options (fixes #319)
2015-02-06 07:11:21 +01:00
Mathias Kresin
972fa86357 update integration tests
- more flexibility and explicitly with the expected dataset
- use radio button to select unittest.db
- add tests:
    - previous/next article with arrow key left/right
    - no alerts are displayed by default
    - alert is displayed on first feed page if feed has parsing error
    - keyboard shortcuts are disabled with modifier keys shift, alt and control (except IE)
    - display logic on subscription page
2015-01-19 22:52:50 +01:00
Mathias Kresin
bb51368f3a Tests: Fix PHP strict standards warnings 2015-01-04 22:26:14 +01:00
Mathias Kresin
71275eac2c display & update the number of unread items on every page with an "unread items" menu 2015-01-04 18:48:01 +01:00
Mathias Kresin
3b33544cae introduce integration tests 2015-01-04 18:47:59 +01:00