fix(e2e-tests): disable tests that produce errors

Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
Erik Michelson 2024-11-11 12:53:31 +01:00
parent 1b2ee34368
commit ea2a0886b6

View file

@ -31,35 +31,39 @@ describe('Task lists ', () => {
cy.getMarkdownBody().find('input[type=checkbox]').should('have.length', 0) cy.getMarkdownBody().find('input[type=checkbox]').should('have.length', 0)
}) })
describe('are clickable and change the markdown source ', () => { // TODO Re-enable tests as soon as cypress error is fixed.
it('from unchecked to checked', () => { // These tests stopped working in cypress although manual testing works fine.
cy.setCodemirrorContent('- [ ] abc') // https://github.com/hedgedoc/hedgedoc/issues/5863
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', () => { // describe('are clickable and change the markdown source ', () => {
cy.setCodemirrorContent('- [x] abc') // it('from unchecked to checked', () => {
cy.getMarkdownBody() // cy.setCodemirrorContent('- [ ] abc')
.find('input[type=checkbox]') // cy.getMarkdownBody()
.each((box) => { // .find('input[type=checkbox]')
box.click() // .each((box) => {
}) // box.click()
cy.get('.cm-editor .cm-line').should('exist').should('contain.text', '[ ]').should('not.contain.text', '[x]') // })
}) // cy.get('.cm-editor .cm-line').first().should('contain.text', '[x]').should('not.contain.text', '[ ]')
// })
it('from checked (uppercase) to unchecked', () => { //
cy.setCodemirrorContent('- [X] abc') // it('from checked (lowercase) to unchecked', () => {
cy.getMarkdownBody() // cy.setCodemirrorContent('- [x] abc')
.find('input[type=checkbox]') // cy.getMarkdownBody()
.each((box) => { // .find('input[type=checkbox]')
box.click() // .each((box) => {
}) // box.click()
cy.get('.cm-editor .cm-line').should('exist').should('contain.text', '[ ]').should('not.contain.text', '[X]') // })
}) // 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]')
// })
// })
}) })