No Code Attached Yet
avatar D3S-Gaurav
D3S-Gaurav
22 Feb 2026

Summary

The Content.cy.js system test file uses cy.wait(5000) 9 times to wait for an iframe to load before interacting with its contents. This is a Cypress anti-pattern that:

  • Wastes ~45 seconds of CI time per test run when the server is fast
  • Still flakes when the server is slow
  • Is redundant because the .should('not.be.empty') assertions that follow are already retryable by Cypress

File

tests/System/integration/administrator/components/com_contenthistory/Content.cy.js

Current Pattern (anti-pattern)

cy.wait(5000);
cy.get('iframe.iframe-content')
  .its('0.contentDocument.body')
  .should('not.be.empty')
  .then(cy.wrap)
  .find('a')
  .should('contain.text', formattedDate);
avatar D3S-Gaurav D3S-Gaurav - open - 22 Feb 2026
avatar joomla-cms-bot joomla-cms-bot - change - 22 Feb 2026
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 22 Feb 2026
avatar D3S-Gaurav D3S-Gaurav - change - 22 Feb 2026
The description was changed
avatar D3S-Gaurav D3S-Gaurav - edited - 22 Feb 2026
avatar alikon
alikon - comment - 22 Feb 2026

@D3S-Gaurav you don't need to open an issue if you are submitting a pull request

avatar D3S-Gaurav D3S-Gaurav - change - 22 Feb 2026
Status New Closed
Closed_Date 0000-00-00 00:00:00 2026-02-22 10:26:45
Closed_By D3S-Gaurav
avatar D3S-Gaurav D3S-Gaurav - close - 22 Feb 2026
avatar D3S-Gaurav
D3S-Gaurav - comment - 22 Feb 2026

Ok @alikon

Add a Comment

Login with GitHub to post a comment