Skip to content

Commit a985bdf

Browse files
committed
test(cypress): fix selector for link input field
Changed with nextcloud-vue v9. Signed-off-by: Jonas <jonas@freesources.org>
1 parent 0fc58bf commit a985bdf

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

cypress/e2e/Links.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ describe('test link marks', function() {
175175
const checkLinkWebsite = (url, text) => {
176176
cy.getSubmenuEntry('insert-link', 'insert-link-website').click()
177177
cy.getActionSubEntry('insert-link-input')
178-
.find('input[type="text"]')
178+
.click()
179179
.type(`${url}{enter}`)
180180
cy.getContent()
181181
.find(`a[href*="${url}"]`)

cypress/e2e/nodes/PreviewOptions.spec.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ describe('Preview Options', function() {
1717
cy.openFile('empty.md')
1818
cy.get('.entry-action__insert-link').click()
1919
cy.get('li').get('[data-text-action-entry="insert-link-website"]').click()
20-
cy.get('[data-text-action-entry="insert-link-input"] input').type('example.org')
21-
cy.get('[data-text-action-entry="insert-link-input"] button').click()
20+
cy.get('[data-text-action-entry="insert-link-input"]')
21+
.click()
22+
.type('example.org{enter}')
2223

2324
cy.getContent().find('a[href*="https://example.org"]').click()
2425
cy.get('.link-options').click()

0 commit comments

Comments
 (0)