@@ -49,6 +49,7 @@ describe('ProcessingSwaps component', () => {
49
49
const swap = addSwap ( LOOP_IN , INITIATED ) ;
50
50
expect ( getByText ( 'dot.svg' ) ) . toHaveClass ( 'warn' ) ;
51
51
expect ( getByText ( swap . ellipsedId ) ) . toBeInTheDocument ( ) ;
52
+ expect ( getByText ( swap . typeName ) ) . toBeInTheDocument ( ) ;
52
53
expect ( getByTitle ( swap . stateLabel ) ) . toBeInTheDocument ( ) ;
53
54
expect ( width ( getByTitle ( swap . stateLabel ) ) ) . toBe ( '25%' ) ;
54
55
} ) ;
@@ -58,6 +59,7 @@ describe('ProcessingSwaps component', () => {
58
59
const swap = addSwap ( LOOP_IN , HTLC_PUBLISHED ) ;
59
60
expect ( getByText ( 'dot.svg' ) ) . toHaveClass ( 'warn' ) ;
60
61
expect ( getByText ( swap . ellipsedId ) ) . toBeInTheDocument ( ) ;
62
+ expect ( getByText ( swap . typeName ) ) . toBeInTheDocument ( ) ;
61
63
expect ( getByTitle ( swap . stateLabel ) ) . toBeInTheDocument ( ) ;
62
64
expect ( width ( getByTitle ( swap . stateLabel ) ) ) . toBe ( '50%' ) ;
63
65
} ) ;
@@ -67,6 +69,7 @@ describe('ProcessingSwaps component', () => {
67
69
const swap = addSwap ( LOOP_IN , INVOICE_SETTLED ) ;
68
70
expect ( getByText ( 'dot.svg' ) ) . toHaveClass ( 'warn' ) ;
69
71
expect ( getByText ( swap . ellipsedId ) ) . toBeInTheDocument ( ) ;
72
+ expect ( getByText ( swap . typeName ) ) . toBeInTheDocument ( ) ;
70
73
expect ( getByTitle ( swap . stateLabel ) ) . toBeInTheDocument ( ) ;
71
74
expect ( width ( getByTitle ( swap . stateLabel ) ) ) . toBe ( '75%' ) ;
72
75
} ) ;
@@ -75,6 +78,7 @@ describe('ProcessingSwaps component', () => {
75
78
const { getByText, getByTitle } = render ( ) ;
76
79
const swap = addSwap ( LOOP_IN , SUCCESS ) ;
77
80
expect ( getByText ( swap . ellipsedId ) ) . toBeInTheDocument ( ) ;
81
+ expect ( getByText ( swap . typeName ) ) . toBeInTheDocument ( ) ;
78
82
expect ( getByTitle ( swap . stateLabel ) ) . toBeInTheDocument ( ) ;
79
83
expect ( width ( getByTitle ( swap . stateLabel ) ) ) . toBe ( '100%' ) ;
80
84
} ) ;
@@ -92,6 +96,7 @@ describe('ProcessingSwaps component', () => {
92
96
const swap = addSwap ( LOOP_OUT , INITIATED ) ;
93
97
expect ( getByText ( 'dot.svg' ) ) . toHaveClass ( 'warn' ) ;
94
98
expect ( getByText ( swap . ellipsedId ) ) . toBeInTheDocument ( ) ;
99
+ expect ( getByText ( swap . typeName ) ) . toBeInTheDocument ( ) ;
95
100
expect ( getByTitle ( swap . stateLabel ) ) . toBeInTheDocument ( ) ;
96
101
expect ( width ( getByTitle ( swap . stateLabel ) ) ) . toBe ( '33%' ) ;
97
102
} ) ;
@@ -101,6 +106,7 @@ describe('ProcessingSwaps component', () => {
101
106
const swap = addSwap ( LOOP_OUT , PREIMAGE_REVEALED ) ;
102
107
expect ( getByText ( 'dot.svg' ) ) . toHaveClass ( 'warn' ) ;
103
108
expect ( getByText ( swap . ellipsedId ) ) . toBeInTheDocument ( ) ;
109
+ expect ( getByText ( swap . typeName ) ) . toBeInTheDocument ( ) ;
104
110
expect ( getByTitle ( swap . stateLabel ) ) . toBeInTheDocument ( ) ;
105
111
expect ( width ( getByTitle ( swap . stateLabel ) ) ) . toBe ( '66%' ) ;
106
112
} ) ;
@@ -110,6 +116,7 @@ describe('ProcessingSwaps component', () => {
110
116
const swap = addSwap ( LOOP_OUT , SUCCESS ) ;
111
117
expect ( getByText ( 'dot.svg' ) ) . toHaveClass ( 'success' ) ;
112
118
expect ( getByText ( swap . ellipsedId ) ) . toBeInTheDocument ( ) ;
119
+ expect ( getByText ( swap . typeName ) ) . toBeInTheDocument ( ) ;
113
120
expect ( getByTitle ( swap . stateLabel ) ) . toBeInTheDocument ( ) ;
114
121
expect ( width ( getByTitle ( swap . stateLabel ) ) ) . toBe ( '100%' ) ;
115
122
} ) ;
0 commit comments