Skip to content

Commit 9ee25d0

Browse files
authored
Merge pull request #3904 from nextcloud/backport/3870/stable26
2 parents 327869b + 092a05d commit 9ee25d0

File tree

14 files changed

+40
-21
lines changed

14 files changed

+40
-21
lines changed

β€Žcypress/e2e/nodes/Links.spec.jsβ€Ž

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@ describe('test link marks', function() {
4444
})
4545

4646
describe('autolink', function() {
47-
it('with protocol', () => {
47+
it('with protocol to files app and fileId', () => {
4848
cy.getFile(fileName)
4949
.then($el => {
5050
const id = $el.data('id')
5151

52-
const link = `${Cypress.env('baseUrl')}/file-name?fileId=${id}`
52+
const link = `${Cypress.env('baseUrl')}/apps/files/file-name?fileId=${id}`
5353
cy.clearContent()
5454
.type(`${link}{enter}`)
5555

@@ -63,6 +63,25 @@ describe('test link marks', function() {
6363
})
6464
})
6565

66+
it('with protocol and fileId', () => {
67+
cy.getFile(fileName)
68+
.then($el => {
69+
const id = $el.data('id')
70+
71+
const link = `${Cypress.env('baseUrl')}/file-name?fileId=${id}`
72+
cy.clearContent()
73+
.type(`${link}{enter}`)
74+
75+
cy.getContent()
76+
.find(`a[href*="${Cypress.env('baseUrl')}"]`)
77+
.click({ force: true })
78+
79+
cy.get('@winOpen')
80+
.should('have.been.calledOnce')
81+
.should('have.been.calledWithMatch', new RegExp(`${Cypress.env('baseUrl')}/file-name\\?fileId=${id}$`))
82+
})
83+
})
84+
6685
it('without protocol', () => {
6786
cy.clearContent()
6887
.type('google.com{enter}')

β€Žjs/editor.jsβ€Ž

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žjs/editor.js.mapβ€Ž

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žjs/text-editors.jsβ€Ž

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žjs/text-editors.js.mapβ€Ž

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žjs/text-files.jsβ€Ž

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žjs/text-files.js.mapβ€Ž

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žjs/text-public.jsβ€Ž

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žjs/text-public.js.mapβ€Ž

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žjs/text-text.jsβ€Ž

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
Β (0)