Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax <max@nextcloud.com>2022-01-20 14:22:40 +0300
committerMax <max@nextcloud.com>2022-01-24 14:35:20 +0300
commit05cc17102fc062016a2e82dbc98feb5e5ed84f67 (patch)
treebb3e7ebfeda97756c0d2f54873dc75f907c8fda3 /cypress
parent260b53f6025571f161b91bd3e7a80deb8623530d (diff)
handle __ as underline when loading markdown files
Signed-off-by: Max <max@nextcloud.com>
Diffstat (limited to 'cypress')
-rw-r--r--cypress/integration/workspace.spec.js24
1 files changed, 14 insertions, 10 deletions
diff --git a/cypress/integration/workspace.spec.js b/cypress/integration/workspace.spec.js
index b385bfd1c..d26356f3f 100644
--- a/cypress/integration/workspace.spec.js
+++ b/cypress/integration/workspace.spec.js
@@ -50,16 +50,20 @@ describe('Workspace', function() {
openWorkspace()
.type('Format me')
.type('{selectall}')
- ;[['bold', 'strong'], ['italic', 'em'], ['strike', 's']]
- .forEach(([button, tag]) => {
- menuButton(button)
- .click()
- .should('have.class', 'is-active')
- cy.get(`.ProseMirror ${tag}`).should('contain', 'Format me')
- menuButton(button)
- .click()
- .should('not.have.class', 'is-active')
- })
+ ;[
+ ['bold', 'strong'],
+ ['italic', 'em'],
+ ['underline', 'u'],
+ ['strike', 's']
+ ].forEach(([button, tag]) => {
+ menuButton(button)
+ .click()
+ .should('have.class', 'is-active')
+ cy.get(`.ProseMirror ${tag}`).should('contain', 'Format me')
+ menuButton(button)
+ .click()
+ .should('not.have.class', 'is-active')
+ })
})
it('links via menububble', function() {