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', () => {
cy.get('.icon-confirm').click()
// Test Onlyoffice
cy.frameLoaded('[name="frameEditor"]')
cy.enter('[name="frameEditor"]').then(getBody => {
getBody().find('#id-toolbar-btn-italic').should('be.visible').click()
getBody().find('#id_main').click().type('Hi from Cypress!')
cy.frameLoaded('#onlyofficeFrame')
cy.iframe('#onlyofficeFrame').within(() => {
cy.frameLoaded('[name="frameEditor"]')
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