20 Commits

Author SHA1 Message Date
Robert Schäfer
83b7c3eceb refactor(backend): put config into context
This is a side quest of #8558. The motivation is to be able to do dependency injection in the tests without overwriting global data. I saw the first merge conflict from #8551 and voila: It seems @Mogge could have used this already.

refactor: follow @Mogge's review

See: https://github.com/Ocelot-Social-Community/Ocelot-Social/pull/8603#pullrequestreview-2880714796

refactor: better test helper methods

wip: continue refactoring

wip: continue posts

continue

wip: continue groups

continue registration

registration

continue messages

continue observeposts

continue categories

continue posts in groups

continue invite codes

refactor: continue notificationsMiddleware

continue statistics spec

followed-users

online-status

mentions-in-groups

posts-in-groups

email spec

finish all tests

improve typescript

missed one test

remove one more reference of CONFIG

eliminate one more global import of CONFIG

fix language spec test

fix two more test suites

refactor: completely mock out 3rd part API request

refactor test

fixed user_management spec

fixed more locatoin specs

install types for jsonwebtoken

one more fetchmock

fixed one more suite

fix one more spec

yet another spec

fix spec

delete whitespaces

remove beforeAll that the same as the default

fix merge conflict

fix e2e test

refactor: use single callback function for `context` setup

refactor: display logs from backend during CI

Because why not?

fix seeds

fix login

refactor: one unnecessary naming

refactor: better editor support

refactor: fail early

Interestingly, I've had to destructure `context.user` in order to make
typescript happy. Weird.

refactor: undo changes to workflows - no effect

We're running in `--detached` mode on CI, so I guess we won't be able to
see the logs anyways.

refactor: remove fetch from context after review

See:

refactor: found an easier way for required props
2025-06-19 00:40:52 +08:00
Moriz Wahl
b67c9fd7cb
feat(e2e): group create feature (#8636)
Co-authored-by: mahula <lenzmath@posteo.de>
2025-06-06 14:47:05 +00:00
mahula
30080a44c2
refactor(other): cypress: simplify cucumber preprocessor imports and some linting (#8489)
* cypress: a little linting

* cypress: import badeball preprocessor globally

* cypress: reintroduce accidentally removed semicolons

* cypress: set new e2e support file in config

* Revert "cypress: import badeball preprocessor globally"

This reverts commit 55fde3de2f9c355fe25bf9b49485b6bf64ca01cf.

* Revert "cypress: set new e2e support file in config"

This reverts commit 525cb5cf3766e402dadfd17f48e5b0f6c6ba1f9b.

* cypress: change preprocessor import to correct method in step definition file

* cypress: change preprocessor import to correct method in step definition files
2025-05-04 22:00:36 +02:00
mahula
dfe9205bf6
refactor(other): cleanup cypress configuration (#8345)
* cypress:remove redundant comment from command config

* cypress: move command and factory imports from global to local

* cypress: linting

* cypress: set support file to false in config
2025-04-08 22:20:41 +02:00
mahula
97355d55b5 add wait fornetwork to be idle in e2e test step 2024-02-07 07:05:10 +01:00
mahula
2c39e8f8a2
Merge branch 'master' into 6376-refactor-cypress-upgrad-all-relevant-packages-to-current-versions 2023-07-17 16:22:14 +02:00
1cadf80a43
fixed fullstack tests 2023-06-22 16:48:51 +02:00
5f545f3b8f
fixed cypress 2023-06-13 15:06:04 +02:00
mahula
44ef732825
Merge branch 'master' into 6376-refactor-cypress-upgrad-all-relevant-packages-to-current-versions 2023-06-08 09:34:18 +02:00
mahula
747d7294cd remove async from step definition file 2023-06-07 12:38:31 +02:00
mahula
5dd9c03b4f
Merge branch 'master' into seed-posts-as-articles 2023-06-07 09:32:01 +02:00
520e1e44b4 removed duplicate step defintion 2023-06-07 08:44:07 +02:00
00c615d796 fix first errors 2023-06-07 08:44:07 +02:00
mahula
74a054e2b4 correct dependencies in step definition files 2023-06-07 08:41:43 +02:00
mahula
df1a542a56 Cypress: move step definition files to new default location 2023-06-06 17:33:33 +02:00
e804ff52da
removed duplicate step defintion 2023-06-02 13:51:34 +02:00
810e1c085b
fix first errors 2023-06-02 13:15:06 +02:00
mahula
d7d28798ed correct dependencies in step definition files 2023-02-22 11:56:08 +01:00
mahula
4afe3e05a5 Merge branch 'master' into cypress-migrate-to-v10 2023-02-22 09:14:11 +01:00
mahula
f17397e2bc Cypress: move step definition files to new default location 2022-11-06 17:10:46 +01:00