@@ -81,7 +81,8 @@ describe('TransactionsDataTable tests', () => {
8181 expect ( titles . at ( 6 ) . text ( ) ) . toBe ( 'Invoice Reference Number' )
8282 expect ( titles . at ( 7 ) . text ( ) ) . toBe ( 'Payment Method' )
8383 expect ( titles . at ( 8 ) . text ( ) ) . toBe ( 'Payment Status' )
84- expect ( titles . at ( 9 ) . text ( ) ) . toBe ( '' )
84+ expect ( titles . at ( 9 ) . text ( ) ) . toBe ( 'Downloads' )
85+ expect ( titles . at ( 10 ) . text ( ) ) . toBe ( '' )
8586 // table items
8687 const itemRows = wrapper . findComponent ( BaseVDataTable ) . findAll ( itemRow )
8788 expect ( itemRows . length ) . toBe ( transactionResponse . items . length )
@@ -98,7 +99,8 @@ describe('TransactionsDataTable tests', () => {
9899 expect ( row1Cells . at ( 6 ) . text ( ) ) . toBe ( 'REG000123442' )
99100 expect ( row1Cells . at ( 7 ) . text ( ) ) . toBe ( 'No Fee' )
100101 expect ( row1Cells . at ( 8 ) . text ( ) ) . toBe ( 'CompletedJanuary 24, 2023' )
101- expect ( row1Cells . at ( 9 ) . text ( ) ) . toBe ( '' )
102+ expect ( row1Cells . at ( 9 ) . text ( ) ) . toBe ( 'Receipt' )
103+ expect ( row1Cells . at ( 10 ) . text ( ) ) . toBe ( '' )
102104 // clear filters is hidden
103105 expect ( wrapper . find ( '.clear-btn' ) . exists ( ) ) . toBe ( false )
104106 } )
@@ -126,7 +128,8 @@ describe('TransactionsDataTable tests', () => {
126128 expect ( titles . at ( 10 ) . text ( ) ) . toBe ( 'Invoice Reference Number' )
127129 expect ( titles . at ( 11 ) . text ( ) ) . toBe ( 'Payment Method' )
128130 expect ( titles . at ( 12 ) . text ( ) ) . toBe ( 'Payment Status' )
129- expect ( titles . at ( 13 ) . text ( ) ) . toBe ( '' )
131+ expect ( titles . at ( 13 ) . text ( ) ) . toBe ( 'Downloads' )
132+ expect ( titles . at ( 14 ) . text ( ) ) . toBe ( '' )
130133 // table items
131134 const itemRows = wrapper . findComponent ( BaseVDataTable ) . findAll ( itemRow )
132135 expect ( itemRows . length ) . toBe ( transactionResponse . items . length )
@@ -146,7 +149,8 @@ describe('TransactionsDataTable tests', () => {
146149 expect ( row1Cells . at ( 10 ) . text ( ) ) . toBe ( 'REG000123442' )
147150 expect ( row1Cells . at ( 11 ) . text ( ) ) . toBe ( 'No Fee' )
148151 expect ( row1Cells . at ( 12 ) . text ( ) ) . toBe ( 'CompletedJanuary 24, 2023' )
149- expect ( row1Cells . at ( 13 ) . text ( ) ) . toBe ( '' )
152+ expect ( row1Cells . at ( 13 ) . text ( ) ) . toBe ( 'Receipt' )
153+ expect ( row1Cells . at ( 14 ) . text ( ) ) . toBe ( '' )
150154 } )
151155
152156 it ( 'shows date picker when date filter clicked' , async ( ) => {
0 commit comments