@@ -55,32 +55,34 @@ describe('DetailTab container', () => {
5555
5656 it ( 'renders failed transaction' , ( ) => {
5757 const wrapper = createWrapper ( FailedTransaction )
58- expect ( wrapper . find ( '.detail-section[data-test="status"]' ) . text ( ) ) . toEqual (
58+ expect (
59+ wrapper . find ( '.detail-section[data-testid="status"]' ) . text ( ) ,
60+ ) . toEqual (
5961 expect . stringContaining (
6062 'This transaction failed with a status code of tecINSUFFICIENT_RESERVE, and validated in ledger 37375929 on' ,
6163 ) ,
6264 )
6365 expect (
64- wrapper . find ( '.detail-section[data-test ="status"] .fail' ) . text ( ) ,
66+ wrapper . find ( '.detail-section[data-testid ="status"] .fail' ) . text ( ) ,
6567 ) . toEqual ( 'tecINSUFFICIENT_RESERVE' )
6668 wrapper . unmount ( )
6769 } )
6870
6971 it ( 'renders hooks section' , ( ) => {
7072 const wrapper = createWrapper ( HookPayment )
71- expect ( wrapper . find ( '.detail-section[data-test ="hooks"]' ) ) . toHaveLength ( 1 )
73+ expect ( wrapper . find ( '.detail-section[data-testid ="hooks"]' ) ) . toHaveLength ( 1 )
7274
73- const hooksWrapper = wrapper . find ( '.detail-section[data-test ="hooks"]' )
75+ const hooksWrapper = wrapper . find ( '.detail-section[data-testid ="hooks"]' )
7476
7577 expect (
76- hooksWrapper . find ( '.detail-subsection[data-test ="emit-details"]' ) ,
78+ hooksWrapper . find ( '.detail-subsection[data-testid ="emit-details"]' ) ,
7779 ) . toHaveLength ( 0 )
7880
7981 expect (
80- hooksWrapper . find ( '.detail-subsection[data-test ="hook-params"]' ) ,
82+ hooksWrapper . find ( '.detail-subsection[data-testid ="hook-params"]' ) ,
8183 ) . toHaveLength ( 1 )
8284 const paramWrapper = hooksWrapper . find (
83- '.detail-subsection[data-test ="hook-params"]' ,
85+ '.detail-subsection[data-testid ="hook-params"]' ,
8486 )
8587 expect ( paramWrapper . find ( 'li' ) ) . toHaveLength ( 2 )
8688 expect ( paramWrapper . find ( 'li' ) . at ( 0 ) ) . toHaveText ( 'EVR2: evnHostUpdateReg' )
@@ -89,10 +91,10 @@ describe('DetailTab container', () => {
8991 )
9092
9193 expect (
92- hooksWrapper . find ( '.detail-subsection[data-test ="hook-executions"]' ) ,
94+ hooksWrapper . find ( '.detail-subsection[data-testid ="hook-executions"]' ) ,
9395 ) . toHaveLength ( 1 )
9496 const execWrapper = hooksWrapper . find (
95- '.detail-subsection[data-test ="hook-executions"]' ,
97+ '.detail-subsection[data-testid ="hook-executions"]' ,
9698 )
9799 expect ( execWrapper . find ( 'li' ) ) . toHaveLength ( 1 )
98100 expect ( execWrapper . find ( '.detail-line' ) ) . toHaveLength ( 4 )
@@ -115,15 +117,15 @@ describe('DetailTab container', () => {
115117
116118 it ( 'renders hooks section for emitted tx' , ( ) => {
117119 const wrapper = createWrapper ( EmittedPayment )
118- expect ( wrapper . find ( '.detail-section[data-test ="hooks"]' ) ) . toHaveLength ( 1 )
120+ expect ( wrapper . find ( '.detail-section[data-testid ="hooks"]' ) ) . toHaveLength ( 1 )
119121
120- const hooksWrapper = wrapper . find ( '.detail-section[data-test ="hooks"]' )
122+ const hooksWrapper = wrapper . find ( '.detail-section[data-testid ="hooks"]' )
121123
122124 expect (
123- hooksWrapper . find ( '.detail-subsection[data-test ="emit-details"]' ) ,
125+ hooksWrapper . find ( '.detail-subsection[data-testid ="emit-details"]' ) ,
124126 ) . toHaveLength ( 1 )
125127 const emitWrapper = hooksWrapper . find (
126- '.detail-subsection[data-test ="emit-details"]' ,
128+ '.detail-subsection[data-testid ="emit-details"]' ,
127129 )
128130 expect ( emitWrapper . find ( '.detail-line' ) ) . toHaveLength ( 4 )
129131 expect ( emitWrapper . find ( '.detail-line' ) . at ( 0 ) ) . toHaveText (
@@ -142,14 +144,14 @@ describe('DetailTab container', () => {
142144 expect ( emitWrapper . find ( '.detail-line' ) . at ( 3 ) . find ( 'a' ) ) . toExist ( )
143145
144146 expect (
145- hooksWrapper . find ( '.detail-subsection[data-test ="hook-params"]' ) ,
147+ hooksWrapper . find ( '.detail-subsection[data-testid ="hook-params"]' ) ,
146148 ) . toHaveLength ( 0 )
147149
148150 expect (
149- hooksWrapper . find ( '.detail-subsection[data-test ="hook-executions"]' ) ,
151+ hooksWrapper . find ( '.detail-subsection[data-testid ="hook-executions"]' ) ,
150152 ) . toHaveLength ( 1 )
151153 const execWrapper = hooksWrapper . find (
152- '.detail-subsection[data-test ="hook-executions"]' ,
154+ '.detail-subsection[data-testid ="hook-executions"]' ,
153155 )
154156 expect ( execWrapper . find ( 'li' ) ) . toHaveLength ( 1 )
155157 expect ( execWrapper . find ( '.detail-line' ) ) . toHaveLength ( 4 )
0 commit comments