Skip to content

Commit fb3a16a

Browse files
committed
Closed as note to file change
1 parent 639c092 commit fb3a16a

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

compliance-api/src/compliance_api/models/inspection/inspection_enum.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class InspectionStatusEnum(enum.Enum):
2020
OPEN = "Open"
2121
CLOSED = "Closed"
2222
CANCELED = "Canceled"
23-
CLOSE_AS_NOTE = "Close as Note to File"
23+
CLOSE_AS_NOTE = "Closed as Note to File"
2424

2525

2626
class ImageTypeEnum(enum.Enum):

compliance-web/cypress/components/_components/_App/_Inspections/_Profile/InspectionFileActions.cy.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ describe("InspectionFileActions Component", () => {
6767
cy.contains("button", "Actions").click();
6868

6969
cy.contains("Cancel Inspection").should("exist");
70-
cy.contains("Close as Note to File").should("exist");
70+
cy.contains("Closed as Note to File").should("exist");
7171
cy.contains("Close").should("exist");
7272
cy.contains("Delete Inspection").should("exist");
7373
});
@@ -77,7 +77,7 @@ describe("InspectionFileActions Component", () => {
7777
cy.contains("button", "Actions").click();
7878

7979
cy.contains("Cancel Inspection").should("not.exist");
80-
cy.contains("Close as Note to File").should("not.exist");
80+
cy.contains("Closed as Note to File").should("not.exist");
8181
cy.contains("Close").should("not.exist");
8282
cy.contains("Delete Inspection").should("exist");
8383
});
@@ -87,7 +87,7 @@ describe("InspectionFileActions Component", () => {
8787
cy.contains("button", "Actions").click();
8888

8989
cy.contains("Cancel Inspection").should("not.exist");
90-
cy.contains("Close as Note to File").should("not.exist");
90+
cy.contains("Closed as Note to File").should("not.exist");
9191
cy.contains("Close").should("not.exist");
9292
cy.contains("Delete Inspection").should("exist");
9393
});
@@ -109,7 +109,7 @@ describe("InspectionFileActions Component", () => {
109109
it("handles Closed as Note to File click", () => {
110110
mountComponent("open");
111111
cy.contains("button", "Actions").click();
112-
cy.get("li[id='Close as Note to File']").click();
112+
cy.get("li[id='Closed as Note to File']").click();
113113

114114
// Verify the confirmation dialog opens
115115
cy.contains("Close Inspection as Note to File?").should("exist");

compliance-web/src/utils/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ export enum IRProgressEnumText {
119119
export enum InspectionStatusEnum {
120120
OPEN = "Open",
121121
CLOSED = "Closed",
122-
CLOSE_AS_NOTE = "Close as Note to File",
122+
CLOSE_AS_NOTE = "Closed as Note to File",
123123
CANCELED = "Canceled",
124124
}
125125

0 commit comments

Comments
 (0)