Skip to content

Commit

Permalink
Adjust client unit tests to conditional console rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed Jan 9, 2025
1 parent 22bae10 commit 01e912a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions client/src/components/JobInformation/JobInformation.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ describe("JobInformation/JobInformation.vue", () => {
// table should exist
expect(jobInfoTable).toBeTruthy();
const rows = jobInfoTable.findAll("tr");
// should contain 9 rows
expect(rows.length).toBe(9);
// should contain 10 rows
expect(rows.length).toBe(10);
});

it("stdout and stderr should be rendered", async () => {
Expand Down Expand Up @@ -96,5 +96,6 @@ describe("JobInformation/JobInformation.vue", () => {
{ id: "encoded-copied-from-job-id", backend_key: "copied_from_job_id" },
];
verifyValues(rendered_entries, jobInfoTable, jobResponse);
expect(wrapper.find('td[data-description="galaxy-job-state"]').exists()).toBe(true);
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
"command_line": "commandline",
"job_messages": ["test-msg1", "test-msg2", "test-msg3", "test-msg4"],
"id": "test_id",
"copied_from_job_id": "test_copied_from_job_id"
"copied_from_job_id": "test_copied_from_job_id",
"state": "running"
}

0 comments on commit 01e912a

Please sign in to comment.