@@ -93,14 +93,26 @@ describe('Renderers: minami', () => {
9393 . get ( '@table-data' )
9494 . find ( '> tbody > tr' )
9595 . then ( ( $rows ) => {
96- const $rowChildren = $rows . eq ( 0 ) . children ( ) ;
96+ const $firstRowChildren = $rows . eq ( 0 ) . children ( ) ;
97+ const $secondRowChildren = $rows . eq ( 1 ) . children ( ) ;
98+ const $thirdRowChildren = $rows . eq ( 2 ) . children ( ) ;
9799
98- expect ( $rows ) . to . have . length ( 1 ) ;
100+ expect ( $rows ) . to . have . length ( 3 ) ;
101+
102+ expect ( $firstRowChildren . eq ( 0 ) . html ( ) ) . to . eq ( 'fooList' ) ;
103+ expect ( $firstRowChildren . eq ( 0 ) . attr ( 'class' ) ) . to . eq ( 'name' ) ;
104+ expect ( $firstRowChildren . eq ( 1 ) . html ( ) ) . to . eq ( 'Array' ) ;
105+ expect ( $firstRowChildren . eq ( 2 ) . html ( ) ) . to . eq ( 'A list of foo' ) ;
106+
107+ expect ( $secondRowChildren . eq ( 0 ) . html ( ) ) . to . eq ( 'barList' ) ;
108+ expect ( $secondRowChildren . eq ( 0 ) . attr ( 'class' ) ) . to . eq ( 'name' ) ;
109+ expect ( $secondRowChildren . eq ( 1 ) . html ( ) ) . to . eq ( 'Array' ) ;
110+ expect ( $secondRowChildren . eq ( 2 ) . html ( ) ) . to . eq ( 'A list of bar' ) ;
99111
100- expect ( $rowChildren . eq ( 0 ) . html ( ) ) . to . eq ( 'message' ) ;
101- expect ( $rowChildren . eq ( 0 ) . attr ( 'class' ) ) . to . eq ( 'name' ) ;
102- expect ( $rowChildren . eq ( 1 ) . html ( ) ) . to . eq ( 'String' ) ;
103- expect ( $rowChildren . eq ( 2 ) . html ( ) ) . to . eq ( 'A message' ) ;
112+ expect ( $thirdRowChildren . eq ( 0 ) . html ( ) ) . to . eq ( 'message' ) ;
113+ expect ( $thirdRowChildren . eq ( 0 ) . attr ( 'class' ) ) . to . eq ( 'name' ) ;
114+ expect ( $thirdRowChildren . eq ( 1 ) . html ( ) ) . to . eq ( 'String' ) ;
115+ expect ( $thirdRowChildren . eq ( 2 ) . html ( ) ) . to . eq ( 'A message' ) ;
104116 } ) ;
105117 } ) ;
106118
@@ -110,19 +122,19 @@ describe('Renderers: minami', () => {
110122 . contains ( 'decrement()' )
111123 . next ( '.description' )
112124 . next ( '.details' )
113- . find ( 'a[href="BetterCounter.vue.html#line43 "]' , 'line 43 ' ) ;
125+ . contains ( 'a[href="BetterCounter.vue.html#line51 "]' , 'line 51 ' ) ;
114126
115127 cy . get ( '#increment' )
116128 . contains ( 'increment()' )
117129 . next ( '.description' )
118130 . next ( '.details' )
119- . find ( 'a[href="BetterCounter.vue.html#line36 "]' , 'line 36 ' ) ;
131+ . contains ( 'a[href="BetterCounter.vue.html#line44 "]' , 'line 44 ' ) ;
120132
121133 cy . get ( '#showDialog' )
122134 . contains ( 'showDialog(counter)' )
123135 . next ( '.description' )
124136 . next ( '.details' )
125- . find ( 'a[href="BetterCounter.vue.html#line51 "]' , 'line 51 ' ) ;
137+ . contains ( 'a[href="BetterCounter.vue.html#line59 "]' , 'line 59 ' ) ;
126138
127139 cy . contains ( 'created()' ) . should ( 'not.exist' ) ;
128140 } ) ;
0 commit comments