Skip to content

Commit

Permalink
Added a comment on the filename fix for download-pagetest
Browse files Browse the repository at this point in the history
  • Loading branch information
rmanaem committed Nov 3, 2023
1 parent 235cb35 commit 5365a88
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cypress/e2e/page/download-pagetests.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ describe("tests on download page ui via programmatic state loading and store int

cy.getVuexStoreValue("dataDictionary").then(dataDictionary => {

// Using the datadictionary name to locate the file downloaded by test for further verification
// may not be a foolproof solution since if another test ends up using the same data dictionary
// as input this approach may grab the wrong file and lead to test(s) failing
const dataDictionaryFilenameNoExt = dataDictionary.filename.split(".").slice(0, -1).join(".");
expect(folderStateAfter.some(filename => filename.includes(dataDictionaryFilenameNoExt))).to.be.true;

Expand Down

0 comments on commit 5365a88

Please sign in to comment.