jam411 3 years ago
parent
commit
a5c4ec9996

+ 9 - 1
packages/app/test/cypress/integration/50-sidebar/access-to-side-bar.spec.ts

@@ -144,7 +144,15 @@ describe('Access to sidebar', () => {
           });
         });
 
-        it('Successfully create /Sidebar contents', () => {
+        it('Successfully custom-sidebar-editor', () => {
+          // TODO: This is not idempotent. Should be fix.
+          cy.getByTestid('grw-sidebar-nav-primary-custom-sidebar').click();
+          cy.getByTestid('grw-contextual-navigation-sub').then(($el) => {
+            if($el.hasClass('d-none')){
+              cy.getByTestid('grw-navigation-resize-button').click({force: true});
+            }
+          });
+
           const content = '# HELLO \n ## Hello\n ### Hello';
 
           cy.get('.grw-sidebar-content-header.h5').find('a').click();