mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
test(editor): Fix first project add button in closed sidebar (#14991)
This commit is contained in:
@@ -213,4 +213,17 @@ describe('ProjectsNavigation', () => {
|
||||
expect(addFirstProjectButton).toBeVisible();
|
||||
expect(addFirstProjectButton).toBeDisabled();
|
||||
});
|
||||
|
||||
it('should show add first project button without text when the menu is collapsed', async () => {
|
||||
projectsStore.teamProjectsLimit = -1;
|
||||
|
||||
const { getByTestId } = renderComponent({
|
||||
props: {
|
||||
collapsed: true,
|
||||
},
|
||||
});
|
||||
|
||||
expect(getByTestId('add-first-project-button')).toBeVisible();
|
||||
expect(getByTestId('add-first-project-button').classList.contains('collapsed')).toBe(true);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user