Skip to content

Commit 2681976

Browse files
committed
test(37943): fix tests
1 parent 76068af commit 2681976

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

hivemq-edge-frontend/src/modules/Workspace/components/controls/CanvasToolbar.spec.cy.tsx

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ describe('CanvasToolbar', () => {
3737
cy.getByTestId('toolbox-search-expand').should('be.visible')
3838
})
3939

40-
it('should show layout section when expanded and feature enabled', () => {
40+
it('should show layout section when expanded', () => {
4141
cy.mountWithProviders(<CanvasToolbar />, { wrapper })
4242

4343
// Expand toolbar
@@ -49,19 +49,7 @@ describe('CanvasToolbar', () => {
4949
cy.getByTestId('workspace-apply-layout').should('be.visible')
5050
})
5151

52-
it('should hide layout section when feature disabled', () => {
53-
cy.mountWithProviders(<CanvasToolbar />, { wrapper })
54-
55-
// Expand toolbar
56-
cy.getByTestId('toolbox-search-expand').click()
57-
58-
// Layout section should NOT be visible
59-
cy.get('[role="region"][aria-label*="Layout"]').should('not.exist')
60-
cy.getByTestId('workspace-layout-selector').should('not.exist')
61-
cy.getByTestId('workspace-apply-layout').should('not.exist')
62-
})
63-
64-
it('should show visual divider between sections when feature enabled', () => {
52+
it('should show visual divider between sections', () => {
6553
cy.mountWithProviders(<CanvasToolbar />, { wrapper })
6654

6755
// Expand toolbar

0 commit comments

Comments
 (0)