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(e2e): add ability to add value with label to screenshot #8147

Merged
merged 2 commits into from
Jan 21, 2025

Conversation

EldarMuhamethanov
Copy link
Contributor

@EldarMuhamethanov EldarMuhamethanov commented Jan 17, 2025

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

Изменения

  • Добавил функцию withLabel, которая позволяет на скриншоте вместо значения указывать кастомный label. Это может понадобится, когда в value находится очень длинный текст и на мобильном экране он занимает много места. В то же время знать полностью все значение нам в большинстве случаев не надо. Поэтому можно добавить кастомный короткий label.
  • Немного переделал логику составления списка пропов на скриншоте
  • Прошелся по скриншотам и там, где посчитал это необходимым, добавил использование withLabel
  • Обновил скриншоты

Размер скриншотов
до изменений: 112,21 MB
после изменений: 104,93 MB

Release notes

Copy link

codesandbox-ci bot commented Jan 17, 2025

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 Jan 17, 2025

size-limit report 📦

Path Size
JS 392.33 KB (0%)
JS (gzip) 119 KB (0%)
JS (brotli) 97.85 KB (0%)
JS import Div (tree shaking) 1.56 KB (0%)
CSS 344.03 KB (0%)
CSS (gzip) 42.64 KB (0%)
CSS (brotli) 34.01 KB (0%)

Copy link
Contributor

e2e tests

Playwright Report

Copy link
Contributor

👀 Docs deployed

Commit e7ea2b9

Copy link

codecov bot commented Jan 17, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.49%. Comparing base (d5e207b) to head (e9ca8e8).
Report is 20 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8147      +/-   ##
==========================================
- Coverage   95.50%   95.49%   -0.01%     
==========================================
  Files         401      403       +2     
  Lines       11435    11456      +21     
  Branches     3774     3781       +7     
==========================================
+ Hits        10921    10940      +19     
- Misses        514      516       +2     
Flag Coverage Δ
unittests 95.49% <ø> (-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

@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.

круть!

Из предложений, может вместо propery=undefind показывать property? как в TS? или пустым вот так propery=

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 d5629e8 into master Jan 21, 2025
28 of 29 checks passed
@EldarMuhamethanov EldarMuhamethanov deleted the e.muhamethanov/decrease-screenshots-volume branch January 21, 2025 11:11
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.

3 participants