Ver código fonte

[server-ce] fix cypress test (#18308)

* [server-ce] fix cypress test

* fix "from another project" casing

GitOrigin-RevId: d34db7740f4038574b0d46ce1afd7dd170032f3e
Domagoj Kriskovic 2 anos atrás
pai
commit
c7f9a80622
1 arquivos alterados com 5 adições e 5 exclusões
  1. 5 5
      server-ce/test/create-and-compile-project.spec.ts

+ 5 - 5
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()