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(Pagination): Add testid for buttons #8038

Merged

Conversation

andrey-medvedev-vk
Copy link
Contributor


  • Unit-тесты
  • Документация фичи
  • Release notes

Описание

Добавляем пропы для передачи testid в кнопки страниц и кнопки next/prev.

В Pagination есть возможность рендерить кнопки кастомно и даже передётся page-data с номером кнопки, но это не то же самое, что и data-testid. Унифицируем этот момент и добавляем в API.

Release notes

Улучшения

  • Pagination: добавлены новые свойства pageButtonTestId, prevButtonTestId, nextButtonTestId для передачи data-testid в интерактивные элементы.

Copy link
Contributor

github-actions bot commented Dec 4, 2024

size-limit report 📦

Path Size
JS 385.54 KB (+0.06% 🔺)
JS (gzip) 116.55 KB (+0.06% 🔺)
JS (brotli) 96 KB (+0.07% 🔺)
JS import Div (tree shaking) 1.56 KB (0%)
CSS 337.13 KB (0%)
CSS (gzip) 42.77 KB (0%)
CSS (brotli) 33.74 KB (0%)

Copy link
Contributor

github-actions bot commented Dec 4, 2024

e2e tests

Playwright Report

Copy link
Contributor

github-actions bot commented Dec 4, 2024

👀 Docs deployed

Commit c0f0fae

Copy link

codesandbox-ci bot commented Dec 4, 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

codecov bot commented Dec 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.48%. Comparing base (0eeffef) to head (c0f0fae).
Report is 18 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #8038   +/-   ##
=======================================
  Coverage   95.47%   95.48%           
=======================================
  Files         393      392    -1     
  Lines       11188    11153   -35     
  Branches     3708     3684   -24     
=======================================
- Hits        10682    10649   -33     
+ Misses        506      504    -2     
Flag Coverage Δ
unittests 95.48% <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.

@andrey-medvedev-vk andrey-medvedev-vk marked this pull request as ready for review December 4, 2024 10:03
@andrey-medvedev-vk andrey-medvedev-vk requested a review from a team as a code owner December 4, 2024 10:03
Copy link
Contributor

@EldarMuhamethanov EldarMuhamethanov left a comment

Choose a reason for hiding this comment

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

👍

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.

👍

@andrey-medvedev-vk andrey-medvedev-vk merged commit dec9355 into master Dec 4, 2024
53 checks passed
@andrey-medvedev-vk andrey-medvedev-vk deleted the mendrew/Pagination/add-testid-for-buttons branch December 4, 2024 13:28
@vkcom-publisher
Copy link
Contributor

v7.1.0 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants