Shun Miyazawa 4 лет назад
Родитель
Сommit
f7136a750d

+ 1 - 1
packages/app/src/components/Navbar/SubNavButtons.tsx

@@ -171,7 +171,7 @@ const SubNavButtonsSubstance = (props: SubNavButtonsSubstanceProps): JSX.Element
       ) }
       { showPageControlDropdown && (
         <PageItemControl
-          dataTestId="sub-nav-buttons-page-item-control"
+          dataTestId="open-page-item-control-button"
           pageId={pageId}
           pageInfo={pageInfo}
           isEnableActions={!isGuestUser}

+ 3 - 3
packages/app/test/cypress/integration/2-basic-features/open-presentation-modal.spec.ts

@@ -22,7 +22,7 @@ context('Open presentation modal', () => {
 
   it('PageCreateModal for "/" is shown successfully', () => {
     cy.visit('/');
-    cy.getByTestid('sub-nav-buttons-page-item-control').first().click();
+    cy.getByTestid('open-page-item-control-button').first().click();
     cy.getByTestid('open-presentation-modal-btn').first().click();
     // eslint-disable-next-line cypress/no-unnecessary-waiting
     cy.wait(1500);
@@ -31,7 +31,7 @@ context('Open presentation modal', () => {
 
   it('PageCreateModal for "/Sandbox/Bootstrap4" is shown successfully', () => {
     cy.visit('/Sandbox/Bootstrap4');
-    cy.getByTestid('sub-nav-buttons-page-item-control').first().click();
+    cy.getByTestid('open-page-item-control-button').first().click();
     cy.getByTestid('open-presentation-modal-btn').first().click();
     // eslint-disable-next-line cypress/no-unnecessary-waiting
     cy.wait(1500);
@@ -40,7 +40,7 @@ context('Open presentation modal', () => {
 
   it('PageCreateModal for /Sandbox/Bootstrap4#Cards" is shown successfully', () => {
     cy.visit('/Sandbox/Bootstrap4#Cards');
-    cy.getByTestid('sub-nav-buttons-page-item-control').first().click();
+    cy.getByTestid('open-page-item-control-button').first().click();
     cy.getByTestid('open-presentation-modal-btn').first().click();
     // eslint-disable-next-line cypress/no-unnecessary-waiting
     cy.wait(1500);