download file and verify the first line
@@ -10,11 +10,11 @@ describe("When pressing the status button", () => {
it("should have 2 fields that contain George:", () => {
cy.get('a').contains('Click to download').click()
- const filename = path.join(downloadsFolder, 'downloads.py')
+ const filename = path.join(downloadsFolder, 'download.py')
cy.readFile(filename).should((text) => {
const lines = text.split('\n')
- expect(lines[0]).to.equal("# Copyright (C) 2021 Cancer Care Associates")
+ expect(lines[0]).to.contain("# Copyright (C) 2021 Cancer Care Associates")
})
});
});
