Skip to content

Commit

Permalink
feat(test): Update document fixture
Browse files Browse the repository at this point in the history
Signed-off-by: Elizabeth Danzberger <[email protected]>
  • Loading branch information
elzody committed Oct 9, 2024
1 parent e7c5c03 commit 546b83f
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 7 deletions.
35 changes: 28 additions & 7 deletions cypress/e2e/integration.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ describe('Nextcloud integration', function() {
cy.get('.modal-container__content').should('be.visible')
})

describe('Smart picker', function() {
describe.only('Smart picker', function() {
describe('Link to office document section', function() {
beforeEach(function() {
// Proc the smart picker from Collabora
Expand Down Expand Up @@ -151,18 +151,39 @@ describe('Nextcloud integration', function() {
})

it('Can link to heading', function() {
cy.get('[data-cy-section-label="Headings"]').children().first().click()
cy.get('[data-cy-link-to-section=""]').click()
cy.get('.office-target-picker')
.contains('Headings')
.siblings()
.first()
.click()

cy.get('.office-target-picker__buttons')
.contains('Link to office document section')
.click()
})

it('Can link to section', function() {
cy.get('[data-cy-section-label="Sections"]').children().first().click()
cy.get('[data-cy-link-to-section=""]').click()
cy.get('.office-target-picker')
.contains('Sections')
.siblings()
.first()
.click()

cy.get('.office-target-picker__buttons')
.contains('Link to office document section')
.click()
})

it('Can link to image', function() {
cy.get('[data-cy-section-label="Images"]').children().first().click()
cy.get('[data-cy-link-to-section=""]').click()
cy.get('.office-target-picker')
.contains('Images')
.siblings()
.first()
.click()

cy.get('.office-target-picker__buttons')
.contains('Link to office document section')
.click()
})
})
})
Expand Down
Binary file modified cypress/fixtures/document.odt
Binary file not shown.

0 comments on commit 546b83f

Please sign in to comment.