Skip to content

Commit

Permalink
Add download test to the concerns and safeguarding tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nwarms committed Dec 2, 2024
1 parent 23b229f commit 2ffe364
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,12 @@ describe("Testing the Ofsted page and its subpages ", () => {
beforeEach(() => {
cy.login();
cy.visit('/trusts/ofsted/safeguarding-and-concerns?uid=5143');

cy.task('checkForFiles', 'cypress/downloads').then((files) => {
if (files) {
cy.task('clearDownloads', 'cypress/downloads');
}
});
});

it("Checks the correct Ofsted safeguarding and concerns subpage header is present", () => {
Expand Down Expand Up @@ -161,6 +167,14 @@ describe("Testing the Ofsted page and its subpages ", () => {
.checkSafeguardingConcernsBeforeOrAfterJoiningJudgementsPresent();
});

it('should export academies data as an xlsx and verify it has downloaded and has content', () => {
ofstedPage
.clickDownloadButton();
dataDownload
.checkFileDownloaded()
.checkFileHasContent()
.deleteDownloadedFile();
});
});

describe("Testing the Ofsted important dates page ", () => {
Expand Down

0 comments on commit 2ffe364

Please sign in to comment.