@@ -92,27 +92,21 @@ test.describe('EnrichedText display visual regression', () => {
9292} ) ;
9393
9494test . describe ( 'visual: complex lists and layouts' , ( ) => {
95- const cases = [
96- {
97- name : 'all 3 types of the list at once' ,
98- snapshot : 'enriched-text-all-list-types.png' ,
99- html : [
100- '<html>' ,
101- '<ul><li>Bullet item</li></ul>' ,
102- '<ol><li>Numbered item</li></ol>' ,
103- '<ul data-type="checkbox"><li checked>Checked item</li><li>Unchecked item</li></ul>' ,
104- '</html>' ,
105- ] . join ( '' ) ,
106- } ,
107- ] ;
95+ test ( 'all 3 types of the list at once' , async ( { page } ) => {
96+ const html = [
97+ '<html>' ,
98+ '<ul><li>Bullet item</li></ul>' ,
99+ '<ol><li>Numbered item</li></ol>' ,
100+ '<ul data-type="checkbox"><li checked>Checked item</li><li>Unchecked item</li></ul>' ,
101+ '</html>' ,
102+ ] . join ( '' ) ;
108103
109- for ( const c of cases ) {
110- test ( c . name , async ( { page } ) => {
111- await gotoTestEnrichedText ( page ) ;
112- await setEnrichedTextValue ( page , c . html ) ;
113- await expect ( displayLocator ( page ) ) . toHaveScreenshot ( c . snapshot ) ;
114- } ) ;
115- }
104+ await gotoTestEnrichedText ( page ) ;
105+ await setEnrichedTextValue ( page , html ) ;
106+ await expect ( displayLocator ( page ) ) . toHaveScreenshot (
107+ 'enriched-text-all-list-types.png'
108+ ) ;
109+ } ) ;
116110} ) ;
117111
118112test . describe ( 'visual: typography, blocks, and wrapping' , ( ) => {
0 commit comments