From c7f9a806229b9cd6f5fccfdab6a67cc955d50054 Mon Sep 17 00:00:00 2001 From: Domagoj Kriskovic Date: Mon, 13 May 2024 13:56:40 +0200 Subject: [PATCH] [server-ce] fix cypress test (#18308) * [server-ce] fix cypress test * fix "from another project" casing GitOrigin-RevId: d34db7740f4038574b0d46ce1afd7dd170032f3e --- server-ce/test/create-and-compile-project.spec.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/server-ce/test/create-and-compile-project.spec.ts b/server-ce/test/create-and-compile-project.spec.ts index a875fb1d55..0070b0fbca 100644 --- a/server-ce/test/create-and-compile-project.spec.ts +++ b/server-ce/test/create-and-compile-project.spec.ts @@ -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()