-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43678 from LadySolveig/5.1/upmerge/2024-06-20
[5.1] Upmerge 2024-06-20
- Loading branch information
Showing
7 changed files
with
69 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
tests/System/integration/administrator/components/com_checkin/Default.cy.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
describe('Test in backend that the checkin', () => { | ||
beforeEach(() => { | ||
cy.doAdministratorLogin(); | ||
cy.visit('/administrator/index.php?option=com_checkin'); | ||
}); | ||
|
||
it('has a title', () => { | ||
cy.get('h1.page-title').should('contain.text', 'Maintenance: Global Check-in'); | ||
}); | ||
|
||
it('can display message', () => { | ||
cy.get('p.lead').should('contain.text', 'There are no tables with checked out items'); | ||
}); | ||
|
||
it('can display a list of checked out', () => { | ||
cy.db_createArticle({ title: 'Test article', checked_out: '1', checked_out_time: '2024-01-01 20:00:00' }).then(() => { | ||
cy.visit('/administrator/index.php?option=com_checkin'); | ||
cy.get('tr.row0').should('contain.text', 'content'); | ||
}); | ||
}); | ||
|
||
it('can check in items', () => { | ||
cy.db_createArticle({ title: 'Test article', checked_out: '1', checked_out_time: '2024-01-01 20:00:00' }).then(() => { | ||
cy.visit('/administrator/index.php?option=com_checkin'); | ||
cy.searchForItem('content'); | ||
cy.checkAllResults(); | ||
cy.get('#toolbar-checkin').click(); | ||
cy.get('#system-message-container').contains('Item checked in').should('exist'); | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters