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 <lizzy7128@tutanota.de>
  • Loading branch information
elzody committed Oct 9, 2024
1 parent 2dac1e3 commit 6b3390e
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 6b3390e

Please sign in to comment.