Skip to content

Conversation

@Rupendra0
Copy link
Contributor

The offline test file was named 'offline._cy.js' which doesn't match Cypress's test file pattern '*.cy.js', causing the test to be silently skipped. Renamed to 'offline.cy.js' to enable execution.

Summary

This PR fixes a critical testing issue where the offline functionality test was being silently skipped due to incorrect file naming.

Problem:

  • The test file was named cypress/e2e/offline._cy.js
  • Cypress only executes files matching the pattern *.cy.js (not ._cy.js)
  • This caused the offline/PWA test to never run in CI/CD pipelines
  • Offline functionality was not being validated

Solution:

  • Renamed offline._cy.jsoffline.cy.js
  • No code changes - just file rename
  • Test will now execute automatically with other E2E tests

Impact:

  • Enables proper testing of service worker offline capabilities
  • Ensures PWA offline features are validated in CI/CD
  • Prevents regression in offline functionality
  • Improves test coverage visibility

File changed:

  • cypress/e2e/offline._cy.jscypress/e2e/offline.cy.js (renamed)

What kind of change does this PR introduce?

Test infrastructure fix - enables a previously disabled/skipped test file by correcting its naming pattern to match Cypress conventions.

Did you add tests for your changes?

No new tests were added. This PR enables an existing test that was already written but not being executed due to the incorrect filename. The test file offline.cy.js contains comprehensive offline functionality tests that will now run.

Does this PR introduce a breaking change?

No. This PR does not introduce any breaking changes. It's purely a file rename that:

  • Enables an existing test to run
  • Does not modify test logic or assertions
  • Does not change any application code
  • Improves test coverage without side effects

If relevant, what needs to be documented once your changes are merged or what have you already documented?

No additional documentation needed. This is an internal testing infrastructure improvement. The test will now appear in CI/CD test results and coverage reports.

Additional Context:

This issue was discovered during a comprehensive documentation and codebase analysis. All other Cypress E2E test files follow the *.cy.js naming convention:

  • check-server-side-rendering.cy.js
  • check-sub-navigation.cy.js
  • click-menu-scroll-top.cy.js
  • client-side-redirection.cy.js
  • offline._cy.js (previously disabled)
  • pr_4435.cy.js
  • scroll.cy.js
  • search.cy.js
  • toggle-dark-mode.cy.js

This fix ensures consistency with the project's test naming conventions and enables important offline functionality validation.

The offline test file was named 'offline._cy.js' which doesn't match
Cypress's test file pattern '*.cy.js', causing the test to be silently
skipped. Renamed to 'offline.cy.js' to enable execution.

This ensures PWA offline functionality is properly tested in CI/CD.
@vercel
Copy link

vercel bot commented Nov 11, 2025

@Rupendra0 is attempting to deploy a commit to the OpenJS Foundation Team on Vercel.

A member of the Team first needs to authorize it.

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Nov 11, 2025

CLA Signed
The committers listed above are authorized under a signed CLA.

  • ✅ login: Rupendra0 / name: Rupendra Gangwar (ccaa7d1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant