@@ -467,9 +467,10 @@ describe("Timeline", () => {
467467 "0px" ,
468468 ) ;
469469
470- cy . get ( ".mx_MainSplit" ) . percySnapshotElement ( "Hidden event line with zero padding on IRC layout" , {
470+ // Disabled because flaky - see https://github.com/vector-im/element-web/issues/24881
471+ /*cy.get(".mx_MainSplit").percySnapshotElement("Hidden event line with zero padding on IRC layout", {
471472 percyCSS,
472- } ) ;
473+ });*/
473474
474475 // should add inline start padding to a hidden event line on modern layout
475476 cy . setSettingValue ( "layout" , null , SettingLevel . DEVICE , Layout . Group ) ;
@@ -763,7 +764,7 @@ describe("Timeline", () => {
763764 cy . contains ( ".mx_RoomView_MessageList .mx_EventTile_last" , reply2 ) . should ( "exist" ) ;
764765
765766 // Exclude timestamp and read marker from snapshot
766- const percyCSS = ".mx_MessageTimestamp, .mx_RoomView_myReadMarker { visibility: hidden !important; }" ;
767+ // const percyCSS = ".mx_MessageTimestamp, .mx_RoomView_myReadMarker { visibility: hidden !important; }";
767768
768769 // Check the margin value of ReplyChains of EventTile at the bottom on IRC layout
769770 cy . setSettingValue ( "layout" , null , SettingLevel . DEVICE , Layout . IRC ) ;
@@ -780,9 +781,10 @@ describe("Timeline", () => {
780781 cy . get ( ".mx_EventTile_last[data-layout='group'] .mx_ReplyChain" ) . should ( "have.css" , "margin-bottom" , "8px" ) ;
781782
782783 // Take a snapshot on modern layout
783- cy . get ( ".mx_EventTile_last" ) . percySnapshotElement ( "EventTile with reply chains on modern layout" , {
784+ // Disabled because flaky - see https://github.com/vector-im/element-web/issues/24881
785+ /*cy.get(".mx_EventTile_last").percySnapshotElement("EventTile with reply chains on modern layout", {
784786 percyCSS,
785- } ) ;
787+ });*/
786788
787789 // Check the margin value of ReplyChains of EventTile at the bottom on group/modern compact layout
788790 cy . setSettingValue ( "useCompactLayout" , null , SettingLevel . DEVICE , true ) ;
@@ -874,7 +876,7 @@ describe("Timeline", () => {
874876 cy . viewport ( 1600 , 1200 ) ;
875877
876878 // Exclude timestamp and read marker from snapshots
877- const percyCSS = ".mx_MessageTimestamp, .mx_RoomView_myReadMarker { visibility: hidden !important; }" ;
879+ // const percyCSS = ".mx_MessageTimestamp, .mx_RoomView_myReadMarker { visibility: hidden !important; }";
878880
879881 // Make sure the strings do not overflow on IRC layout
880882 cy . setSettingValue ( "layout" , null , SettingLevel . DEVICE , Layout . IRC ) ;
@@ -887,7 +889,8 @@ describe("Timeline", () => {
887889 cy . get ( ".mx_EventTile_receiptSent" ) . should ( "be.visible" ) ; // rendered at the bottom of EventTile
888890 } ) ;
889891 // Take a snapshot in IRC layout
890- cy . get ( ".mx_ScrollPanel" ) . percySnapshotElement ( "Long strings with a reply on IRC layout" , { percyCSS } ) ;
892+ // Disabled because flaky - see https://github.com/vector-im/element-web/issues/24881
893+ //cy.get(".mx_ScrollPanel").percySnapshotElement("Long strings with a reply on IRC layout", { percyCSS });
891894
892895 // Make sure the strings do not overflow on modern layout
893896 cy . setSettingValue ( "layout" , null , SettingLevel . DEVICE , Layout . Group ) ;
@@ -897,7 +900,8 @@ describe("Timeline", () => {
897900 cy . get ( ".mx_MTextBody" ) . should ( "be.visible" ) ;
898901 cy . get ( ".mx_EventTile_receiptSent" ) . should ( "be.visible" ) ;
899902 } ) ;
900- cy . get ( ".mx_ScrollPanel" ) . percySnapshotElement ( "Long strings with a reply on modern layout" , { percyCSS } ) ;
903+ // Disabled because flaky - see https://github.com/vector-im/element-web/issues/24881
904+ //cy.get(".mx_ScrollPanel").percySnapshotElement("Long strings with a reply on modern layout", { percyCSS });
901905
902906 // Make sure the strings do not overflow on bubble layout
903907 cy . setSettingValue ( "layout" , null , SettingLevel . DEVICE , Layout . Bubble ) ;
@@ -907,7 +911,8 @@ describe("Timeline", () => {
907911 cy . get ( ".mx_MTextBody" ) . should ( "be.visible" ) ;
908912 cy . get ( ".mx_EventTile_receiptSent" ) . should ( "be.visible" ) ;
909913 } ) ;
910- cy . get ( ".mx_ScrollPanel" ) . percySnapshotElement ( "Long strings with a reply on bubble layout" , { percyCSS } ) ;
914+ // Disabled because flaky - see https://github.com/vector-im/element-web/issues/24881
915+ //cy.get(".mx_ScrollPanel").percySnapshotElement("Long strings with a reply on bubble layout", { percyCSS });
911916 } ) ;
912917 } ) ;
913918} ) ;
0 commit comments