@@ -72,7 +72,7 @@ describe('Footer', () => {
72
72
} ) ;
73
73
74
74
const createButton = screen . getByRole ( 'button' , {
75
- name : / C r e a t e d a t a s e t a n d c r e a t e c h a r t / i,
75
+ name : / C r e a t e a n d e x p l o r e d a t a s e t / i,
76
76
} ) ;
77
77
78
78
expect ( saveButton ) . toBeVisible ( ) ;
@@ -83,13 +83,13 @@ describe('Footer', () => {
83
83
render ( < Footer { ...mockPropsWithDataset } /> , { useRedux : true } ) ;
84
84
85
85
const createButton = screen . getByRole ( 'button' , {
86
- name : / C r e a t e d a t a s e t a n d c r e a t e c h a r t / i,
86
+ name : / C r e a t e a n d e x p l o r e d a t a s e t / i,
87
87
} ) ;
88
88
89
89
expect ( createButton ) . toBeEnabled ( ) ;
90
90
91
91
// Check that it's a dropdown button with the correct text
92
- expect ( createButton ) . toHaveTextContent ( 'Create dataset and create chart ' ) ;
92
+ expect ( createButton ) . toHaveTextContent ( 'Create and explore dataset ' ) ;
93
93
94
94
// Check for the dropdown arrow
95
95
const dropdownArrow = screen . getByRole ( 'img' , { hidden : true } ) ;
@@ -102,7 +102,7 @@ describe('Footer', () => {
102
102
} ) ;
103
103
104
104
const createButton = screen . getByRole ( 'button' , {
105
- name : / C r e a t e d a t a s e t a n d c r e a t e c h a r t / i,
105
+ name : / C r e a t e a n d e x p l o r e d a t a s e t / i,
106
106
} ) ;
107
107
108
108
expect ( createButton ) . toBeDisabled ( ) ;
@@ -117,7 +117,7 @@ describe('Footer', () => {
117
117
118
118
// Check that the dropdown menu option is visible
119
119
await waitFor ( ( ) => {
120
- expect ( screen . getByText ( 'Create dataset only ' ) ) . toBeVisible ( ) ;
120
+ expect ( screen . getByText ( 'Create dataset' ) ) . toBeVisible ( ) ;
121
121
} ) ;
122
122
} ) ;
123
123
@@ -127,7 +127,7 @@ describe('Footer', () => {
127
127
render ( < Footer { ...mockPropsWithDataset } /> , { useRedux : true } ) ;
128
128
129
129
const createButton = screen . getByRole ( 'button' , {
130
- name : / C r e a t e d a t a s e t a n d c r e a t e c h a r t / i,
130
+ name : / C r e a t e a n d e x p l o r e d a t a s e t / i,
131
131
} ) ;
132
132
133
133
userEvent . click ( createButton ) ;
@@ -145,7 +145,7 @@ describe('Footer', () => {
145
145
} ) ;
146
146
} ) ;
147
147
148
- test ( 'navigates to dataset list when "Create dataset only " menu option is clicked' , async ( ) => {
148
+ test ( 'navigates to dataset list when "Create dataset" menu option is clicked' , async ( ) => {
149
149
mockCreateResource . mockResolvedValue ( 123 ) ;
150
150
151
151
render ( < Footer { ...mockPropsWithDataset } /> , { useRedux : true } ) ;
@@ -154,9 +154,9 @@ describe('Footer', () => {
154
154
const dropdownTrigger = screen . getByRole ( 'button' , { name : 'down' } ) ;
155
155
userEvent . click ( dropdownTrigger ) ;
156
156
157
- // Click the "Create dataset only " option
157
+ // Click the "Create dataset" option
158
158
await waitFor ( ( ) => {
159
- const datasetOnlyOption = screen . getByText ( 'Create dataset only ' ) ;
159
+ const datasetOnlyOption = screen . getByText ( 'Create dataset' ) ;
160
160
userEvent . click ( datasetOnlyOption ) ;
161
161
} ) ;
162
162
@@ -177,7 +177,7 @@ describe('Footer', () => {
177
177
render ( < Footer { ...mockPropsWithDataset } /> , { useRedux : true } ) ;
178
178
179
179
const createButton = screen . getByRole ( 'button' , {
180
- name : / C r e a t e d a t a s e t a n d c r e a t e c h a r t / i,
180
+ name : / C r e a t e a n d e x p l o r e d a t a s e t / i,
181
181
} ) ;
182
182
183
183
userEvent . click ( createButton ) ;
@@ -203,7 +203,7 @@ describe('Footer', () => {
203
203
render ( < Footer { ...mockPropsWithCatalog } /> , { useRedux : true } ) ;
204
204
205
205
const createButton = screen . getByRole ( 'button' , {
206
- name : / C r e a t e d a t a s e t a n d c r e a t e c h a r t / i,
206
+ name : / C r e a t e a n d e x p l o r e d a t a s e t / i,
207
207
} ) ;
208
208
209
209
userEvent . click ( createButton ) ;
0 commit comments