Răsfoiți Sursa

Update page using shortcut keys

Shun Miyazawa 2 ani în urmă
părinte
comite
717d321942

+ 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');