|
|
@@ -13,6 +13,8 @@ describe('<CodeMirrorEditor/>', { scrollBehavior: false }, function () {
|
|
|
beforeEach(function () {
|
|
|
window.metaAttributesCache.set('ol-preventCompileOnLoad', true)
|
|
|
cy.interceptEvents()
|
|
|
+ cy.intercept('GET', '/project/*/changes/users', [])
|
|
|
+ cy.intercept('GET', '/project/*/threads', {})
|
|
|
})
|
|
|
|
|
|
it('deletes selected text on Backspace', function () {
|
|
|
@@ -519,6 +521,9 @@ describe('<CodeMirrorEditor/>', { scrollBehavior: false }, function () {
|
|
|
cy.findByLabelText('Within selection').as('within-selection-label')
|
|
|
cy.findByRole('button', { name: 'Replace' }).as('replace')
|
|
|
cy.findByRole('button', { name: 'Replace All' }).as('replace-all')
|
|
|
+ cy.findByRole('button', { name: 'Search all project files' }).as(
|
|
|
+ 'search-project'
|
|
|
+ )
|
|
|
cy.findByRole('button', { name: 'previous' }).as('find-previous')
|
|
|
cy.findByRole('button', { name: 'next' }).as('find-next')
|
|
|
cy.findByRole('button', { name: 'Close' }).as('close')
|
|
|
@@ -532,6 +537,7 @@ describe('<CodeMirrorEditor/>', { scrollBehavior: false }, function () {
|
|
|
cy.get('@within-selection').should('be.focused').tab()
|
|
|
cy.get('@find-previous').should('be.focused').tab()
|
|
|
cy.get('@find-next').should('be.focused').tab()
|
|
|
+ cy.get('@search-project').should('be.focused').tab()
|
|
|
cy.get('@replace').should('be.focused').tab()
|
|
|
cy.get('@replace-all').should('be.focused').tab()
|
|
|
|
|
|
@@ -539,6 +545,7 @@ describe('<CodeMirrorEditor/>', { scrollBehavior: false }, function () {
|
|
|
cy.get('@close').should('be.focused').tab({ shift: true })
|
|
|
cy.get('@replace-all').should('be.focused').tab({ shift: true })
|
|
|
cy.get('@replace').should('be.focused').tab({ shift: true })
|
|
|
+ cy.get('@search-project').should('be.focused').tab({ shift: true })
|
|
|
cy.get('@find-next').should('be.focused').tab({ shift: true })
|
|
|
cy.get('@find-previous').should('be.focused').tab({ shift: true })
|
|
|
cy.get('@within-selection').should('be.focused').tab({ shift: true })
|