Răsfoiți Sursa

fix pageName

Shun Miyazawa 3 ani în urmă
părinte
comite
fbcaf8fc53

+ 3 - 4
packages/app/test/cypress/integration/20-basic-features/use-tools.spec.ts

@@ -60,14 +60,13 @@ context('Modal for page operation', () => {
     cy.screenshot(`${ssPrefix}create-today-page`);
   });
   it('Successfully create page under specific path', () => {
-    const parentPageName = '/SandBox';
-    const childPageName = `${parentPageName}/child`;
+    const pageName = 'child';
 
-    cy.visit(parentPageName);
+    cy.visit('/SandBox');
     cy.getByTestid('newPageBtn').click();
 
     cy.getByTestid('page-create-modal').should('be.visible').within(() => {
-      cy.get('.rbt-input-main').type(childPageName);
+      cy.get('.rbt-input-main').type(pageName);
       cy.screenshot(`${ssPrefix}under-path-add-page-name`);
       cy.getByTestid('btn-create-page-under-below').click();
     });