1
0
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:
Jesús Espino
2022-09-14 15:11:50 +02:00
committed by GitHub
parent 9163e4cd9b
commit fd7d61b47c
197 changed files with 912 additions and 837 deletions

View File

@@ -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}`).