Skip to content

Conversation

@ScharfViktor
Copy link
Contributor

related: #582

test for:

  • set profile photo
  • change profile photo
  • delete profile photo
  • check that profile photo exist/not exist

Copilot AI review requested due to automatic review settings May 23, 2025 12:28
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds e2e test support for user profile photo functionality by incorporating new methods and test steps for uploading, changing, and deleting profile photos.

  • New methods in the account object for handling profile image actions
  • Updated actions to handle file uploads, deletion, and picture retrieval
  • Added cucumber steps and feature tests to validate profile photo operations

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
tests/e2e/support/objects/account/index.ts Added methods for uploading, deleting, and retrieving profile images
tests/e2e/support/objects/account/actions.ts Implemented actions to support profile image operations
tests/e2e/cucumber/steps/ui/accountMenu.ts Updated cucumber steps for profile image interactions
tests/e2e/cucumber/features/user-settings/profilePhoto.feature New feature file to validate profile image use cases
Comments suppressed due to low confidence (2)

tests/e2e/support/objects/account/index.ts:44

  • The method deleteProfileImage calls deleteProfilePicture, resulting in inconsistent naming. Consider standardizing naming (e.g., using 'ProfileImage' or 'ProfilePicture' consistently) across the related methods.
await po.deleteProfilePicture({ page: this.#page })

tests/e2e/cucumber/features/user-settings/profilePhoto.feature:12

  • There is inconsistent terminology between the feature file ('profile photo', 'profile image') and the code (methods referring to 'ProfileImage' and 'ProfilePicture'). Consider unifying the terminology across tests and implementation.
When "Alice" uploads the profile image "testavatar.jpeg"

@ScharfViktor
Copy link
Contributor Author

tests will work after we get a backend with opencloud-eu/opencloud#864
implemented and tested localy with builded dev container

Copy link
Contributor

@AlexAndBear AlexAndBear left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍, let's wait for backend to be merged ⏰

@ScharfViktor
Copy link
Contributor Author

this is something new: e2e-tests-2 is green but it shows up here as Pipeline is running
Screenshot 2025-05-26 at 12 47 38

Since it's not related to my PR -> I merge it without restarting CI

@ScharfViktor ScharfViktor merged commit 5bcf901 into main May 26, 2025
17 of 18 checks passed
@ScharfViktor ScharfViktor deleted the e2e-test-profile-photo branch May 26, 2025 10:51
@openclouders openclouders mentioned this pull request May 26, 2025
1 task
@AlexAndBear
Copy link
Contributor

@ScharfViktor I also got some woodpecker pipelines, that were green but not reporting back to gh and were pending

@openclouders openclouders mentioned this pull request Jun 2, 2025
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants