add a bunch of new tests and add empty test files where missing
This commit is contained in:
@@ -2,4 +2,6 @@ context('/api/extensions/collaboration', () => {
|
||||
before(() => {
|
||||
cy.visit('/api/extensions/collaboration')
|
||||
})
|
||||
|
||||
// TODO: Write tests
|
||||
})
|
||||
|
||||
@@ -2,4 +2,6 @@ context('/api/extensions/collaboration-cursor', () => {
|
||||
before(() => {
|
||||
cy.visit('/api/extensions/collaboration-cursor')
|
||||
})
|
||||
|
||||
// TODO: Write tests
|
||||
})
|
||||
|
||||
@@ -2,4 +2,6 @@ context('/examples/dropcursor', () => {
|
||||
before(() => {
|
||||
cy.visit('/examples/dropcursor')
|
||||
})
|
||||
|
||||
// TODO: Write tests
|
||||
})
|
||||
|
||||
@@ -2,4 +2,6 @@ context('/api/extensions/font-family', () => {
|
||||
before(() => {
|
||||
cy.visit('/api/extensions/font-family')
|
||||
})
|
||||
|
||||
// TODO: Write tests
|
||||
})
|
||||
|
||||
@@ -2,4 +2,6 @@ context('/examples/gapcursor', () => {
|
||||
before(() => {
|
||||
cy.visit('/examples/gapcursor')
|
||||
})
|
||||
|
||||
// TODO: Write tests
|
||||
})
|
||||
|
||||
@@ -81,4 +81,32 @@ context('/api/extensions/text-align', () => {
|
||||
.find('p')
|
||||
.should('have.css', 'text-align', 'left')
|
||||
})
|
||||
|
||||
it('aligns the text left when pressing the keyboard shortcut', () => {
|
||||
cy.get('.ProseMirror')
|
||||
.trigger('keydown', { modKey: true, shiftKey: true, key: 'l' })
|
||||
.find('p')
|
||||
.should('have.css', 'text-align', 'left')
|
||||
})
|
||||
|
||||
it('aligns the text center when pressing the keyboard shortcut', () => {
|
||||
cy.get('.ProseMirror')
|
||||
.trigger('keydown', { modKey: true, shiftKey: true, key: 'e' })
|
||||
.find('p')
|
||||
.should('have.css', 'text-align', 'center')
|
||||
})
|
||||
|
||||
it('aligns the text right when pressing the keyboard shortcut', () => {
|
||||
cy.get('.ProseMirror')
|
||||
.trigger('keydown', { modKey: true, shiftKey: true, key: 'r' })
|
||||
.find('p')
|
||||
.should('have.css', 'text-align', 'right')
|
||||
})
|
||||
|
||||
it('aligns the text justified when pressing the keyboard shortcut', () => {
|
||||
cy.get('.ProseMirror')
|
||||
.trigger('keydown', { modKey: true, shiftKey: true, key: 'j' })
|
||||
.find('p')
|
||||
.should('have.css', 'text-align', 'justify')
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user