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:
authorJulien Veyssier <eneiluj@posteo.net>2022-03-30 11:28:52 +0300
committerJulien Veyssier <eneiluj@posteo.net>2022-03-30 14:20:35 +0300
commit63e64d2c36378022911100c6dd7e93846d4dab43 (patch)
treeece37c619780c90bd1a202acd0fcce8f23072b88 /cypress
parent3ac82dd268a0bf21543b482d747bb5f27e7343f9 (diff)
add image upload via drag'n'drop
remove image upload by link move 'image insertion from files' from MenuBar to EditorWrapper allow uploading multiple files Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
Diffstat (limited to 'cypress')
-rw-r--r--cypress/integration/images.spec.js19
1 files changed, 1 insertions, 18 deletions
diff --git a/cypress/integration/images.spec.js b/cypress/integration/images.spec.js
index a63f7dbba..67952fe07 100644
--- a/cypress/integration/images.spec.js
+++ b/cypress/integration/images.spec.js
@@ -139,23 +139,6 @@ describe('Test all image insertion methods', () => {
})
})
- it('Insert an image from a link', () => {
- cy.openFile('test.md')
- clickOnImageAction(ACTION_INSERT_FROM_LINK, (popoverId) => {
- const requestAlias = 'insertLinkRequest'
- cy.intercept({ method: 'POST', url: '**/link' }).as(requestAlias)
-
- cy.log('Type and validate')
- cy.get('div#' + popoverId + ' li:nth-child(3) input[type=text]')
- .type('https://nextcloud.com/wp-content/themes/next/assets/img/headers/engineering-small.jpg', { waitForAnimations: true })
- .type('{enter}', { waitForAnimations: true })
- // Clicking on the validation button is an alternative to typing {enter}
- // cy.get('div#' + popoverId + ' li:nth-child(3) form > label').click()
-
- waitForRequestAndCheckImage(requestAlias)
- })
- })
-
it('Upload a local image', () => {
cy.openFile('test.md')
// in this case we almost could just attach the file to the input
@@ -174,7 +157,7 @@ describe('Test all image insertion methods', () => {
it('test if image files are in the attachment folder', () => {
// check we stored the image names/ids
- cy.expect(Object.keys(attachmentFileNameToId)).to.have.lengthOf(3)
+ cy.expect(Object.keys(attachmentFileNameToId)).to.have.lengthOf(2)
cy.get(`#fileList tr[data-file="test.md"]`, { timeout: 10000 })
.should('have.attr', 'data-id')