You've already forked focalboard
mirror of
https://github.com/mattermost/focalboard.git
synced 2025-11-26 22:50:57 +02:00
Enabling again the eslint rules and applying the fixes (#3791)
* Enabling again the eslint rules and applying the fixes * Restore , separators for types in single line mode * fix new errors * more lint fixes Co-authored-by: Scott Bishel <scott.bishel@mattermost.com>
This commit is contained in:
@@ -185,8 +185,9 @@ describe('Create and delete board / card', () => {
|
||||
})
|
||||
|
||||
it('GH-2520 make cut/undo/redo work in comments', () => {
|
||||
const isMAC = navigator.userAgent.indexOf("Mac") !== -1
|
||||
const isMAC = navigator.userAgent.indexOf('Mac') !== -1
|
||||
const ctrlKey = isMAC ? 'meta' : 'ctrl'
|
||||
|
||||
// Visit a page and create new empty board
|
||||
cy.visit('/')
|
||||
cy.uiCreateEmptyBoard()
|
||||
@@ -204,18 +205,18 @@ describe('Create and delete board / card', () => {
|
||||
click().
|
||||
get('.CommentsList .MarkdownEditorInput').
|
||||
type('Test Text')
|
||||
|
||||
|
||||
cy.log('**Cut comment**')
|
||||
cy.get('.CommentsList .MarkdownEditorInput').
|
||||
type('{selectAll}').
|
||||
trigger('cut').
|
||||
should('have.text', '')
|
||||
|
||||
|
||||
cy.log('**Undo comment**')
|
||||
cy.get('.CommentsList .MarkdownEditorInput').
|
||||
type(`{${ctrlKey}+z}`).
|
||||
should('have.text', 'Test Text')
|
||||
|
||||
|
||||
cy.log('**Redo comment**')
|
||||
cy.get('.CommentsList .MarkdownEditorInput').
|
||||
type(`{shift+${ctrlKey}+z}`).
|
||||
|
||||
Reference in New Issue
Block a user