mirror of
https://github.com/mattermost/focalboard.git
synced 2024-12-21 13:38:56 +02:00
fix cypress test
This commit is contained in:
parent
08d5251550
commit
3ada15a6e8
@ -185,6 +185,8 @@ describe('Create and delete board / card', () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
it('GH-2520 make cut/undo/redo work in comments', () => {
|
it('GH-2520 make cut/undo/redo work in comments', () => {
|
||||||
|
const isMAC = navigator.userAgent.indexOf("Mac") !== -1
|
||||||
|
const ctrlKey = isMAC ? 'meta' : 'ctrl'
|
||||||
// Visit a page and create new empty board
|
// Visit a page and create new empty board
|
||||||
cy.visit('/')
|
cy.visit('/')
|
||||||
cy.uiCreateEmptyBoard()
|
cy.uiCreateEmptyBoard()
|
||||||
@ -211,12 +213,12 @@ describe('Create and delete board / card', () => {
|
|||||||
|
|
||||||
cy.log('**Undo comment**')
|
cy.log('**Undo comment**')
|
||||||
cy.get('.CommentsList .MarkdownEditorInput').
|
cy.get('.CommentsList .MarkdownEditorInput').
|
||||||
type('{meta+z}').
|
type(`{${ctrlKey}+z}`).
|
||||||
should('have.text', 'Test Text')
|
should('have.text', 'Test Text')
|
||||||
|
|
||||||
cy.log('**Redo comment**')
|
cy.log('**Redo comment**')
|
||||||
cy.get('.CommentsList .MarkdownEditorInput').
|
cy.get('.CommentsList .MarkdownEditorInput').
|
||||||
type('{shift+meta+z}').
|
type(`{shift+${ctrlKey}+z}`).
|
||||||
should('have.text', '')
|
should('have.text', '')
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user