Yuki Takei 1 год назад
Родитель
Сommit
e83fe2a4f4

+ 2 - 2
apps/app/test/cypress/e2e/50-sidebar/50-sidebar--access-to-side-bar.cy.ts

@@ -140,7 +140,7 @@ describe('Access to sidebar', () => {
           cy.waitUntil(() => {
             // do
             cy.getByTestid('grw-sidebar-contents').within(() => {
-              cy.getByTestid('grw-pagetree-item-container').eq(1).as('pagetreeItem').within(() => { // against the second element
+              cy.getByTestid('grw-pagetree-item-container').eq(1).within(() => { // against the second element
                 cy.get('li').realHover();
                 cy.getByTestid('open-page-item-control-btn').find('button').first().realClick();
               });
@@ -153,7 +153,7 @@ describe('Access to sidebar', () => {
             cy.getByTestid('rename-page-btn').click();
           })
 
-          cy.get('@pagetreeItem').within(() => {
+          cy.getByTestid('grw-sidebar-contents').within(() => {
             cy.getByTestid('autosize-submittable-input').type('_newname');
           })