test: improve test assertions with exact value matching

- Replace regex patterns with exact equality assertions where possible
- Update 'toggle all-day' test to use exact date value instead of regex
- Keep regex for time range in preview as format varies by implementation
- Address Ben concern about meaningful test assertions
This commit is contained in:
lenhanphung
2025-10-09 16:22:13 +07:00
committed by Benoit TELLIER
parent 456271da32
commit 2932607afb
2 changed files with 31 additions and 16 deletions
+1 -3
View File
@@ -106,9 +106,7 @@ function ResponsiveDialog({
width: "100%",
// height: isExpanded ? `calc(100vh - ${headerHeight})` : "90vh",
margin: isExpanded ? `${headerHeight} 0 0 0` : "32px",
maxHeight: isExpanded
? `calc(100vh - ${headerHeight})`
: "790px",
maxHeight: isExpanded ? `calc(100vh - ${headerHeight})` : "790px",
boxShadow: isExpanded ? "none !important" : undefined,
transition: isExpanded ? "none !important" : undefined,
},