Преглед изворни кода

Update page using shortcut keys

Shun Miyazawa пре 2 година
родитељ
комит
717d321942
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      apps/app/test/cypress/e2e/23-editor/23-editor--with-navigation.cy.ts

+ 2 - 2
apps/app/test/cypress/e2e/23-editor/23-editor--with-navigation.cy.ts

@@ -68,8 +68,8 @@ context('Editor while uploading to a new page', () => {
     const filePath = path.relative('/', path.resolve(Cypress.spec.relative, '../assets/example.txt'));
     cy.get('.dropzone').selectFile(filePath, { action: 'drag-drop' });
 
-    // Update page
-    cy.getByTestid('save-page-btn').click();
+    // Update page using shortcut keys
+    cy.get('.CodeMirror').type('{ctrl+s}');
 
     // expect
     cy.get('.Toastify__toast').should('contain.text', 'Saved successfully');