This repository was archived by the owner on Sep 11, 2024. It is now read-only.
File tree 1 file changed +9
-0
lines changed
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -357,12 +357,21 @@ describe("Timeline", () => {
357
357
"not.be.visible" , // See: _GenericEventListSummary.pcss
358
358
) ;
359
359
360
+ // Exclude timestamp from snapshot
361
+ const percyCSS = ".mx_MessageTimestamp { visibility: hidden !important; }" ;
362
+
363
+ // Save snapshot of expanded generic event list summary on bubble layout
364
+ cy . get ( ".mx_MainSplit" ) . percySnapshotElement ( "Expanded GELS on bubble layout" , { percyCSS } ) ;
365
+
360
366
// Click "collapse" link button on the first hovered info event line
361
367
cy . get ( ".mx_GenericEventListSummary_unstyledList .mx_EventTile_info:first-of-type" ) . realHover ( ) ;
362
368
cy . get ( ".mx_GenericEventListSummary_toggle[aria-expanded=true]" ) . click ( { force : false } ) ;
363
369
364
370
// Make sure "collapse" link button worked
365
371
cy . get ( ".mx_GenericEventListSummary_toggle[aria-expanded=false]" ) . should ( "exist" ) ;
372
+
373
+ // Save snapshot of collapsed generic event list summary on bubble layout
374
+ cy . get ( ".mx_MainSplit" ) . percySnapshotElement ( "Collapsed GELS on bubble layout" , { percyCSS } ) ;
366
375
} ) ;
367
376
368
377
it ( "should highlight search result words regardless of formatting" , ( ) => {
You can’t perform that action at this time.
0 commit comments