From b83fbbf42ebb16a501580e37c08f7d3e29b82b4e Mon Sep 17 00:00:00 2001 From: Eric Voshall <6836155+ericvoshall@users.noreply.github.com> Date: Mon, 16 May 2022 10:23:57 -0400 Subject: [PATCH] Test update Signed-off-by: Eric Voshall <6836155+ericvoshall@users.noreply.github.com> --- .../src/next/TemplateListPage/TemplateListPage.test.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/scaffolder/src/next/TemplateListPage/TemplateListPage.test.tsx b/plugins/scaffolder/src/next/TemplateListPage/TemplateListPage.test.tsx index 32c7a50ad3..d5a76d2a47 100644 --- a/plugins/scaffolder/src/next/TemplateListPage/TemplateListPage.test.tsx +++ b/plugins/scaffolder/src/next/TemplateListPage/TemplateListPage.test.tsx @@ -88,8 +88,8 @@ describe('TemplateListPage', () => { { mountedRoutes: { '/': rootRouteRef } }, ); - expect(getByRole('menuitem', { name: 'All 0' })).toBeInTheDocument(); - expect(getByRole('menuitem', { name: 'Starred 0' })).toBeInTheDocument(); + expect(getByRole('menuitem', { name: /All/ })).toBeInTheDocument(); + expect(getByRole('menuitem', { name: /Starred/ })).toBeInTheDocument(); }); it('should render the category picker', async () => {