From 1818e6bf74801addd12f10674376f58da2ca95ef Mon Sep 17 00:00:00 2001 From: Nicolas Van Labeke Date: Mon, 13 Jan 2025 13:25:29 +0000 Subject: [PATCH] test(27113): add tests --- .../components/controls/DesignerToolbox.spec.cy.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hivemq-edge/src/frontend/src/extensions/datahub/components/controls/DesignerToolbox.spec.cy.tsx b/hivemq-edge/src/frontend/src/extensions/datahub/components/controls/DesignerToolbox.spec.cy.tsx index e68e22298c..cd398f8f98 100644 --- a/hivemq-edge/src/frontend/src/extensions/datahub/components/controls/DesignerToolbox.spec.cy.tsx +++ b/hivemq-edge/src/frontend/src/extensions/datahub/components/controls/DesignerToolbox.spec.cy.tsx @@ -9,7 +9,7 @@ describe('DesignerToolbox', () => { cy.viewport(850, 600) }) - it('should renders properly', () => { + it('should render properly', () => { cy.mountWithProviders(, { wrapper }) cy.getByTestId('toolbox-trigger').should('have.attr', 'aria-expanded', 'false') cy.getByTestId('toolbox-container').should('not.be.visible') @@ -17,12 +17,17 @@ describe('DesignerToolbox', () => { cy.getByTestId('toolbox-trigger').click() cy.getByTestId('toolbox-trigger').should('have.attr', 'aria-expanded', 'true') cy.getByTestId('toolbox-container').should('be.visible') + + cy.getByTestId('toolbox-container').find('header').should('have.text', 'Policy Toolbox') }) it('should be accessible', () => { cy.injectAxe() cy.mountWithProviders(, { wrapper }) cy.getByTestId('toolbox-trigger').click() + + cy.wait(100) // Wait for dropdown (ugly) + cy.checkAccessibility() cy.percySnapshot('Component: DesignerToolbox') })