Commit graph

36 commits

Author SHA1 Message Date
Richard Hansen
e9cb1692eb CI: Disable import/export rate limiting for frontend tests 2021-02-22 18:20:24 -05:00
Richard Hansen
644c8e6195 CI: Disable frontend admin tests for non-admin workflow 2021-02-22 18:20:24 -05:00
Richard Hansen
a354b03633 CI: Leave log level at INFO for frontend tests 2021-02-22 18:20:24 -05:00
Richard Hansen
3ca1589885 Revert "tests: fix importexport frontend tests (#4827)"
I'm going to split this into separate commits.

This reverts commit 9b03f8f6ab.
2021-02-22 18:19:48 -05:00
John McLear
9b03f8f6ab
tests: fix importexport frontend tests (#4827)
* CI: Leave log level at INFO for frontend tests

* CI: Disable frontend admin tests for non-admin workflow

* CI: Disable import/export rate limiting for frontend tests

* tests: fix importexport tests

The testing approach was redone to fix numerous issues:
  * Even if the tests had been working, none of them would have caught
    https://github.com/ether/etherpad-lite/issues/4808 because they
    didn't exercise the client-side import logic. Now they do.
  * Follow-up logic was not in the `helper.waitFor()` callback like it
    should have been. Now the code uses `async` and `await` to ensure
    proper execution order.
  * All `$.ajax()` calls used `async: false`. Now they're properly
    asynchronous.
  * The `helper.waitFor()` condition callbacks threw instead of
    returning false.
  * The string comparisons didn't allow for different attribute
    order (e.g., `<ol start="1" class="list-number1">` vs. `<ol
    class="list-number1" start="1">`). Now `Node.isEqualNode()` is
    used to reduce fragility. (`Node.isEqualNode()` is not perfect, so
    the tests are still a bit fragile: If class names or style strings
    are in a different order then `Node.isEqualNode()` will return
    false even if the nodes are semantically equivalent.)

Co-authored-by: Richard Hansen <rhansen@rhansen.org>

Co-authored-by: Richard Hansen <rhansen@rhansen.org>
2021-02-22 10:40:38 +00:00
Richard Hansen
85231cb774 tests: More descriptive Sauce Labs name 2021-02-22 03:36:12 -05:00
webzwo0i
2994ef3c3c tests: try all supported node versions 2021-02-22 03:36:12 -05:00
webzwo0i
29afb91b3e tests: delay setting up saucelabs tunnel 2021-02-22 03:36:12 -05:00
Richard Hansen
6198e92706 tests: Pass --legacy-peer-deps flag to work around npm v7 bug
This flag is unknown to npm v6, but npm v6 silently ignores unknown
flags.
2021-02-22 03:36:12 -05:00
Richard Hansen
588b73f366 tests: Install deps after installing plugins 2021-02-22 03:36:12 -05:00
Richard Hansen
5ea66701f7 tests: Use --no-save when installing plugins on Windows 2021-02-22 03:36:12 -05:00
Richard Hansen
6023117d29
CI: Use saucelabs/sauce-connect-action to create the tunnel (#4833) 2021-02-21 13:17:41 +00:00
John McLear
7e86acad8f
CI: Build and test Windows .zip (#4828) 2021-02-20 04:13:44 -05:00
Richard Hansen
4d50813c94
issue templates: Ask for server info when opening a bug 2021-02-19 02:51:15 -05:00
Richard Hansen
6163339c0d plugins: Always install plugins with --no-save
The npm CLI can get confused if `package.json` or `package-lock.json`
exist.
2021-02-18 19:18:59 +00:00
John McLear
9fb2c640b9
tests: Microsoft Windows Server CI (#4791)
Due to a recent release that wasn't functioning properly this CI will help us catch the majority of Microsoft Node Quirks before they make it into a release.
2021-02-18 18:49:43 +00:00
Richard Hansen
7dae5e3db8 tests: Use the supertest agent from common.js for backend tests 2021-02-16 21:13:35 -05:00
John McLear
bcd5e36688 tests: backend and frontend tests for image upload 2021-02-12 18:00:47 -05:00
Richard Hansen
87341af429 GitHub workflows: Install Node.js v12
I'm not sure how these tests ever worked. I guess some version of
Node.js and npm come pre-installed on the ubuntu-latest images?

I would have prefered to use Node.js v10 because that is our current
minimum supported version, but we have a surprising number of tests
that don't work on Node.js v10 (mostly due to `assert.match()`, which
was added in Node.js v12).
2021-02-09 22:18:35 +00:00
John McLear
2b112ac851
tests: Admin Frontend Test Coverage(#4717)
Covers all frontend admin operations, runs separated in CI.
2021-02-07 11:32:57 +00:00
Richard Hansen
8b28e00784 restructure: Prefix bin/ and tests/ with src/
This is a follow-up to commit
2ea8ea1275.
2021-02-05 21:52:08 +00:00
Richard Hansen
f7b1133600 GitHub workflows: Install Etherpad deps after installing plugins 2021-01-23 18:14:01 -05:00
Richard Hansen
e32a623468 GitHub workflows: Synchronize plugin lists 2021-01-23 18:12:57 -05:00
Richard Hansen
57be60d1d4 GitHub workflows: Break list of plugins across multiple lines
This makes it easier to review changes to the list.
2021-01-23 18:12:49 -05:00
John McLear
53ac25e9eb tests: include set title on pad in plugins 2020-11-26 14:10:10 +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
John McLear
9f5fb022b9
Create FUNDING.yml 2020-10-23 20:31:17 +01:00
John McLear
e6949cd974
Create codeql-analysis.yml 2020-08-24 17:57:30 +01:00
John McLear
e217902d23 Update issue templates 2020-06-21 16:18:43 +01:00
John McLear
d8ae83e2cb Update issue templates 2020-06-21 16:17:42 +01:00
John McLear
afcdbfe99e
Update and rename custom.md to security.md 2020-06-21 16:16:19 +01:00
John McLear
df2ab0a252 Update issue templates 2020-06-21 16:13:55 +01:00
John McLear
f5b94bd664 Update issue templates 2020-06-21 16:12:57 +01:00
John McLear
5f8c9ced39 Update issue templates 2020-06-21 16:08:53 +01:00
John McLear
dfada2c04a
housekeeping: Stale Github Issues (#4082) 2020-06-04 21:38:03 +01:00
mathieu.brunot
5503ebdb94 github: Templates for Issues and PR
Signed-off-by: mathieu.brunot <mathieu.brunot@monogramm.io>
2020-04-13 14:45:17 +02:00