This e2e test is not very useful to us as it only tests hardcoded link targets.
We should focus on testing user-scenarios in our e2e tests, not single components.
One should instead write a unit-test for the InternalLink component.
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This commit adds multiple unit jest tests for components and removes e2e tests.
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Co-authored-by: Philip Molares <philip.molares@udo.edu>
* Refactor login components and adjust API routes
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
* Adjust API /me response and redux state
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
* Fix moved function
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
* Update cypress tests
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
* Adjust mock response
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
* Integrate new common fields and hook into profile page
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
* Remove openid
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
* Fix config mock
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
Co-authored-by: Tilman Vatteroth <git@tilmanvatteroth.de>
* Rename one-click-embedding to click shield
* Removes the static fallback image from the vimeo frame. The set URL is broken.
* Adds the ability to define background colors for the click shield background
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
* Fix replacer regex
This regex handles the replacement of the [ ] with [x] and reverse.
Until now it was build to check for an unordered list beginning with "*" or "-".
This change permits "+" as well as digits followed by a dot (ordered lists).
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
* Add cypress tests for task lists
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
* Add bracket syntax for numbered lists
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
* Use document base uri for react router
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
* Rename getAndSetUser to fetchAndSetUser
Getter should be reserved for simple get functions.
Everything that does a bit more logic should use a more meaningful verb.
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
* Rename getFrontPageContent to fetchFrontPageContent
Getter should be reserved for simple get functions.
Everything that does a bit more logic should use a more meaningful verb.
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
* Reformat code
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
* Use PUBLIC_URL env var in index.html
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
* Introduce new environment variables
For better testing (especially if you have multiple endpoints) this commit introduces
REACT_APP_BACKEND_BASE_URL, REACT_APP_FRONTEND_ASSETS_URL and REACT_APP_CUSTOMIZE_ASSETS_URL
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
* Remove redundant license information
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
* Remove redundant license information
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
* Fix rebase issues
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
* Remove unused file
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
* Correct parameter
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
* Fix run tasks
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
* Force use of bash
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
* Fix link to cypress picture
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
* revert change
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
* fix url
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
* Remove license info
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
* Revert rebase issues
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
* Add missing banner code
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
* Fix test url
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
* Useless change to trigger github
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
* Don't set backend base url because this break the mock mode detection
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
Co-authored-by: Philip Molares <philip.molares@udo.edu>
* Update dependency cypress to v7
Signed-off-by: Renovate Bot <bot@renovateapp.com>
* Use global beforeEach for config loading
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Erik Michelson <github@erik.michelson.eu>