@@ -55,32 +55,34 @@ describe('DetailTab container', () => {
55
55
56
56
it ( 'renders failed transaction' , ( ) => {
57
57
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 (
59
61
expect . stringContaining (
60
62
'This transaction failed with a status code of tecINSUFFICIENT_RESERVE, and validated in ledger 37375929 on' ,
61
63
) ,
62
64
)
63
65
expect (
64
- wrapper . find ( '.detail-section[data-test ="status"] .fail' ) . text ( ) ,
66
+ wrapper . find ( '.detail-section[data-testid ="status"] .fail' ) . text ( ) ,
65
67
) . toEqual ( 'tecINSUFFICIENT_RESERVE' )
66
68
wrapper . unmount ( )
67
69
} )
68
70
69
71
it ( 'renders hooks section' , ( ) => {
70
72
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 )
72
74
73
- const hooksWrapper = wrapper . find ( '.detail-section[data-test ="hooks"]' )
75
+ const hooksWrapper = wrapper . find ( '.detail-section[data-testid ="hooks"]' )
74
76
75
77
expect (
76
- hooksWrapper . find ( '.detail-subsection[data-test ="emit-details"]' ) ,
78
+ hooksWrapper . find ( '.detail-subsection[data-testid ="emit-details"]' ) ,
77
79
) . toHaveLength ( 0 )
78
80
79
81
expect (
80
- hooksWrapper . find ( '.detail-subsection[data-test ="hook-params"]' ) ,
82
+ hooksWrapper . find ( '.detail-subsection[data-testid ="hook-params"]' ) ,
81
83
) . toHaveLength ( 1 )
82
84
const paramWrapper = hooksWrapper . find (
83
- '.detail-subsection[data-test ="hook-params"]' ,
85
+ '.detail-subsection[data-testid ="hook-params"]' ,
84
86
)
85
87
expect ( paramWrapper . find ( 'li' ) ) . toHaveLength ( 2 )
86
88
expect ( paramWrapper . find ( 'li' ) . at ( 0 ) ) . toHaveText ( 'EVR2: evnHostUpdateReg' )
@@ -89,10 +91,10 @@ describe('DetailTab container', () => {
89
91
)
90
92
91
93
expect (
92
- hooksWrapper . find ( '.detail-subsection[data-test ="hook-executions"]' ) ,
94
+ hooksWrapper . find ( '.detail-subsection[data-testid ="hook-executions"]' ) ,
93
95
) . toHaveLength ( 1 )
94
96
const execWrapper = hooksWrapper . find (
95
- '.detail-subsection[data-test ="hook-executions"]' ,
97
+ '.detail-subsection[data-testid ="hook-executions"]' ,
96
98
)
97
99
expect ( execWrapper . find ( 'li' ) ) . toHaveLength ( 1 )
98
100
expect ( execWrapper . find ( '.detail-line' ) ) . toHaveLength ( 4 )
@@ -115,15 +117,15 @@ describe('DetailTab container', () => {
115
117
116
118
it ( 'renders hooks section for emitted tx' , ( ) => {
117
119
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 )
119
121
120
- const hooksWrapper = wrapper . find ( '.detail-section[data-test ="hooks"]' )
122
+ const hooksWrapper = wrapper . find ( '.detail-section[data-testid ="hooks"]' )
121
123
122
124
expect (
123
- hooksWrapper . find ( '.detail-subsection[data-test ="emit-details"]' ) ,
125
+ hooksWrapper . find ( '.detail-subsection[data-testid ="emit-details"]' ) ,
124
126
) . toHaveLength ( 1 )
125
127
const emitWrapper = hooksWrapper . find (
126
- '.detail-subsection[data-test ="emit-details"]' ,
128
+ '.detail-subsection[data-testid ="emit-details"]' ,
127
129
)
128
130
expect ( emitWrapper . find ( '.detail-line' ) ) . toHaveLength ( 4 )
129
131
expect ( emitWrapper . find ( '.detail-line' ) . at ( 0 ) ) . toHaveText (
@@ -142,14 +144,14 @@ describe('DetailTab container', () => {
142
144
expect ( emitWrapper . find ( '.detail-line' ) . at ( 3 ) . find ( 'a' ) ) . toExist ( )
143
145
144
146
expect (
145
- hooksWrapper . find ( '.detail-subsection[data-test ="hook-params"]' ) ,
147
+ hooksWrapper . find ( '.detail-subsection[data-testid ="hook-params"]' ) ,
146
148
) . toHaveLength ( 0 )
147
149
148
150
expect (
149
- hooksWrapper . find ( '.detail-subsection[data-test ="hook-executions"]' ) ,
151
+ hooksWrapper . find ( '.detail-subsection[data-testid ="hook-executions"]' ) ,
150
152
) . toHaveLength ( 1 )
151
153
const execWrapper = hooksWrapper . find (
152
- '.detail-subsection[data-test ="hook-executions"]' ,
154
+ '.detail-subsection[data-testid ="hook-executions"]' ,
153
155
)
154
156
expect ( execWrapper . find ( 'li' ) ) . toHaveLength ( 1 )
155
157
expect ( execWrapper . find ( '.detail-line' ) ) . toHaveLength ( 4 )
0 commit comments