-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support #35538 - Molecular Analysis Run view page bug and test coverage
- More progress on the new test, and reviewing all the code for the view hook.
- Loading branch information
1 parent
9d96b9c
commit c609a70
Showing
2 changed files
with
94 additions
and
11 deletions.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
...ina-ui/page-tests/seqdb/molecular-analysis-run/__mocks__/MolecularAnalysisRunViewMocks.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { PersistedResource } from "kitsu"; | ||
import { MolecularAnalysisRun } from "../../../../types/seqdb-api/resources/molecular-analysis/MolecularAnalysisRun"; | ||
import { Metadata } from "../../../../types/objectstore-api"; | ||
|
||
export const TEST_MOLECULAR_ANALYSIS_RUN_ID = | ||
"b4c78082-61a8-4784-a116-8601f76c85d7"; | ||
|
||
export const TEST_MOLECULAR_ANALYSIS_RUN: PersistedResource<MolecularAnalysisRun> = | ||
{ | ||
id: TEST_MOLECULAR_ANALYSIS_RUN_ID, | ||
type: "molecular-analysis-run", | ||
name: "Run Name 1", | ||
attachments: [ | ||
{ | ||
id: "7f3eccfa-3bc1-412f-9385-bb00e2319ac6", | ||
type: "metadata" | ||
} | ||
] | ||
}; | ||
|
||
export const TEST_METADATA: PersistedResource<Metadata> = { | ||
id: "7f3eccfa-3bc1-412f-9385-bb00e2319ac6", | ||
type: "metadata", | ||
createdOn: "2024-12-03T14:56:51.439016Z", | ||
bucket: "aafc", | ||
fileIdentifier: "01938d06-12e5-793c-aecf-cadc6b18d6c2", | ||
fileExtension: ".jpg", | ||
dcFormat: "image/jpeg", | ||
dcType: "IMAGE", | ||
acCaption: "japan.jpg", | ||
originalFilename: "japan.jpg", | ||
publiclyReleasable: true, | ||
group: "aafc" | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters