Skip to content

Commit

Permalink
Expanded to check for property and its value
Browse files Browse the repository at this point in the history
  • Loading branch information
rmanaem committed Oct 25, 2023
1 parent 2d02846 commit 5413571
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 5413571

Please sign in to comment.