Skip to content
Snippets Groups Projects
Commit e15d118f authored by Arie Peterson's avatar Arie Peterson
Browse files

Adapt test to same-tab setting

parent 586a0f9c
No related branches found
No related tags found
1 merge request!228Resolve "Test fails around frameLoaded"
Pipeline #23050 passed with stages
in 8 minutes and 25 seconds
...@@ -55,10 +55,13 @@ describe('Test nextcloud', () => { ...@@ -55,10 +55,13 @@ describe('Test nextcloud', () => {
cy.get('.icon-confirm').click() cy.get('.icon-confirm').click()
// Test Onlyoffice // Test Onlyoffice
cy.frameLoaded('[name="frameEditor"]') cy.frameLoaded('#onlyofficeFrame')
cy.enter('[name="frameEditor"]').then(getBody => { cy.iframe('#onlyofficeFrame').within(() => {
getBody().find('#id-toolbar-btn-italic').should('be.visible').click() cy.frameLoaded('[name="frameEditor"]')
getBody().find('#id_main').click().type('Hi from Cypress!') cy.iframe('[name="frameEditor"]').within(() => {
cy.get('#id-toolbar-btn-italic').should('be.visible').click()
cy.get('#id_main').click().type('Hi from Cypress!')
})
}) })
}) })
}) })
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment