Skip to content

Commit

Permalink
Removed hardcoded username from Actionlogs.cy.js (joomla#44439)
Browse files Browse the repository at this point in the history
* Removed hardcoded username from Actionlogs.cy.js

On line #22 "ci-admin" was hardcoded, causing the test to fail, if another user is configured in cypress.config.mjs

* Changed Syntax to use Template Literals

Using Template Literals to pass JS linting

* Update tests/System/integration/administrator/components/com_actionlogs/Actionlogs.cy.js

Co-authored-by: Richard Fath <[email protected]>

---------

Co-authored-by: Richard Fath <[email protected]>
  • Loading branch information
pAnd0rASBG and richard67 authored Nov 12, 2024
1 parent 04daa28 commit eb07512
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ describe('Test in backend that the action logs', () => {
cy.doAdministratorLogout();
cy.doAdministratorLogin();
cy.visit('/administrator/index.php?option=com_actionlogs&view=actionlogs');
cy.contains('User ci-admin logged in to admin');
cy.contains(`User ${Cypress.env('username')} logged in to admin`);
cy.task('queryDB', 'TRUNCATE #__action_logs');
});

Expand Down

0 comments on commit eb07512

Please sign in to comment.