Skip to content

Commit

Permalink
SCRUM-4657: add UI test for a reference
Browse files Browse the repository at this point in the history
  • Loading branch information
abecerra committed Jan 10, 2025
1 parent c90bc17 commit 63d8e51
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ describe('<VariantsTable />', () => {
const variantTypeTd = await result.findByText(/SNP/i);
const variantStatusTd = await result.findByText(/dead/i);
const sourceGeneralConsequenceTd = await result.findByText(/point_mutation/i);
const referenceTd = await result.findByText(/AGRKB:000000002/i);

await waitFor(() => {
expect(curieTd).toBeInTheDocument();
Expand All @@ -71,6 +72,7 @@ describe('<VariantsTable />', () => {
expect(variantTypeTd).toBeInTheDocument();
expect(variantStatusTd).toBeInTheDocument();
expect(sourceGeneralConsequenceTd).toBeInTheDocument();
expect(referenceTd).toBeInTheDocument();
});
});
});
21 changes: 21 additions & 0 deletions src/main/cliapp/src/containers/variantsPage/mockData/mockData.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,27 @@ export const data = {
],
},
],
references: [
{
id: 3,
internal: false,
obsolete: false,
dbDateCreated: '2025-01-09T16:19:58.85196Z',
dbDateUpdated: '2025-01-09T16:19:58.851965Z',
curie: 'AGRKB:000000002',
crossReferences: [
{
id: 200000160,
internal: false,
obsolete: false,
dbDateCreated: '2025-01-09T16:19:58.841396Z',
dbDateUpdated: '2025-01-09T16:19:58.841404Z',
referencedCurie: 'PMID:25920554',
displayName: 'PMID:25920554',
},
],
},
],
},
],
totalResults: 1,
Expand Down

0 comments on commit 63d8e51

Please sign in to comment.