-
Notifications
You must be signed in to change notification settings - Fork 186
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
feat(Gallery): add testid's to elements and refactor #8015
Conversation
size-limit report 📦
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
e2e tests |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #8015 +/- ##
=======================================
Coverage 95.51% 95.51%
=======================================
Files 394 396 +2
Lines 11228 11235 +7
Branches 3720 3720
=======================================
+ Hits 10724 10731 +7
Misses 504 504
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
👀 Docs deployed
Commit ce1060c |
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.
🔥 Шикарно!
# Conflicts: # packages/vkui/src/components/BaseGallery/BaseGallery.tsx # packages/vkui/src/components/BaseGallery/CarouselBase/CarouselBase.tsx
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.
👍
Описание
Нужно добавить возможность прокидывать test-id для необходимых интерактивных элементов
Изменения
Bullets
, который ренедерит bullet'ыGalleryViewPort
, который ренедерит слайдыnextArrowTestId
,prevArrowTestId
bulletTestId
slideTestId
Release notes
Улучшения
data-testid
для стрелок переключения слайдов:nextArrowTestId
,prevArrowTestId
;data-testid
для bullet'ов –bulletTestId
;data-testid
для слайдов –slideTestId
.