Commit graph

19 commits

Author SHA1 Message Date
Anton Khorev
c883f02161 Add within_content_body system test helper 2024-12-29 03:25:44 +03:00
Tom Hughes
6789fc3081 Drop support for ruby 3.0
Also add Ubuntu 24.04 and drop 20.04 as 24.04 is needed for
ruby 3.1 without rvm so we should test it.
2024-09-17 20:39:22 +01:00
Milan Cvetkovic
e614faaf8a Replace "Login" labels with "Log in" when used as a verb 2024-03-14 15:34:12 +00:00
Anton Khorev
55bb243731 Turn hide/unhide comment controls into buttons 2024-02-12 01:27:12 +03:00
Anton Khorev
956ba386d6 Move system test specific sign in to system test superclass 2024-02-10 17:26:57 +03:00
Anton Khorev
44d9b77f7a Limit system test asserts/interactions to sidebar 2024-01-17 01:46:50 +03:00
Anton Khorev
f0b24cdc84 Add website oauth app registration to system tests 2024-01-07 14:37:41 +03:00
Tom Hughes
8773ec6e57 Switch to using selenium for system tests 2020-04-22 13:51:37 +01:00
Tom Hughes
0e902b5424 Set QT_QPA_PLATFORM=offscreen for Ubuntu etc
Fixes #2569
2020-03-25 17:04:44 +00:00
Tom Hughes
473da378b7 Remove fallback to hostip.info
We haven't used hostip.info in production for years, except
for when we did so by accident, leading to a two hour partial
outage when it went down.
2020-01-06 19:14:12 +00:00
Tom Hughes
34c9d9cc6b Increase poltergeist timeout 2019-08-14 19:54:50 +01:00
Andy Allan
085412f624 Use i18n for submit button for issue comments
Normally when an en-GB.yml translation is missing, rails falls back to en.yml. But when
using the submit helpers, if the en-GB translation is missing, rails knows how to create
a fallback like 'Create {model_name}' without touching the en.yml file. This string might
then be different from what the test expects, e.g. 'Add Comment'.

So it's important to set the language headers, to avoid phantomjs from picking up your desktop
preferences in this specific case.
2019-06-12 19:24:06 +02:00
Tom Hughes
5ff822083d Block non-localhost requests for all tests
Only blocking them for the system tests didn't actually
work anyway as the setting is global so would apply to all
tests after the first system test.
2018-07-10 18:59:15 +01:00
Tom Hughes
53eadb36fc Fix another hostip stub 2018-07-09 20:36:41 +01:00
Tom Hughes
98de681e47 Update to rails 5.2.0 2018-06-19 00:16:24 +01:00
Tom Hughes
2f342ba8e8 Only set QT_QPA_PLATFORM if phantomjs fails without it 2018-06-01 00:41:29 +01:00
Tom Hughes
41326fd6d4 Set QT_QPA_PLATFORM to offscreen in the test environment
Works around an issue with the weird way the debian/ubuntu
version of phantomjs is built:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=817277
https://github.com/ariya/phantomjs/issues/14376
2018-05-31 22:52:59 +01:00
Andy Allan
9a5d835987 Silence puma startup messages when running tests 2018-03-28 13:30:31 +08:00
Tom Hughes
9e929de530 Add framework for system tests 2017-11-15 19:14:31 +00:00