fix(editor): Fix sorting problem in older browsers that don't support toSorted (#11204)

This commit is contained in:
Csaba Tuncsik
2024-10-17 14:11:34 +02:00
committed by GitHub
parent 83ca7f8e90
commit c728a2ffe0
7 changed files with 110 additions and 43 deletions

View File

@@ -172,4 +172,16 @@ describe('ProjectsNavigation', () => {
expect(queryByRole('heading', { level: 3, name: 'Projects' })).not.toBeInTheDocument();
});
it('should not show "Projects" title when there are no available projects', async () => {
projectsStore.myProjects = [];
const { queryByRole } = renderComponent({
props: {
collapsed: false,
},
});
expect(queryByRole('heading', { level: 3, name: 'Projects' })).not.toBeInTheDocument();
});
});