John McLear
7630e71957
Merge branch 'develop' into mochawesome
2021-02-03 11:23:54 +00:00
freddii
ea202e41f6
docs: fixed typos
2021-02-03 00:30:07 +01:00
John McLear
915849b319
Low hanging lint frontend tests ( #4695 )
...
* lint: low hanging specs/alphabet.js
* lint: low hanging specs/authorship_of_editions.js
* lint: low hanging specs/bold.js
* lint: low hanging specs/caret.js
* lint: low hanging specs/change_user_color.js
* lint: low hanging specs/change_user_name.js
* lint: low hanging specs/chat.js
* lint: low hanging specs/chat_load_messages.js
* lint: low hanging specs/clear_authorship_colors.js
* lint: low hanging specs/delete.js
* lint: low hanging specs/drag_and_drop.js
* lint: low hanging specs/embed_value.js
* lint: low hanging specs/enter.js
* lint: low hanging specs/font_type.js
* lint: low hanging specs/helper.js
* lint: low hanging specs/importexport.js
* lint: low hanging specs/importindents.js
* lint: low hanging specs/indentation.js
* lint: low hanging specs/italic.js
* lint: low hanging specs/language.js
* lint: low hanging specs/multiple_authors_clear_authorship_colors.js
* lint: low hanging specs/ordered_list.js
* lint: low hanging specs/pad_modal.js
* lint: low hanging specs/redo.js
* lint: low hanging specs/responsiveness.js
* lint: low hanging specs/select_formatting_buttons.js
* lint: low hanging specs/strikethrough.js
* lint: low hanging specs/timeslider.js
* lint: low hanging specs/timeslider_labels.js
* lint: low hanging specs/timeslider_numeric_padID.js
* lint: low hanging specs/timeslider_revisions.js
* lint: low hanging specs/undo.js
* lint: low hanging specs/unordered_list.js
* lint: low hanging specs/xxauto_reconnect.js
* lint: attempt to do remote_runner.js
* lint: helper linting
* lint: rate limit linting
* use constructor for Event to make eslint happier
* for squash: lint fix refinements
* for squash: lint fix refinements
Co-authored-by: Richard Hansen <rhansen@rhansen.org>
2021-02-01 20:23:14 +00:00
John McLear
f6413c8e39
timeouts
2021-01-29 09:39:00 +00:00
John McLear
14db2e52c2
timeouts
2021-01-29 09:38:32 +00:00
John McLear
a908bbee8e
resolve conflict with async test
2021-01-29 09:19:54 +00:00
Richard Hansen
873987f989
tests: Asyncify indentation test
...
This makes it much easier to see why a test is failing. Before, a
`helper.waitFor()` failure would simply cause the test to time out.
Now an exception is displayed.
2021-01-29 09:16:50 +00:00
John McLear
843dd927ce
timeouts
2021-01-28 23:00:13 +00:00
John McLear
3718767d5a
timeout
2021-01-28 22:44:03 +00:00
John McLear
0c9a19bd1b
longer timeouts
2021-01-27 05:59:01 +00:00
John McLear
14c2987afc
longer timeouts
2021-01-27 05:50:17 +00:00
John McLear
4c825d3060
longer timeouts
2021-01-27 05:48:09 +00:00
John McLear
55ac85473c
more realistic timeouts for slower devices
2021-01-27 05:43:48 +00:00
John McLear
5d276944a8
more realistic timeouts for slower devices
2021-01-27 05:38:29 +00:00
John McLear
21736122a0
more realistic timeouts for slower devices
2021-01-27 05:37:54 +00:00
John McLear
2816820785
more realistic timeouts for slower devices
2021-01-27 05:24:33 +00:00
John McLear
928f1ef8ce
more realistic timeouts for slower devices
2021-01-27 05:23:33 +00:00
John McLear
53708e69eb
more realistic timeouts for slower devices
2021-01-27 05:23:05 +00:00
John McLear
a6406663f4
more realistic timeouts for slower devices
2021-01-27 05:22:24 +00:00
John McLear
929859042c
more realistic timeouts for slower devices
2021-01-27 05:19:04 +00:00
John McLear
01ac40dc56
more realistic timeouts for slower devices
2021-01-27 05:15:44 +00:00
John McLear
88d99c0d60
more realistic timeouts for slower devices
2021-01-27 05:15:17 +00:00
John McLear
edf1dabe65
low hanging lint and some hard coded timeouts
2021-01-27 04:53:28 +00:00
John McLear
d74782c7e6
make mocha show duration and include the first timeout value in a test
2021-01-26 19:42:23 +00:00
webzwo0i
951c93fa6d
change_user_name test: refactor
2020-12-27 23:40:35 +00:00
John McLear
38c9827161
Feature: Scroll to Line number based on Hash IE http://foo.com/p/bar#L10 will scroll to line 10. ( #4554 )
...
Includes test coverage
Co-authored-by: webzwo0i <webzwo0i@c3d2.de>
2020-12-26 22:05:08 +01:00
webzwo0i
790ba72a9e
change scroll-behavior to auto
...
timeslider follow test: ensure there are so much lines in the pad view
below the changed line, so that the changed line will be the first
visible line
2020-12-23 16:18:28 -05:00
Richard Hansen
a44debdcfe
Add '
and *
to acceptable URL characters
...
These characters are in the RFC3986 reserved set.
These characters are added to the set of characters that cannot be the
last character of a URL to avoid mislinkification.
2020-12-14 07:03:17 +00:00
Richard Hansen
7d23278ed0
Exclude ?
, !
, and )
from last character of URL
...
Now the final character in each of these example strings is no longer
considered part of the URL:
* Have you seen http://example.com ?
* Look at http://example.com !
* (see http://example.com )
2020-12-14 07:03:17 +00:00
Richard Hansen
66d0eb9a1f
tests: Expand the tests in urls_become_clickable.js
2020-12-14 07:03:17 +00:00
Richard Hansen
1c388ca66e
tests: New helper.clearPad
method
2020-12-14 07:03:17 +00:00
Richard Hansen
ca01856f94
lint: Fix some straightforward ESLint errors
2020-12-14 07:03:17 +00:00
Richard Hansen
5a8f7cf54e
test runner: Simplify getURLParameter()
2020-11-25 19:19:24 +00:00
Richard Hansen
958f7d8966
lint: Fix most ESLint errors in runner.js
2020-11-25 19:19:24 +00:00
Richard Hansen
064fcf8c00
test runner: Pass single argument to append()
...
This makes the strings easier to read, and it simplifies `append()`.
Also fix some lint errors:
* Use `const` instead of `var`.
* Convert `append()` to an arrow function.
* Wrap long lines.
2020-11-25 19:19:24 +00:00
Richard Hansen
107942ad8a
lint: Rerun eslint --fix
to nuke trailing function call commas
...
eslint-config-etherpad 1.0.11 changed the comma-dangle rule to
prohibit trailing commas for function arguments. See:
673ab07acf
Re-run the automated fixes to apply the rule change.
This also fixes a few lint issues in changes that were made after
`eslint --fix` was originally run.
2020-11-25 13:09:14 -05:00
webzwo0i
0a72459b3d
frontend tests: fix trailing comma in runner.js
2020-11-25 09:04:34 +00:00
webzwo0i
b98aaf4904
backend tests: change loglevel to WARN ( #4514 )
2020-11-25 02:20:50 -05:00
Richard Hansen
c673a597f8
tests: Fix what appears to be a typo
...
This fixes a SonarCloud error.
2020-11-24 20:06:12 +00:00
Richard Hansen
b8d07a42eb
lint: Run eslint --fix
on bin/
and tests/
2020-11-24 20:06:12 +00:00
Richard Hansen
7df3ded66f
lint: Put opening brace on same line as function
...
Normally I would let `eslint --fix` do this for me, but there's a bug
that causes:
const x = function ()
{
// ...
};
to become:
const x = ()
=> {
// ...
};
which ESLint thinks is a syntax error. (It probably is; I don't know
enough about the automatic semicolon insertion rules to be confident.)
2020-11-24 20:06:12 +00:00
Richard Hansen
cc988bd67b
lint: Convert CR+LF line endings to LF
2020-11-24 20:06:12 +00:00
webzwo0i
b71b606774
tests: Switch from Travis to Github Actions
...
Travis placed an unnecessary breaking restriction on our tests and failed to respond within 72 hours to our complaint. This has forced us to introduce Github Actions to manage our testing. This is hopefully a temporary measure while Travis either gets itself together or we find a non-Github requirement.
2020-11-24 18:12:41 +00:00
Richard Hansen
1d491c0059
tests: Clean up Travis runner scripts
...
* Avoid bashisms.
* Simplify `sed` of `settings.json`.
* Wrap long lines.
* Define and use the conventional log functions.
* Quote variable expansions.
2020-11-22 09:22:14 +00:00
Richard Hansen
c9eb4c72a5
tests: Kill Etherpad and wait for it to exit
2020-11-22 09:22:14 +00:00
Richard Hansen
9abb77e899
tests: Set loglevel to WARN instead of suppressing stdout
2020-11-22 09:22:14 +00:00
John McLear
06e0ff3cd3
tests: Test against Safari 13, drop Safari 12 coverage.
2020-11-19 09:06:57 +00:00
webzwo0i
f6aed0c9cb
Fix truncation in travis ( #4479 )
...
* log to travis every five seconds
* travis: kill etherpad process after tests
2020-11-10 06:59:50 +01:00
webzwo0i
b67c9cc136
tests: Speed up and fix travis ( #4453 )
...
Various test runner fixes.
2020-10-30 10:40:11 +00:00
webzwo0i
069e9997dd
tests: 10 sec maximum wait time for timeslider ( #4430 )
2020-10-23 12:43:38 +01:00