-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[RFR] Download questionnaire template (#777)
* Download questionnaire template Signed-off-by: Nandini Chandra <[email protected]> * Format files Signed-off-by: Nandini Chandra <[email protected]> * Minor changes Signed-off-by: Nandini Chandra <[email protected]> * Cleanup downloaded file Signed-off-by: Nandini Chandra <[email protected]> --------- Signed-off-by: Nandini Chandra <[email protected]>
- Loading branch information
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
cypress/e2e/tests/administration/questionnaires/miscellaneous.test.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,22 @@ | ||
import { AssessmentQuestionnaire } from "../../../models/administration/assessment_questionnaire/assessment_questionnaire"; | ||
import { cleanupDownloads, click, login } from "../../../../utils/utils"; | ||
import { downloadYamlTemplate } from "../../../views/assessmentquestionnaire.view"; | ||
|
||
describe(["@tier3"], "Miscellaneous Questinnaire tests", () => { | ||
before("Login", function () { | ||
login(); | ||
}); | ||
|
||
it("Download YAML template", function () { | ||
AssessmentQuestionnaire.open(); | ||
click(downloadYamlTemplate); | ||
cy.readFile("cypress/downloads/questionnaire-template.yaml").should( | ||
"contain", | ||
"Test questionnaire (SAMPLE)" | ||
); | ||
}); | ||
|
||
after("Cleaning up", function () { | ||
cleanupDownloads(); | ||
}); | ||
}); |
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