diff --git a/frontend/src/container/NewDashboard/DashboardVariablesSelection/VariableItem.test.tsx b/frontend/src/container/NewDashboard/DashboardVariablesSelection/VariableItem.test.tsx index fac9e3de59e5..a8f60268c678 100644 --- a/frontend/src/container/NewDashboard/DashboardVariablesSelection/VariableItem.test.tsx +++ b/frontend/src/container/NewDashboard/DashboardVariablesSelection/VariableItem.test.tsx @@ -167,7 +167,7 @@ describe('VariableItem', () => { , ); - expect(screen.getByTitle('ALL')).toBeInTheDocument(); + expect(screen.getByText('ALL')).toBeInTheDocument(); }); test('calls useEffect when the component mounts', () => {