Skip to content

Commit d91cfac

Browse files
authored
Merge pull request #1755 from Rubaiyat-E-Mohammad/develop
[Test Automation] Added 105 new testcases related to Field options settings
2 parents 47b6597 + 464bdfc commit d91cfac

29 files changed

+5828
-422
lines changed

.github/workflows/e2e-wpuf.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
- name: Use desired version of NodeJS
4242
uses: actions/setup-node@v4
4343
with:
44-
node-version: 18
44+
node-version: 23
4545
cache: npm
4646

4747
# Clone wpuf-pro
Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
# 📋 COMPREHENSIVE FIELD OPTIONS COVERAGE ANALYSIS
2+
3+
**Project:** WordPress User Frontend Plugin
4+
**Test Suite:** fieldOptionSettingsTest.spec.ts
5+
6+
---
7+
8+
## 🔍 DETAILED FIELD OPTIONS TO COVER
9+
10+
### 🔤 TEXT FIELD (12 options)
11+
12+
✅ Field Label ☑️
13+
✅ Meta Key ☑️
14+
✅ Help Text ☑️
15+
✅ Placeholder Text ☑️
16+
✅ Default Value ☑️
17+
✅ Required ☑️
18+
✅ CSS Class Name ☑️
19+
✅ Field Size ☑️
20+
✅ Show Data In Post ☑️
21+
✅ Hide Field Label ☑️
22+
✅ Visibility ☑️
23+
✅ Conditional Logic ☑️
24+
25+
### 🔤 EMBED FIELD (1 options)
26+
27+
✅ Read Only ☑️
28+
29+
### 📝 TEXTAREA FIELD (4 options)
30+
31+
✅ Rich Text Editor ☑️
32+
✅ Content Restriction Type ☑️
33+
✅ Content Restriction By ☑️
34+
✅ Content Restriction length ☑️
35+
36+
### 🔤 CATEGORY FIELD (3 options)
37+
38+
✅ Type ☑️
39+
✅ Selection Type ☑️
40+
✅ Selection Terms ☑️
41+
42+
### 📋 DROPDOWN FIELD (4 options)
43+
44+
✅ Options ☑️
45+
✅ Label & Values ☑️
46+
✅ Clear Selection ☑️
47+
✅ Select Text ☑️
48+
49+
### ☑️ Radio FIELD (1 options)
50+
51+
✅ Show in inline list ☑️
52+
53+
### 🔤 TIME FIELD (2 options)
54+
55+
✅ Time Format ☑️
56+
✅ Time Intervals ☑️
57+
58+
### 📁 FILE UPLOAD FIELD (1 options)
59+
60+
✅ Max Files Number ☑️
61+
62+
### 🖼️ IMAGE UPLOAD FIELD (2 options)
63+
64+
✅ Max Image Size ☑️
65+
✅ Image Upload Button Text ☑️
66+
67+
### 🌍 COUNTRY FIELD (3 options)
68+
69+
✅ Country Option ☑️
70+
✅ Default Country ☑️
71+
✅ Select countries ☑️
72+
73+
### 🏠 ADDRESS FIELD (3 options)
74+
75+
✅ Address Line 2 required ☑️
76+
✅ Address Line 2 default ☑️
77+
✅ Address Line 2 placeholder ☑️
78+
79+
### 📋 EMAIL FIELD (1 options)
80+
81+
✅ Show Icon & Field Icon ☑️
82+
83+
### 🔢 NUMERIC FIELD (3 options)
84+
85+
✅ Min Value ☑️
86+
✅ Max Value ☑️
87+
✅ Step Size ☑️
88+
89+
### 📅 DATE/TIME FIELD (5 options)
90+
91+
✅ Date Format ☑️
92+
✅ Enable time input ☑️
93+
✅ Enter minDate in number ☑️
94+
✅ Enter maxDate in number ☑️
95+
✅ Set this as publish time input ☑️
96+
97+
### 📅 WEBSITE URL FIELD (5 options)
98+
99+
✅ Show data in post ☑️
100+
✅ Hide field label in post ☑️
101+
✅ New window ☑️
102+
✅ visibility ☑️
103+
104+
---
105+
106+
## 🏆 CONCLUSION
107+
108+
The current test suite provides **excellent coverage** with 47 field options across 15 field types. The Text field testing is particularly comprehensive with 12 different options covered by multiple scenarios. The existing coverage represents a solid foundation for WordPress User Frontend field option testing.
109+
110+
The test suite successfully validates both configuration and frontend validation for most field options, ensuring comprehensive end-to-end testing coverage.
111+
112+
---

