-
Notifications
You must be signed in to change notification settings - Fork 185
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
e2e: add screenshot state custom height #8246
e2e: add screenshot state custom height #8246
Conversation
# Conflicts: # packages/vkui/src/components/Cell/__image_snapshots__/cell-android-chromium-dark-1-snap.png # packages/vkui/src/components/Cell/__image_snapshots__/cell-android-chromium-light-1-snap.png # packages/vkui/src/components/Cell/__image_snapshots__/cell-vkcom-chromium-dark-1-snap.png # packages/vkui/src/components/Cell/__image_snapshots__/cell-vkcom-chromium-light-1-snap.png # packages/vkui/src/components/CellButton/__image_snapshots__/cellbutton-android-chromium-dark-1-snap.png # packages/vkui/src/components/CellButton/__image_snapshots__/cellbutton-android-chromium-light-1-snap.png # packages/vkui/src/components/CellButton/__image_snapshots__/cellbutton-vkcom-chromium-dark-1-snap.png # packages/vkui/src/components/CellButton/__image_snapshots__/cellbutton-vkcom-chromium-light-1-snap.png # packages/vkui/src/components/MiniInfoCell/__image_snapshots__/miniinfocell-android-chromium-dark-1-snap.png # packages/vkui/src/components/MiniInfoCell/__image_snapshots__/miniinfocell-android-chromium-light-1-snap.png # packages/vkui/src/components/MiniInfoCell/__image_snapshots__/miniinfocell-vkcom-chromium-dark-1-snap.png # packages/vkui/src/components/MiniInfoCell/__image_snapshots__/miniinfocell-vkcom-chromium-light-1-snap.png # packages/vkui/src/components/RichCell/RichCell.e2e-playground.tsx # packages/vkui/src/components/RichCell/__image_snapshots__/richcell-android-chromium-dark-1-snap.png # packages/vkui/src/components/RichCell/__image_snapshots__/richcell-android-chromium-light-1-snap.png # packages/vkui/src/components/RichCell/__image_snapshots__/richcell-ios-webkit-dark-1-snap.png # packages/vkui/src/components/RichCell/__image_snapshots__/richcell-ios-webkit-light-1-snap.png # packages/vkui/src/components/RichCell/__image_snapshots__/richcell-vkcom-chromium-dark-1-snap.png # packages/vkui/src/components/RichCell/__image_snapshots__/richcell-vkcom-chromium-light-1-snap.png # packages/vkui/src/components/RichCell/__image_snapshots__/richcell-vkcom-firefox-dark-1-snap.png # packages/vkui/src/components/RichCell/__image_snapshots__/richcell-vkcom-firefox-light-1-snap.png # packages/vkui/src/components/RichCell/__image_snapshots__/richcell-vkcom-webkit-dark-1-snap.png # packages/vkui/src/components/RichCell/__image_snapshots__/richcell-vkcom-webkit-light-1-snap.png # packages/vkui/src/components/SimpleCell/__image_snapshots__/simplecell-android-chromium-dark-1-snap.png # packages/vkui/src/components/SimpleCell/__image_snapshots__/simplecell-android-chromium-light-1-snap.png # packages/vkui/src/components/SimpleCell/__image_snapshots__/simplecell-vkcom-chromium-dark-1-snap.png # packages/vkui/src/components/SimpleCell/__image_snapshots__/simplecell-vkcom-chromium-light-1-snap.png
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. |
size-limit report 📦
|
e2e tests |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #8246 +/- ##
==========================================
+ Coverage 95.53% 95.54% +0.01%
==========================================
Files 404 404
Lines 11553 11920 +367
Branches 3836 4039 +203
==========================================
+ Hits 11037 11389 +352
- Misses 516 531 +15
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
👏
👀 Docs deployed
Commit 48d0399 |
Проблема
В текущей реализации скриншотных тестов состояния компонентов располагаются вертикально друг под другом. При изменении высоты одного из состояний все нижележащие состояния сдвигаются, что затрудняет анализ
diff'а
и выявление конкретных изменений.Решение
Добавлена возможность явно задавать фиксированную высоту для состояний компонента на скриншоте через свойство
componentStateHeight
.Особенности реализации
componentStateHeight
представляет собой мапуPlatformType
->number
componentStateHeight
не указан, высота не ограничивается (поведение остается прежним)Плюсы и минусы решения
diff'а
при измененияхRelease notes