mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
Merge pull request #30717 from overleaf/mj-new-editor-fps-e2e
[server-ce] Add new E2E for full project search to redesigned editor GitOrigin-RevId: 3487a9a85c57d17dea91d8e35f22355a24d55008
This commit is contained in:
committed by
Copybot
parent
74724d04be
commit
6e5e53f4e6
@@ -278,6 +278,23 @@ describe('new editor.editor', function () {
|
|||||||
cy.get('.cm-editor').should('be.visible')
|
cy.get('.cm-editor').should('be.visible')
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
describe('full project search', function () {
|
||||||
|
it('can search for text in project files', function () {
|
||||||
|
cy.findByRole('tab', { name: 'Project search' }).click()
|
||||||
|
|
||||||
|
cy.findByRole('searchbox', { name: 'Search' })
|
||||||
|
.should('be.visible')
|
||||||
|
.type('Some examples to get started')
|
||||||
|
cy.get('button').contains('Search').click()
|
||||||
|
|
||||||
|
cy.findByRole('listbox').within(() => {
|
||||||
|
cy.findByRole('option', {
|
||||||
|
name: /Some examples to get started/,
|
||||||
|
}).should('be.visible')
|
||||||
|
})
|
||||||
|
})
|
||||||
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
function createRandomLetterString() {
|
function createRandomLetterString() {
|
||||||
|
|||||||
Reference in New Issue
Block a user