Skip to content

Commit

Permalink
Expanded download-pagetests to check for identifies property and …
Browse files Browse the repository at this point in the history
…its value

under the `participant_id` key
  • Loading branch information
rmanaem committed Oct 25, 2023
1 parent 2d02846 commit f3f5f58
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cypress/e2e/page/download-pagetests.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ describe("tests on download page ui via programmatic state loading and store int

expect(folderStateAfter[folderStateAfter.length - 1]).to.contain(dataDictionaryFilenameNoExt);
});
// C. Check if the last file retrieved contains the Identifies property and its value under the participant_id key
cy.readFile('cypress/downloads/' + folderStateAfter[folderStateAfter.length - 1]).then((fileContent) => {
expect(fileContent.participant_id.Annotations).to.have.property("Identifies");
expect(fileContent.participant_id.Annotations.Identifies).to.eq("participant");
});
});
});
});
Expand Down

0 comments on commit f3f5f58

Please sign in to comment.