mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 14:43:46 +01:00
Revert case-insensitivity in e2e tests (#25828)
* Revert case-insensitivity in e2e tests
* Use `{ exact: false }` to filter createProject type
* Update server-ce/test/helpers/project.ts
Co-authored-by: Jakob Ackermann <jakob.ackermann@overleaf.com>
---------
Co-authored-by: Jakob Ackermann <jakob.ackermann@overleaf.com>
GitOrigin-RevId: b8b2f8439a55e9527358b13d9292779dc3509e9d
This commit is contained in:
committed by
Copybot
co-authored by
Jakob Ackermann
parent
f7b6246d41
commit
344405cdcb
@@ -37,7 +37,8 @@ export function createProject(
|
||||
}
|
||||
cy.findAllByRole('button').contains(newProjectButtonMatcher).click()
|
||||
// FIXME: This should only look in the left menu
|
||||
cy.findAllByText(new RegExp(type, 'i')).first().click()
|
||||
// The upgrading tests create projects in older versions of Server Pro which used different casing of the project type. Use case-insensitive match.
|
||||
cy.findAllByText(type, { exact: false }).first().click()
|
||||
cy.findByRole('dialog').within(() => {
|
||||
cy.get('input').type(name)
|
||||
cy.findByText('Create').click()
|
||||
|
||||
Reference in New Issue
Block a user