diff --git a/tests/System/integration/administrator/components/com_media/Media.cy.js b/tests/System/integration/administrator/components/com_media/Media.cy.js index 6a943544b95ce..47f25d1fc2c8e 100644 --- a/tests/System/integration/administrator/components/com_media/Media.cy.js +++ b/tests/System/integration/administrator/components/com_media/Media.cy.js @@ -104,7 +104,7 @@ describe('Test in backend that the media manager', () => { })) .then((response) => { expect(response.status).to.eq(500); - cy.readFile('images/powered.php').should('not.exist'); + cy.readFile(`${Cypress.expose('cmsPath')}/images/powered.php`).should('not.exist'); }); });