@@ -16,7 +16,7 @@ describe('LoopPage component', () => {
1616
1717 beforeEach ( async ( ) => {
1818 store = createStore ( ) ;
19- await store . init ( ) ;
19+ await store . fetchAllData ( ) ;
2020 } ) ;
2121
2222 const render = ( ) => {
@@ -74,8 +74,8 @@ describe('LoopPage component', () => {
7474 const { getByText } = render ( ) ;
7575 expect ( getByText ( 'Loop' ) ) . toBeInTheDocument ( ) ;
7676 fireEvent . click ( getByText ( 'Loop' ) ) ;
77- expect ( getByText ( 'Loop out ' ) ) . toBeInTheDocument ( ) ;
78- expect ( getByText ( 'Loop in ' ) ) . toBeInTheDocument ( ) ;
77+ expect ( getByText ( 'Loop Out ' ) ) . toBeInTheDocument ( ) ;
78+ expect ( getByText ( 'Loop In ' ) ) . toBeInTheDocument ( ) ;
7979 } ) ;
8080
8181 it ( 'should display swap wizard when Loop out is clicked' , async ( ) => {
@@ -85,7 +85,7 @@ describe('LoopPage component', () => {
8585 store . channelStore . sortedChannels . slice ( 0 , 3 ) . forEach ( c => {
8686 store . buildSwapStore . toggleSelectedChannel ( c . chanId ) ;
8787 } ) ;
88- fireEvent . click ( getByText ( 'Loop out ' ) ) ;
88+ fireEvent . click ( getByText ( 'Loop Out ' ) ) ;
8989 expect ( getByText ( 'Step 1 of 2' ) ) . toBeInTheDocument ( ) ;
9090 } ) ;
9191
@@ -96,7 +96,7 @@ describe('LoopPage component', () => {
9696 store . channelStore . sortedChannels . slice ( 0 , 1 ) . forEach ( c => {
9797 store . buildSwapStore . toggleSelectedChannel ( c . chanId ) ;
9898 } ) ;
99- fireEvent . click ( getByText ( 'Loop in ' ) ) ;
99+ fireEvent . click ( getByText ( 'Loop In ' ) ) ;
100100 expect ( getByText ( 'Step 1 of 2' ) ) . toBeInTheDocument ( ) ;
101101 } ) ;
102102
@@ -107,7 +107,7 @@ describe('LoopPage component', () => {
107107 store . channelStore . sortedChannels . slice ( 0 , 1 ) . forEach ( c => {
108108 store . buildSwapStore . toggleSelectedChannel ( c . chanId ) ;
109109 } ) ;
110- fireEvent . click ( getByText ( 'Loop in ' ) ) ;
110+ fireEvent . click ( getByText ( 'Loop In ' ) ) ;
111111 expect ( getByText ( 'Step 1 of 2' ) ) . toBeInTheDocument ( ) ;
112112 fireEvent . click ( getByText ( 'arrow-left.svg' ) ) ;
113113 expect ( getByText ( 'Loop History' ) ) . toBeInTheDocument ( ) ;
@@ -120,7 +120,7 @@ describe('LoopPage component', () => {
120120 store . channelStore . sortedChannels . slice ( 0 , 3 ) . forEach ( c => {
121121 store . buildSwapStore . toggleSelectedChannel ( c . chanId ) ;
122122 } ) ;
123- fireEvent . click ( getByText ( 'Loop out ' ) ) ;
123+ fireEvent . click ( getByText ( 'Loop Out ' ) ) ;
124124 expect ( getByText ( 'Step 1 of 2' ) ) . toBeInTheDocument ( ) ;
125125 fireEvent . click ( getByText ( 'Next' ) ) ;
126126 expect ( getByText ( 'Step 2 of 2' ) ) . toBeInTheDocument ( ) ;
@@ -141,7 +141,7 @@ describe('LoopPage component', () => {
141141 store . channelStore . sortedChannels . slice ( 0 , 3 ) . forEach ( c => {
142142 store . buildSwapStore . toggleSelectedChannel ( c . chanId ) ;
143143 } ) ;
144- fireEvent . click ( getByText ( 'Loop out ' ) ) ;
144+ fireEvent . click ( getByText ( 'Loop Out ' ) ) ;
145145 expect ( getByText ( 'Step 1 of 2' ) ) . toBeInTheDocument ( ) ;
146146 fireEvent . click ( getByText ( 'Next' ) ) ;
147147 expect ( getByText ( 'Step 2 of 2' ) ) . toBeInTheDocument ( ) ;
0 commit comments