@@ -28,31 +28,31 @@ describe('Layout component', () => {
28
28
it ( 'should navigate to the History page' , ( ) => {
29
29
const { getByText, store } = render ( ) ;
30
30
expect ( store . router . location . pathname ) . toBe ( '/loop' ) ;
31
- fireEvent . click ( getByText ( 'History' ) ) ;
31
+ fireEvent . click ( getByText ( 'Loop History' ) ) ;
32
32
expect ( store . router . location . pathname ) . toBe ( '/history' ) ;
33
- expect ( getByText ( 'History' ) . parentElement ) . toHaveClass ( 'active' ) ;
33
+ expect ( getByText ( 'Loop History' ) . parentElement ) . toHaveClass ( 'active' ) ;
34
34
} ) ;
35
35
36
36
it ( 'should navigate back to the Loop page' , ( ) => {
37
37
const { getByText, store } = render ( ) ;
38
38
expect ( store . router . location . pathname ) . toBe ( '/loop' ) ;
39
- fireEvent . click ( getByText ( 'History' ) ) ;
39
+ fireEvent . click ( getByText ( 'Loop History' ) ) ;
40
40
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' ) ) ;
43
43
expect ( store . router . location . pathname ) . toBe ( '/loop' ) ;
44
- expect ( getByText ( 'Lightning Loop' ) . parentElement ) . toHaveClass ( 'active' ) ;
44
+ expect ( getByText ( 'Loop' ) . parentElement ) . toHaveClass ( 'active' ) ;
45
45
} ) ;
46
46
47
47
it ( 'should navigate to the Pool page' , ( ) => {
48
48
const { getByText, store } = render ( ) ;
49
49
expect ( store . router . location . pathname ) . toBe ( '/loop' ) ;
50
- fireEvent . click ( getByText ( 'Lightning Pool' ) ) ;
50
+ fireEvent . click ( getByText ( 'Pool' ) ) ;
51
51
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' ) ) ;
54
54
expect ( store . router . location . pathname ) . toBe ( '/loop' ) ;
55
- expect ( getByText ( 'Lightning Loop' ) . parentElement ) . toHaveClass ( 'active' ) ;
55
+ expect ( getByText ( 'Loop' ) . parentElement ) . toHaveClass ( 'active' ) ;
56
56
} ) ;
57
57
58
58
it ( 'should navigate to the Settings page' , ( ) => {
@@ -61,8 +61,8 @@ describe('Layout component', () => {
61
61
fireEvent . click ( getByText ( 'Settings' ) ) ;
62
62
expect ( store . router . location . pathname ) . toBe ( '/settings' ) ;
63
63
expect ( getByText ( 'Settings' ) . parentElement ) . toHaveClass ( 'active' ) ;
64
- fireEvent . click ( getByText ( 'Lightning Loop' ) ) ;
64
+ fireEvent . click ( getByText ( 'Loop' ) ) ;
65
65
expect ( store . router . location . pathname ) . toBe ( '/loop' ) ;
66
- expect ( getByText ( 'Lightning Loop' ) . parentElement ) . toHaveClass ( 'active' ) ;
66
+ expect ( getByText ( 'Loop' ) . parentElement ) . toHaveClass ( 'active' ) ;
67
67
} ) ;
68
68
} ) ;
0 commit comments