From a1ecc12042b588b70fb4ad46b0367095f2ac4d55 Mon Sep 17 00:00:00 2001 From: Valtteri Kantanen Date: Thu, 7 Nov 2024 13:59:33 +0200 Subject: [PATCH] [Faculties] Fix tests --- cypress/e2e/Faculty_statistics.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cypress/e2e/Faculty_statistics.js b/cypress/e2e/Faculty_statistics.js index fc1dc35feb..3893870e3f 100644 --- a/cypress/e2e/Faculty_statistics.js +++ b/cypress/e2e/Faculty_statistics.js @@ -91,7 +91,7 @@ describe('Faculty overview', () => { ] sections.forEach(section => { cy.get(`[data-cy="Graph-${section}"]`).within(() => { - cy.get('[aria-label="View chart menu, Chart"]').click() + cy.get('[aria-label="View chart menu, Chart"]').click({ force: true }) cy.contains('li.highcharts-menu-item', 'Download XLS').click() const downloadedFile = `oodikone_${section}_H50_${timestamp}.xls` cy.readFile(path.join(downloadsFolder, downloadedFile))