Skip to content

Commit

Permalink
DEVPROD-6656 unhide distro warnings field (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
ablack12 authored May 29, 2024
1 parent ed23d87 commit ef9af32
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { save } from "./utils";

// TODO: https://jira.mongodb.org/browse/DEVPROD-6656 - Uncomment the Warnings assertions when the backend supports it
describe("general section", () => {
beforeEach(() => {
cy.visit("/distro/localhost/settings/general");
Expand All @@ -17,7 +16,7 @@ describe("general section", () => {
cy.contains("button", "Add alias").click();
cy.getInputByLabel("Alias").type("localhost-alias");
cy.getInputByLabel("Notes").type("this is a note");
// cy.getInputByLabel("Warnings").type("this is a warning");
cy.getInputByLabel("Warnings").type("this is a warning");
cy.getInputByLabel("Disable shallow clone for this distro").check({
force: true,
});
Expand All @@ -29,7 +28,7 @@ describe("general section", () => {
cy.reload();
cy.getInputByLabel("Alias").should("have.value", "localhost-alias");
cy.getInputByLabel("Notes").should("have.value", "this is a note");
// cy.getInputByLabel("Warnings").should("have.value", "this is a warning");
cy.getInputByLabel("Warnings").should("have.value", "this is a warning");
cy.getInputByLabel("Disable shallow clone for this distro").should(
"be.checked",
);
Expand All @@ -38,7 +37,7 @@ describe("general section", () => {
// Undo changes.
cy.dataCy("delete-item-button").click();
cy.getInputByLabel("Notes").clear();
// cy.getInputByLabel("Warnings").clear();
cy.getInputByLabel("Warnings").clear();
cy.getInputByLabel("Disable shallow clone for this distro").uncheck({
force: true,
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,7 @@ export const getFormSchema = (
},
warningNote: {
"ui:rows": 2,
// TODO: https://jira.mongodb.org/browse/DEVPROD-6656 - Swap this to textarea when the backend supports it
"ui:widget": "hidden",
"ui:widget": "textarea",
"ui:description":
"This will be displayed to users when selecting this distro as part of evergreen yml validation.",
},
Expand Down

0 comments on commit ef9af32

Please sign in to comment.