Tests: Add E2E tests for all SCF field types#338
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the Core Committers: Use this line as a base for the props when committing in SVN: To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## trunk #338 +/- ##
============================================
+ Coverage 25.13% 27.82% +2.68%
Complexity 4410 4410
============================================
Files 291 291
Lines 36916 36916
============================================
+ Hits 9278 10271 +993
+ Misses 27638 26645 -993
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Add comprehensive Playwright E2E tests covering all 24 SCF field types across 7 categories, with a shared test helper plugin for output verification. Field types tested: - Basic: Text, Textarea, Number, Range, Email, URL, Password - Content: WYSIWYG, oEmbed, Image, File, Gallery - Choice: Select, Checkbox, Radio, Button Group, True/False - Relational: Link, Post Object, Page Link, Relationship, Taxonomy, User - Advanced: Google Map, Date Picker, DateTime Picker, Time Picker, Color Picker - Layout: Group, Repeater, Flexible Content, Clone Test infrastructure: - field-helpers.js: Shared utilities for field group creation, Select2 interaction, layout expansion, and common test operations - scf-test-all-field-types.php: Test plugin that outputs field values in identifiable HTML elements for E2E verification - test-image.png: Asset for image/file/gallery field tests
5e1d59f to
b928886
Compare
What
Part of #315.
Adds E2E tests covering all SCF field types.
Why
E2E tests for field types validate:
How
Test Coverage (24 field types)
Testing Instructions
Run all field type tests:
npm run test:e2e -- tests/e2e/field-type-*.spec.ts