Skip to content
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

Merged
merged 6 commits into from
Dec 5, 2024

Conversation

EldarMuhamethanov
Copy link
Contributor

@EldarMuhamethanov EldarMuhamethanov commented Nov 29, 2024


  • Unit-тесты
  • e2e-тесты
  • Release notes

Описание

Нужно добавить возможность прокидывать test-id для необходимых интерактивных элементов

Изменения

  • Вынес в отдельный модуль компонент Bullets, который ренедерит bullet'ы
  • Вынес в отдельный модуль компонент GalleryViewPort, который ренедерит слайды
  • Добавил возможность прокинуть test-id для стрелок переключения слайдов - nextArrowTestId, prevArrowTestId
  • Добавил возможность прокинуть test-id для bullet'ов - bulletTestId
  • Добавил возможность прокинуть test-id для слайдов - slideTestId

Release notes

Улучшения

  • Gallery:
    • добавлены data-testid для стрелок переключения слайдов: nextArrowTestId, prevArrowTestId;
    • добавлена возможность прокинуть data-testid для bullet'ов – bulletTestId;
    • добавлена возможность прокинуть data-testid для слайдов – slideTestId.

@EldarMuhamethanov EldarMuhamethanov requested a review from a team as a code owner November 29, 2024 09:25
Copy link
Contributor

github-actions bot commented Nov 29, 2024

size-limit report 📦

Path Size
JS 386.82 KB (+0.11% 🔺)
JS (gzip) 117.03 KB (+0.18% 🔺)
JS (brotli) 96.6 KB (+0.37% 🔺)
JS import Div (tree shaking) 1.56 KB (0%)
CSS 337.59 KB (0%)
CSS (gzip) 42.83 KB (0%)
CSS (brotli) 33.86 KB (0%)

Copy link

codesandbox-ci bot commented Nov 29, 2024

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.

Copy link
Contributor

github-actions bot commented Nov 29, 2024

e2e tests

Playwright Report

Copy link

codecov bot commented Nov 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.51%. Comparing base (efa568a) to head (ce1060c).
Report is 1 commits behind head on master.

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           
Flag Coverage Δ
unittests 95.51% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

github-actions bot commented Nov 29, 2024

👀 Docs deployed

Commit ce1060c

Copy link
Contributor

@andrey-medvedev-vk andrey-medvedev-vk left a 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
@EldarMuhamethanov EldarMuhamethanov requested a review from a team December 5, 2024 09:45
Copy link
Contributor

@inomdzhon inomdzhon left a comment

Choose a reason for hiding this comment

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

👍

@EldarMuhamethanov EldarMuhamethanov merged commit c52e9bf into master Dec 5, 2024
28 checks passed
@EldarMuhamethanov EldarMuhamethanov deleted the e.muhamethanov/8013/gallery-test-id branch December 5, 2024 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants