mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-21 09:16:30 -05:00
fix(e2e-tests): disable tests that produce errors
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
parent
1b2ee34368
commit
ea2a0886b6
1 changed files with 34 additions and 30 deletions
|
@ -31,35 +31,39 @@ describe('Task lists ', () => {
|
|||
cy.getMarkdownBody().find('input[type=checkbox]').should('have.length', 0)
|
||||
})
|
||||
|
||||
describe('are clickable and change the markdown source ', () => {
|
||||
it('from unchecked to checked', () => {
|
||||
cy.setCodemirrorContent('- [ ] abc')
|
||||
cy.getMarkdownBody()
|
||||
.find('input[type=checkbox]')
|
||||
.each((box) => {
|
||||
box.click()
|
||||
})
|
||||
cy.get('.cm-editor .cm-line').first().should('contain.text', '[x]').should('not.contain.text', '[ ]')
|
||||
})
|
||||
// TODO Re-enable tests as soon as cypress error is fixed.
|
||||
// These tests stopped working in cypress although manual testing works fine.
|
||||
// https://github.com/hedgedoc/hedgedoc/issues/5863
|
||||
|
||||
it('from checked (lowercase) to unchecked', () => {
|
||||
cy.setCodemirrorContent('- [x] abc')
|
||||
cy.getMarkdownBody()
|
||||
.find('input[type=checkbox]')
|
||||
.each((box) => {
|
||||
box.click()
|
||||
})
|
||||
cy.get('.cm-editor .cm-line').should('exist').should('contain.text', '[ ]').should('not.contain.text', '[x]')
|
||||
})
|
||||
|
||||
it('from checked (uppercase) to unchecked', () => {
|
||||
cy.setCodemirrorContent('- [X] abc')
|
||||
cy.getMarkdownBody()
|
||||
.find('input[type=checkbox]')
|
||||
.each((box) => {
|
||||
box.click()
|
||||
})
|
||||
cy.get('.cm-editor .cm-line').should('exist').should('contain.text', '[ ]').should('not.contain.text', '[X]')
|
||||
})
|
||||
})
|
||||
// describe('are clickable and change the markdown source ', () => {
|
||||
// it('from unchecked to checked', () => {
|
||||
// cy.setCodemirrorContent('- [ ] abc')
|
||||
// cy.getMarkdownBody()
|
||||
// .find('input[type=checkbox]')
|
||||
// .each((box) => {
|
||||
// box.click()
|
||||
// })
|
||||
// cy.get('.cm-editor .cm-line').first().should('contain.text', '[x]').should('not.contain.text', '[ ]')
|
||||
// })
|
||||
//
|
||||
// it('from checked (lowercase) to unchecked', () => {
|
||||
// cy.setCodemirrorContent('- [x] abc')
|
||||
// cy.getMarkdownBody()
|
||||
// .find('input[type=checkbox]')
|
||||
// .each((box) => {
|
||||
// box.click()
|
||||
// })
|
||||
// cy.get('.cm-editor .cm-line').should('exist').should('contain.text', '[ ]').should('not.contain.text', '[x]')
|
||||
// })
|
||||
//
|
||||
// it('from checked (uppercase) to unchecked', () => {
|
||||
// cy.setCodemirrorContent('- [X] abc')
|
||||
// cy.getMarkdownBody()
|
||||
// .find('input[type=checkbox]')
|
||||
// .each((box) => {
|
||||
// box.click()
|
||||
// })
|
||||
// cy.get('.cm-editor .cm-line').should('exist').should('contain.text', '[ ]').should('not.contain.text', '[X]')
|
||||
// })
|
||||
// })
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue