Skip to content

fix(browser): align test page with Jasmine 5 and remove missing asset refs#69

Open
GitToTheHub wants to merge 2 commits into
apache:masterfrom
GitToTheHub:master
Open

fix(browser): align test page with Jasmine 5 and remove missing asset refs#69
GitToTheHub wants to merge 2 commits into
apache:masterfrom
GitToTheHub:master

Conversation

@GitToTheHub
Copy link
Copy Markdown

@GitToTheHub GitToTheHub commented May 18, 2026

Summary

This PR updates browser test assets to match the current Jasmine runtime and reduce CI noise.

Changes

  • Load jasmine/boot0.js in www/assets/index.html so Jasmine 5 initializes the global interface expected by the test harness.
  • Remove stale Bootstrap CSS/JS references from www/assets/index.html that are not shipped in plugin assets and produced 404s.
  • Remove optional csp-incl.js script include that is not provided by default, eliminating non-actionable 404 noise in CI.

Motivation

Without bootstrapping, harness code calling window.jasmine.getEnv() may fail under Jasmine 5. Missing static references also clutter CI output and obscure actionable failures.

Validation

  • Browser tests execute and report successfully in plugin CI using this asset page.
  • Removed references are cosmetic/non-runtime dependencies and do not affect test execution.

Cross-PR Testing Note

For integration testing purposes, apache/cordova-paramedic#302 installs this PR via apache/cordova-plugin-test-framework#pull/69/head.

Downstream Validation

A dedicated downstream test PR is open in apache/cordova-plugin-network-information:

That PR consumes this change chain and demonstrates successful CI runs.

Generated-By: GPT-5.3-Codex

- Add jasmine/boot0.js script tag (required for Jasmine 5.x to initialize
  window.jasmine global and expose describe/it/expect etc.)
- Remove references to bootstrap CSS and JS files that were never included
  in the package assets (404 errors) and are purely cosmetic
@GitToTheHub
Copy link
Copy Markdown
Author

I tested the actions on apache/cordova-plugin-network-information#184 with this PR and it works now. Can this be merged?

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