mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
[server-ce] fix cypress test (#18308)
* [server-ce] fix cypress test * fix "from another project" casing GitOrigin-RevId: d34db7740f4038574b0d46ce1afd7dd170032f3e
This commit is contained in:
parent
becef5f236
commit
c7f9a80622
1 changed files with 5 additions and 5 deletions
|
@ -24,7 +24,7 @@ describe('Project creation and compilation', function () {
|
|||
cy.visit('/project')
|
||||
createProject('test-project')
|
||||
// FIXME: Add aria-label maybe? or at least data-test-id
|
||||
cy.findByText('New File').click({ force: true })
|
||||
cy.findByText('New file').click({ force: true })
|
||||
cy.findByRole('dialog').within(() => {
|
||||
cy.get('input').clear()
|
||||
cy.get('input').type(fileName)
|
||||
|
@ -54,9 +54,9 @@ describe('Project creation and compilation', function () {
|
|||
createProject(targetProjectName)
|
||||
|
||||
// link the image from `projectName` into this project
|
||||
cy.findByText('New File').click({ force: true })
|
||||
cy.findByText('New file').click({ force: true })
|
||||
cy.findByRole('dialog').within(() => {
|
||||
cy.findByText('From Another Project').click()
|
||||
cy.findByText('From another project').click()
|
||||
cy.findByLabelText('Select a Project').select(sourceProjectName)
|
||||
cy.findByLabelText('Select a File').select('frog.jpg')
|
||||
cy.findByText('Create').click()
|
||||
|
@ -85,9 +85,9 @@ describe('Project creation and compilation', function () {
|
|||
createProject(targetProjectName).as('targetProjectId')
|
||||
|
||||
// link the image from `projectName` into this project
|
||||
cy.findByText('New File').click({ force: true })
|
||||
cy.findByText('New file').click({ force: true })
|
||||
cy.findByRole('dialog').within(() => {
|
||||
cy.findByText('From Another Project').click()
|
||||
cy.findByText('From another project').click()
|
||||
cy.findByLabelText('Select a Project').select(sourceProjectName)
|
||||
cy.findByLabelText('Select a File').select('frog.jpg')
|
||||
cy.findByText('Create').click()
|
||||
|
|
Loading…
Reference in a new issue