Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

End-to-end Rewrite 4 #429

Merged
merged 10 commits into from
Jun 9, 2021
Next Next commit
fix(doc_spec): make save shortcut OS specific
duncdrum committed Jun 4, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 599610d8ea45aeda622a86820f84ec000ac35a57
22 changes: 21 additions & 1 deletion cypress/integration/04_document_spec.js
Original file line number Diff line number Diff line change
@@ -45,12 +45,32 @@ context('Document Operations', () => {

// TODO(DP): make this work on all OS by either adjusting the key sequence ctrl+s cmd+s …
// or by using the file menu UI instead
// see https://github.com/cypress-io/cypress/pull/15388/files#
// see #414

// it('sets focus on search files filters if user presses Cmd + F', () => {
// if (Cypress.platform === 'darwin') {
// cy.get('.filter').type('{cmd}F')
// cy.get('.filter').should('have.focus')
// }
// })

// it('sets focus on search files filter if user presses Ctrl + F', () => {
// if (Cypress.platform !== 'darwin') {
// cy.get('.filter').type('{ctrl}F')
// cy.get('.filter').should('have.focus')
// }
// })
it('should let users edit new document', () => {
cy.get('[node-id$=untitled-1]')
.dblclick()
cy.get('.view-line')
if( Cypress.platform === 'darwin') {
cy.get('.view-line')
.type('asdf{meta+s}')
} else {
cy.get('.view-line')
.type('asdf{ctrl+s}')
}
})
// see #414 workaround is to run this after editing and saving the document,
// we should be able to rename before entering content