tests/e2e/features-map/features-map.yml

Lines changed: 231 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -83,18 +83,20 @@ features:
8383
- id: PF0016
8484
name: Admin is validating entered product data
8585
- id: PF0017
86-
name: Admin is setting necessary setup for downloads form
86+
name: Admin is validating entered product data BE
8787
- id: PF0018
88-
name: Admin is creating a downloads Post Form
88+
name: Admin is setting necessary setup for downloads form
8989
- id: PF0019
90-
name: Admin is creating downloads page with shortcode
90+
name: Admin is creating a downloads Post Form
9191
- id: PF0020
92-
name: Admin is creating downloads from FE
92+
name: Admin is creating downloads page with shortcode
9393
- id: PF0021
94-
name: Admin is validating downloads created
94+
name: Admin is creating downloads from FE
9595
- id: PF0022
96-
name: Admin is validating entered downloads data
96+
name: Admin is validating downloads created
9797
- id: PF0023
98+
name: Admin is validating entered downloads data
99+
- id: PF0024
98100
name: Admin is validating entered downloads data BE
99101

100102
# Registration Forms
@@ -319,15 +321,21 @@ features:
319321
- id: PFS0086
320322
name: Admin is unlimiting form entries
321323
- id: PFS0087
322-
name: Admin is enabling conditional logic on form submission
324+
name: Admin is enabling conditional logic for any condition
323325
- id: PFS0088
324-
name: Admin is validating conditional logic on form submission
326+
name: Admin is validating conditional logic for any condition
325327
- id: PFS0089
326-
name: Admin is enabling post expiration
328+
name: Admin is enabling conditional logic for all condition
327329
- id: PFS0090
328-
name: Admin is setting post permission to role based
330+
name: Admin is validating conditional logic for all condition
329331
- id: PFS0091
330-
name: Admin is validating post permission role based
332+
name: Admin is disabling conditional logic
333+
- id: PFS0092
334+
name: Admin is enabling post expiration
335+
- id: PFS0093
336+
name: Admin is setting post permission role based
337+
- id: PFS0094
338+
name: Admin is validating post permission restriction
331339

