From ae56374fc6d9d017bc59ed137b3258e3ea1b31a1 Mon Sep 17 00:00:00 2001 From: Mohamed Khelif Date: Mon, 16 Sep 2024 15:39:07 -0400 Subject: [PATCH] DEVPROD-10482 Update valid projects label to use ID instead of name (#389) --- .../cypress/integration/distroSettings/project_section.ts | 4 ++-- .../src/pages/distroSettings/tabs/ProjectTab/getFormSchema.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/spruce/cypress/integration/distroSettings/project_section.ts b/apps/spruce/cypress/integration/distroSettings/project_section.ts index 9b90fd650..a8efbcaad 100644 --- a/apps/spruce/cypress/integration/distroSettings/project_section.ts +++ b/apps/spruce/cypress/integration/distroSettings/project_section.ts @@ -17,7 +17,7 @@ describe("project section", () => { cy.getInputByLabel("Key").type("key-name"); cy.getInputByLabel("Value").type("my-value"); cy.contains("button", "Add project").click(); - cy.getInputByLabel("Project Name").type("spruce"); + cy.getInputByLabel("Project ID").type("spruce"); save(); cy.validateToast("success"); @@ -26,7 +26,7 @@ describe("project section", () => { cy.reload(); cy.getInputByLabel("Key").should("have.value", "key-name"); cy.getInputByLabel("Value").should("have.value", "my-value"); - cy.getInputByLabel("Project Name").should("have.value", "spruce"); + cy.getInputByLabel("Project ID").should("have.value", "spruce"); // Undo changes. cy.dataCy("delete-item-button").first().click(); diff --git a/apps/spruce/src/pages/distroSettings/tabs/ProjectTab/getFormSchema.ts b/apps/spruce/src/pages/distroSettings/tabs/ProjectTab/getFormSchema.ts index 6afd98413..bddad7d3d 100644 --- a/apps/spruce/src/pages/distroSettings/tabs/ProjectTab/getFormSchema.ts +++ b/apps/spruce/src/pages/distroSettings/tabs/ProjectTab/getFormSchema.ts @@ -35,7 +35,7 @@ export const getFormSchema = (): ReturnType => ({ title: "Valid Projects", items: { type: "string" as "string", - title: "Project Name", + title: "Project ID", default: "", minLength: 1, },