Skip to content

Commit

Permalink
Fixed unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
P3TROOS committed Oct 20, 2023
1 parent 26b5668 commit 9121379
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ describe("CreateTask Component", () => {
//expect(screen.getByText("")).toBeInTheDocument();
expect(screen.getByText("Task Description")).toBeInTheDocument();
//expect(screen.getByText("")).toBeInTheDocument();
expect(screen.getByText("Task Status")).toBeInTheDocument();
expect(screen.getByText("Task Priority")).toBeInTheDocument();
//expect(screen.getByText("")).toBeInTheDocument();
expect(screen.getByText("Assignees")).toBeInTheDocument();
//expect(screen.getByText("")).toBeInTheDocument();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ describe("EditTask Component", () => {
expect(screen.getByText("description 1")).toBeInTheDocument();
expect(screen.getByText("Assigned Users:")).toBeInTheDocument();
expect(screen.getByText("Add More Assignees")).toBeInTheDocument();
expect(screen.getByText("Status")).toBeInTheDocument();
expect(screen.getByText("Priority")).toBeInTheDocument();
expect(screen.getByText("High")).toBeInTheDocument();
expect(screen.getByText("Completion Date")).toBeInTheDocument();
//expect(screen.getByText("2023/10/10")).toBeInTheDocument();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ describe("ViewTaskPopup Component", () => {
task_name: "Task 1",
task_description: "Create new users",
due_date: "2023-11-11",
task_status: "High",
data_scope_id: {
ds_name: "Data Scope A"
}
Expand All @@ -25,6 +26,8 @@ describe("ViewTaskPopup Component", () => {
expect(screen.getByText("Data Scope A")).toBeInTheDocument();
expect(screen.getByText("Task Description")).toBeInTheDocument();
expect(screen.getByText("Create new users")).toBeInTheDocument();
expect(screen.getByText("Task Priority")).toBeInTheDocument();
expect(screen.getByText("High")).toBeInTheDocument();
expect(screen.getByText("Completion Date")).toBeInTheDocument();
expect(screen.getByText("2023-11-11")).toBeInTheDocument();
});
Expand Down

0 comments on commit 9121379

Please sign in to comment.