91 Commits

Author SHA1 Message Date
Max
33274e5b9a
feat(webapp): user teaser popover (#8450)
* calculate distance between current user and queried user

* fix query for unset location

* use database to calculate distance

* rename distance to distance to me, 100% calculation done in DB

* distanceToMe tests

* lint fixes

* remove comments

* Show user teaser popover with badges, Desktop

* Refactor UserTeaser and add mobile popover support

* Avoid click propagation (WIP)

* Prevent event propagation

* Adjust alignment and font sizes

* More spacing for statistics

* Add distance, simplify user link

* Refactor location info into own component

* Add tests for UserTeaserPopup

* Refactor and test LocationInfo

* Query distanceToMe, rename distance to distanceToMe

* Update test

* Improve tests for UserTeaser, WIP

* Fix tests

* DistanceToMe on User instead of Location

* Revert "DistanceToMe on User instead of Location"

This reverts commit 96c9db00a44cd120e47bfe9534d3e066a194744c.

* Fix notifications

* Refactor UserTeaser and fix location info

* Fix group member crash

* Show 0 distance

* Fit in popover on small screens

* Allow access to profile on desktop

* Revert backend changes

* Load user teaser popover data only when needed

* Fix type mismatch

* Refactor for clarity and accessibility

* Litte refactorings and improvements

* Fix popover test

* Adapt and fix tests

* Fix tests and bugs

* Add placeholder

* cypress: adapt user teaser locator to changes

* Remove delays and scrolling

* Disable popovers in notification list and fix layout

* Remove flickering

* Make overlay catch all pointer events on touch devices

* Re-add attribute for E2E test

* Fix test, return to mouseover

* fix snapshot

---------

Co-authored-by: Ulf Gebhardt <ulf.gebhardt@webcraft-media.de>
Co-authored-by: Wolfgang Huß <wolle.huss@pjannto.com>
Co-authored-by: mahula <lenzmath@posteo.de>
2025-05-05 23:54:13 +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
mahula
82999d377d disable waiting for actionability at post creation image dropzone 2023-07-11 15:00:16 +02:00
mahula
5b73dc8e58 fix typo 2023-07-11 12:33:54 +02:00
mahula
bb53ee70da
Merge branch 'master' into 6375-refactor-cypress-migrate-from-cypress-file-upload-to-selectfile 2023-07-11 11:56:40 +02:00
mahula
242619d21b remove unnecessary cypress code from step definitions 2023-07-11 11:19:47 +02:00
mahula
f44dda4127 fix file path 2023-07-11 10:30:20 +02:00
mahula
d42cac30c8 add file content to file selection in test step 2023-07-11 09:59:38 +02:00
mahula
4efb6463a0 adapt feature step to selectFile 2023-07-11 08:42:08 +02:00
mahula
c1a4ba12da adapt feature step to selectFile 2023-07-10 21:58:53 +02:00
mahula
73f6bc6421 remove package cypress-file-upload from e2e testing 2023-07-10 20:41:21 +02:00
1cadf80a43
fixed fullstack tests 2023-06-22 16:48:51 +02:00
23c2be3093
Merge branch 'master' into update-database 2023-06-16 15:02:58 +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
497e448088 remove async from step definition file 2023-06-07 12:12:18 +02:00
mahula
4b26a0c665 remove async from step definition file 2023-06-07 11:48:52 +02:00
mahula
5dd9c03b4f
Merge branch 'master' into seed-posts-as-articles 2023-06-07 09:32:01 +02:00
mahula
d70030387d fix reporting e2e tests 2023-06-07 08:44:08 +02:00
mahula
38a135d966 fix social media test step 2023-06-07 08:44:07 +02:00
520e1e44b4 removed duplicate step defintion 2023-06-07 08:44:07 +02:00
38c3fc1397 fix .env loading 2023-06-07 08:44:07 +02:00
00c615d796 fix first errors 2023-06-07 08:44:07 +02:00
mahula
b308b290aa drop usage of environment variables for neo4j in cypress:
- the default values in backend's neo4j.js are used
2023-06-07 08:41:43 +02:00
mahula
74a054e2b4 correct dependencies in step definition files 2023-06-07 08:41:43 +02:00
mahula
a73af27870 move support index to e2e.js for cypress v10.x 2023-06-06 17:33:33 +02:00
mahula
df1a542a56 Cypress: move step definition files to new default location 2023-06-06 17:33:33 +02:00
mahula
040295184a
update cypress/support/step_definitions/Moderation.ReportContent/somebody_reported_the_following_posts.js
Co-authored-by: Hannes Heine <heine.hannes@gmail.com>
2023-06-05 20:29:19 +02:00
mahula
ad1ee56064 fix reporting e2e tests 2023-06-03 07:14:59 +02:00
mahula
20ad70362a fix social media test step 2023-06-03 06:00:53 +02:00
e804ff52da
removed duplicate step defintion 2023-06-02 13:51:34 +02:00
3ad8588d6f
fix .env loading 2023-06-02 13:44:43 +02:00
810e1c085b
fix first errors 2023-06-02 13:15:06 +02:00
mahula
14ed84620b add network waiting to several cypress steps 2023-05-26 17:28:04 +02:00
mahula
18288efa1b wait for network to be idle in cypress tests 2023-05-26 11:16:58 +02:00
mahula
b2b9ebc400 wait for network to be idle in cypress tests 2023-05-26 10:47:35 +02:00
8223024c30
removed write rights from query where its not needed 2023-05-22 16:58:04 +02:00
mahula
01ded1bbcf Merge branch 'master' into cypress-migrate-to-v10 2023-03-09 17:08:42 +01:00
elweyn
a09960aa54 Remove gql tag of cypress code. 2023-03-03 20:40:16 +01:00
elweyn
71820a94f5 Change gql tag in cypress. 2023-02-28 13:14:18 +01:00
mahula
722856a7d7 drop usage of environment variables for neo4j in cypress:
- the default values in backend's neo4j.js are used
2023-02-22 20:35:15 +01: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
57a9d3789b move support index to e2e.js for cypress v10.x 2023-02-20 12:35:02 +01:00
mahula
f17397e2bc Cypress: move step definition files to new default location 2022-11-06 17:10:46 +01:00
7d92eb3950
fixed includes 2021-04-12 13:24:52 +02:00