-
Notifications
You must be signed in to change notification settings - Fork 25
e2e-tests. Check avatar tests in shares view #792
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this 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
0696ea3 to
d6372bb
Compare
AlexAndBear
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀 ❤️
|
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 |
related #767
addition to #742
I check user's avatar in: