Skip to content

Commit

Permalink
Explanation why we mix UI with API tests
Browse files Browse the repository at this point in the history
  • Loading branch information
laoneo committed Sep 26, 2023
1 parent 6358c96 commit 6cf6fb1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/System/integration/api/com_users/Users.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ describe('Test that users API endpoint', () => {
.its('name')
.should('include', 'test'))
.then(() => {
// This here is an exception, we should not mix UI tests with API tests
// Passwords can only be tested through the web interface
cy.visit('/index.php?option=com_users&view=login');
cy.get('#username').type('test');
cy.get('#password').type('test');
Expand Down

0 comments on commit 6cf6fb1

Please sign in to comment.