332340
# Registration Form Settings
333341
- id: RFS0001
@@ -448,3 +456,215 @@ features:
448456
name: Admin is validating multi-step by step
449457
- id: RFS0059
450458
name: Admin is disabling multi-step form
459+
460+
# Field Options Settings
461+
- id: FOS0001
462+
name: Admin is creating a test form for field options testing
463+
- id: FOS0002
464+
name: Admin is configuring Field Label option (using Text field)
465+
- id: FOS0003
466+
name: Admin is validating Field Label option in frontend
467+
- id: FOS0004
468+
name: Admin is configuring Meta Key option (using Text field)
469+
- id: FOS0005
470+
name: Admin is validating Meta Key option in backend
471+
- id: FOS0006
472+
name: Admin is configuring Help Text option (using Text field)
473+
- id: FOS0007
474+
name: Admin is validating Help Text option in frontend
475+
- id: FOS0008
476+
name: Admin is configuring Placeholder Text option (using Text field)
477+
- id: FOS0009
478+
name: Admin is validating Placeholder Text option in frontend
479+
- id: FOS0010
480+
name: Admin is configuring Default Value option (using Text field)
481+
- id: FOS0011
482+
name: Admin is validating Default Value option in frontend
483+
- id: FOS0012
484+
name: Admin is configuring Required field option (using Text field)
485+
- id: FOS0013
486+
name: Admin is validating Required field option in frontend
487+
- id: FOS0014
488+
name: Admin is configuring CSS Class Name option (using Text field)
489+
- id: FOS0015
490+
name: Admin is validating CSS Class Name option in frontend
491+
- id: FOS0016
492+
name: Admin is configuring Field Size option (using Text field)
493+
- id: FOS0017
494+
name: Admin is validating Field Size option in frontend
495+
- id: FOS0018
496+
name: Admin is configuring Read Only option (using Text field)
497+
- id: FOS0019
498+
name: Admin is validating Read Only option in frontend
499+
- id: FOS0020
500+
name: Admin is configuring Show Data in Post option (using Text field)
501+
- id: FOS0021
502+
name: Admin is validating Show Data in Post option in backend
503+
- id: FOS0022
504+
name: Admin is configuring Hide Field Label option (using Text field)
505+
- id: FOS0023
506+
name: Admin is validating Hide Field Label option in frontend
507+
- id: FOS0024
508+
name: Admin is configuring Visibility option (using Text field)
509+
- id: FOS0025
510+
name: Admin is validating Visibility option in frontend
511+
- id: FOS0026
512+
name: Admin is configuring Content Restriction option for min character length
513+
- id: FOS0027
514+
name: Admin is validating Content Restriction option for min character length in FE
515+
- id: FOS0028
516+
name: Admin is configuring Content Restriction option for max character length
517+
- id: FOS0029
518+
name: Admin is validating Content Restriction option for max character length in FE
519+
- id: FOS0030
520+
name: Admin is configuring Content Restriction option for min word length
521+
- id: FOS0031
522+
name: Admin is validating Content Restriction option for min word length in FE
523+
- id: FOS0032
524+
name: Admin is configuring Content Restriction option for max word length
525+
- id: FOS0033
526+
name: Admin is validating Content Restriction option for max word length in FE
527+
- id: FOS0034
528+
name: Admin is configuring Conditional Logic option
529+
- id: FOS0035
530+
name: Admin is validating Conditional Logic option in frontend
531+
- id: FOS0036
532+
name: Admin is configuring Rich Text Editor option
533+
- id: FOS0037
534+
name: Admin is validating Rich Text Editor option in frontend
535+
- id: FOS0038
536+
name: Admin is configuring Dropdown Options
537+
- id: FOS0039
538+
name: Admin is validating Dropdown Options in frontend
539+
- id: FOS0040
540+
name: Admin is configuring Select Text option
541+
- id: FOS0041
542+
name: Admin is validating Select Text option in frontend
543+
- id: FOS0042
544+
name: Admin is configuring Category type option - text
545+
- id: FOS0043
546+
name: Admin is validating Category type option - text
547+
- id: FOS0044
548+
name: Admin is configuring Category type option - checkbox
549+
- id: FOS0045
550+
name: Admin is validating Category type option - checkbox
551+
- id: FOS0046
552+
name: Admin is configuring Category type option - multiselect
553+
- id: FOS0047
554+
name: Admin is validating Category type option - multiselect
555+
- id: FOS0048
556+
name: Admin is configuring selection type option - exclude
557+
- id: FOS0049
558+
name: Admin is validating selection type option - exclude
559+
- id: FOS0050
560+
name: Admin is configuring selection type option - include
561+
- id: FOS0051
562+
name: Admin is validating selection type option - include
563+
- id: FOS0052
564+
name: Admin is configuring Show in inline list Options
565+
- id: FOS0053
566+
name: Admin is validating in line list Options in frontend
567+
- id: FOS0054
568+
name: Admin is configuring Time Format option and interval
569+
- id: FOS0055
570+
name: Admin is validating Time Format option and interval in frontend
571+
- id: FOS0056
572+
name: Admin is configuring Max Files number
573+
- id: FOS0057
574+
name: Admin is validating Max Files option in frontend
575+
- id: FOS0058
576+
name: Admin is configuring Max Image Size option
577+
- id: FOS0059
578+
name: Admin is validating Max Image Size option in frontend
579+
- id: FOS0060
580+
name: Admin is configuring Button Text option (using Image Upload field)
581+
- id: FOS0061
582+
name: Admin is validating Button Text option in frontend
583+
- id: FOS0062
584+
name: Admin is configuring Default Country option
585+
- id: FOS0063
586+
name: Admin is validating Default Country option in frontend
587+
- id: FOS0064
588+
name: Admin is configuring Hide Countries option
589+
- id: FOS0065
590+
name: Admin is validating Hide Countries option in frontend
591+
- id: FOS0066
592+
name: Admin is configuring Only Show Countries option
593+
- id: FOS0067
594+
name: Admin is validating Only Show Countries option in frontend
595+
- id: FOS0068
596+
name: Admin is configuring Show Address Line 2 required option
597+
- id: FOS0069
598+
name: Admin is validating Show Address Line 2 required option in frontend
599+
- id: FOS0070
600+
name: Admin is configuring Show Address Line 2 default option
601+
- id: FOS0071
602+
name: Admin is validating Show Address Line 2 default option in frontend
603+
- id: FOS0072
604+
name: Admin is configuring Show Address Line 2 placeholder option
605+
- id: FOS0073
606+
name: Admin is validating Show Address Line 2 placeholder option in frontend
607+
- id: FOS0074
608+
name: Admin is configuring Show Icons option
609+
- id: FOS0075
610+
name: Admin is validating Show Icons option in frontend
611+
- id: FOS0076
612+
name: Admin is configuring Min Value option
613+
- id: FOS0077
614+
name: Admin is configuring Max Value option
615+
- id: FOS0078
616+
name: Admin is configuring Step option
617+
- id: FOS0079
618+
name: Admin is validating Numeric value options in frontend
619+
- id: FOS0080
620+
name: Admin is validating Max Value option in frontend
621+
- id: FOS0081
622+
name: Admin is validating Step option in frontend
623+
- id: FOS0082
624+
name: Admin is creating another test form for other field options testing
625+
- id: FOS0083
626+
name: Admin is configuring Date Format option
627+
- id: FOS0084
628+
name: Admin is configuring Enable Time Input option
629+
- id: FOS0085
630+
name: Admin is configuring Min Date range option
631+
- id: FOS0086
632+
name: Admin is configuring Max Date range option
633+
- id: FOS0087
634+
name: Admin is configuring Publish Time Field option
635+
- id: FOS0088
636+
name: Admin is validating Date Format option in frontend
637+
- id: FOS0089
638+
name: Admin is validating Time Input option in frontend
639+
- id: FOS0090
640+
name: Admin is validating Min Date range option in frontend
641+
- id: FOS0091
642+
name: Admin is validating Max Date range option in frontend
643+
- id: FOS0092
644+
name: Admin is validating Publish Time option in frontend
645+
- id: FOS0093
646+
name: Admin is creating another test form for other field options testing
647+
- id: FOS0094
648+
name: Admin is configuring Hide Field Label option
649+
- id: FOS0095
650+
name: Admin is configuring Show Data in Post option
651+
- id: FOS0096
652+
name: Admin is validating Hide Field Label option in frontend
653+
- id: FOS0097
654+
name: Admin is validating Hide Data in Post option in frontend
655+
- id: FOS0098
656+
name: Admin is configuring Visibility option hidden
657+
- id: FOS0099
658+
name: Admin is validating Visibility option, hidden, in frontend
659+
- id: FOS0100
660+
name: Admin is configuring Visibility option subscription only
661+
- id: FOS0101
662+
name: Admin is validating Visibility option, subscription only, in frontend
663+
- id: FOS0102
664+
name: Admin is configuring Visibility option logged in only
665+
- id: FOS0103
666+
name: Admin is validating Visibility option, logged in only, in frontend
667+
- id: FOS0104
668+
name: Admin is configuring Open in New Window option
669+
- id: FOS0105
670+
name: Admin is validating Open in New Window option in frontend

0 commit comments

Comments
 (0)