diff options
author | Max <max@nextcloud.com> | 2022-02-15 10:02:07 +0300 |
---|---|---|
committer | Max <max@nextcloud.com> | 2022-03-02 15:26:11 +0300 |
commit | 0afc3236c2d773791de05d457367c73faf113ca0 (patch) | |
tree | e6c78d3228e7b915645e605f5cf414f6002a160b /cypress/integration/workspace.spec.js | |
parent | 69a9acce3a66b13dd7a22d2eef3b2e285ec91a71 (diff) |
fix: indicator of the task list.
See #2018.
Use tiptap TaskList and TaskItem.
Markdown-it happily mixes tasks and bullet points in the same list.
Tiptap lists are strictly separated.
Split bullet and tasks into BulletList and TaskList in markdown-io.
Just like this will turn into three different lists:
* one
- two
+ three
This will now also turn into three different lists
with the middle one being a task list:
* first list
* [ ] todo
* [x] done
* third list
Signed-off-by: Max <max@nextcloud.com>
Diffstat (limited to 'cypress/integration/workspace.spec.js')
-rw-r--r-- | cypress/integration/workspace.spec.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/cypress/integration/workspace.spec.js b/cypress/integration/workspace.spec.js index efa3e5953..01829cd7c 100644 --- a/cypress/integration/workspace.spec.js +++ b/cypress/integration/workspace.spec.js @@ -104,6 +104,25 @@ describe('Workspace', function() { }) }) + it('creates lists', function() { + openWorkspace() + .type('List me') + .type('{selectall}') + ;[ + ['ul', 'ul'], + ['ol', 'ol'], + ['checkmark', 'ul[data-type="taskList"]'], + ].forEach(([button, tag]) => { + menuButton(button) + .click() + .should('have.class', 'is-active') + cy.get(`.ProseMirror ${tag}`).should('contain', 'List me') + menuButton(button) + .click() + .should('not.have.class', 'is-active') + }) + }) + it('takes README.md into account', function() { cy.uploadFile('test.md', 'text/markdown', `${Cypress.currentTest.title}/README.md`) cy.reload() |