@@ -28,31 +28,31 @@ describe('Layout component', () => {
2828 it ( 'should navigate to the History page' , ( ) => {
2929 const { getByText, store } = render ( ) ;
3030 expect ( store . router . location . pathname ) . toBe ( '/loop' ) ;
31- fireEvent . click ( getByText ( 'History' ) ) ;
31+ fireEvent . click ( getByText ( 'Loop History' ) ) ;
3232 expect ( store . router . location . pathname ) . toBe ( '/history' ) ;
33- expect ( getByText ( 'History' ) . parentElement ) . toHaveClass ( 'active' ) ;
33+ expect ( getByText ( 'Loop History' ) . parentElement ) . toHaveClass ( 'active' ) ;
3434 } ) ;
3535
3636 it ( 'should navigate back to the Loop page' , ( ) => {
3737 const { getByText, store } = render ( ) ;
3838 expect ( store . router . location . pathname ) . toBe ( '/loop' ) ;
39- fireEvent . click ( getByText ( 'History' ) ) ;
39+ fireEvent . click ( getByText ( 'Loop History' ) ) ;
4040 expect ( store . router . location . pathname ) . toBe ( '/history' ) ;
41- expect ( getByText ( 'History' ) . parentElement ) . toHaveClass ( 'active' ) ;
42- fireEvent . click ( getByText ( 'Lightning Loop' ) ) ;
41+ expect ( getByText ( 'Loop History' ) . parentElement ) . toHaveClass ( 'active' ) ;
42+ fireEvent . click ( getByText ( 'Loop' ) ) ;
4343 expect ( store . router . location . pathname ) . toBe ( '/loop' ) ;
44- expect ( getByText ( 'Lightning Loop' ) . parentElement ) . toHaveClass ( 'active' ) ;
44+ expect ( getByText ( 'Loop' ) . parentElement ) . toHaveClass ( 'active' ) ;
4545 } ) ;
4646
4747 it ( 'should navigate to the Pool page' , ( ) => {
4848 const { getByText, store } = render ( ) ;
4949 expect ( store . router . location . pathname ) . toBe ( '/loop' ) ;
50- fireEvent . click ( getByText ( 'Lightning Pool' ) ) ;
50+ fireEvent . click ( getByText ( 'Pool' ) ) ;
5151 expect ( store . router . location . pathname ) . toBe ( '/pool' ) ;
52- expect ( getByText ( 'Lightning Pool' ) . parentElement ) . toHaveClass ( 'active' ) ;
53- fireEvent . click ( getByText ( 'Lightning Loop' ) ) ;
52+ expect ( getByText ( 'Pool' ) . parentElement ) . toHaveClass ( 'active' ) ;
53+ fireEvent . click ( getByText ( 'Loop' ) ) ;
5454 expect ( store . router . location . pathname ) . toBe ( '/loop' ) ;
55- expect ( getByText ( 'Lightning Loop' ) . parentElement ) . toHaveClass ( 'active' ) ;
55+ expect ( getByText ( 'Loop' ) . parentElement ) . toHaveClass ( 'active' ) ;
5656 } ) ;
5757
5858 it ( 'should navigate to the Settings page' , ( ) => {
@@ -61,8 +61,8 @@ describe('Layout component', () => {
6161 fireEvent . click ( getByText ( 'Settings' ) ) ;
6262 expect ( store . router . location . pathname ) . toBe ( '/settings' ) ;
6363 expect ( getByText ( 'Settings' ) . parentElement ) . toHaveClass ( 'active' ) ;
64- fireEvent . click ( getByText ( 'Lightning Loop' ) ) ;
64+ fireEvent . click ( getByText ( 'Loop' ) ) ;
6565 expect ( store . router . location . pathname ) . toBe ( '/loop' ) ;
66- expect ( getByText ( 'Lightning Loop' ) . parentElement ) . toHaveClass ( 'active' ) ;
66+ expect ( getByText ( 'Loop' ) . parentElement ) . toHaveClass ( 'active' ) ;
6767 } ) ;
6868} ) ;
0 commit comments