File tree Expand file tree Collapse file tree
src/studio-home/tabs-section Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -166,14 +166,14 @@ describe('<TabsSection />', () => {
166166 const firstLocationDisplay = await screen . findByTestId ( 'location-display' ) ;
167167 expect ( firstLocationDisplay ) . toHaveTextContent ( '/home' ) ;
168168
169- const librariesTab = screen . getByText ( tabMessages . librariesTabTitle . defaultMessage ) ;
169+ const librariesTab = screen . getByRole ( 'tab' , { name : tabMessages . librariesTabTitle . defaultMessage } ) ;
170170 fireEvent . click ( librariesTab ) ;
171171
172172 expect ( librariesTab ) . toHaveClass ( 'active' ) ;
173173 const secondLocationDisplay = await screen . findByTestId ( 'location-display' ) ;
174174 expect ( secondLocationDisplay ) . toHaveTextContent ( '/libraries' ) ;
175175
176- const coursesTab = screen . getByText ( tabMessages . coursesTabTitle . defaultMessage ) ;
176+ const coursesTab = screen . getByRole ( 'tab' , { name : tabMessages . coursesTabTitle . defaultMessage } ) ;
177177 fireEvent . click ( coursesTab ) ;
178178
179179 expect ( coursesTab ) . toHaveClass ( 'active' ) ;
You can’t perform that action at this time.
0 commit comments