Skip to content

Conversation

@ScharfViktor
Copy link
Contributor

@ScharfViktor ScharfViktor commented Jun 3, 2025

related #767
addition to #742

I check user's avatar in:

  • notification
  • the shares view
  • the share with me page
  • the share with other page
  • activity panel
  • set user avatar using api (Given step)

Copilot AI review requested due to automatic review settings June 3, 2025 13:21
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 extends the end-to-end tests for validating user avatars across various views and API interactions. Key changes include:

  • Adding new functions and locators for handling avatar images in notifications and resource tables.
  • Updating collaborator and cucumber step definitions to support both avatar images and initials.
  • Incorporating API support for uploading profile images.

Reviewed Changes

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

Show a summary per file
File Description
tests/e2e/support/objects/runtime/application.ts Added function to retrieve sharer avatar from notifications.
tests/e2e/support/objects/app-files/share/collaborator.ts Updated collaborator check to verify avatar image or initials depending on the 'hasAvatar' flag.
tests/e2e/support/objects/app-files/resource/index.ts & actions.ts Introduced and exported new locator functions for avatars on resource rows.
tests/e2e/support/api/graph/userManagement.ts & index.ts Added API support for uploading user profile images.
tests/e2e/cucumber/steps/ui/* Updated cucumber step definitions and feature files to verify avatar visibility in various contexts.
packages/web-pkg/src/components/FilesList/ResourceTable.vue Changed property name from userName to displayName to reflect updated data model.
Comments suppressed due to low confidence (2)

tests/e2e/support/objects/app-files/share/collaborator.ts:87

  • [nitpick] The variable name 'collaboratorIndication' is ambiguous; consider renaming it to 'collaboratorAvatarIndicator' to clearly reflect its purpose.
private static readonly collaboratorIndication =

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

  • [nitpick] Consider updating the phrase 'has uploads' to 'has uploaded' for grammatical correctness.
Given "Alice" has uploads the profile image "testavatar.jpeg" using API

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.

🚀 ❤️

@AlexAndBear
Copy link
Contributor

As a followup we could also check the avatars in the activities panel

@ScharfViktor
Copy link
Contributor Author

As a followup we could also check the avatars in the activities panel

Right! for this place I forgot to add test. I'll do it in this PR

@ScharfViktor ScharfViktor requested a review from AlexAndBear June 4, 2025 13:19
@ScharfViktor ScharfViktor merged commit d214ead into main Jun 5, 2025
18 checks passed
@ScharfViktor ScharfViktor deleted the userProfilePhotoTests branch June 5, 2025 06:48
@openclouders openclouders mentioned this pull request Jun 5, 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.

3 participants