Skip to content

fix: remove Firefox requirement from testem CI config and fix view tests#943

Merged
kdaviduik merged 1 commit intomainfrom
03-09-fix_remove_firefox_requirement_from_testem_ci_config_and_fix_view_tests
Mar 11, 2026
Merged

fix: remove Firefox requirement from testem CI config and fix view tests#943
kdaviduik merged 1 commit intomainfrom
03-09-fix_remove_firefox_requirement_from_testem_ci_config_and_fix_view_tests

Conversation

@kdaviduik
Copy link
Copy Markdown
Contributor

Testem's launch_in_ci required both Chrome and Firefox, but Firefox
is not installed locally, which caused testem ci to abort before
running any tests. Remove Firefox — Chrome-only is sufficient for
local test validation. The entire test runner (Mocha + Testem) is
being replaced by Vitest + happy-dom in a future PR.

Also fix 6 pre-existing test failures in test/unit/view.js where
tests tried to reassign the read-only ES module import Iframe
to spy on the constructor. Replace with assertions on the
observable outcome (view.iframe.el.getAttribute('title')), which
is both correct under modern strict mode and a stronger test
pattern — verifying behavior rather than implementation details.

@kdaviduik kdaviduik marked this pull request as ready for review March 9, 2026 20:34
@kdaviduik kdaviduik changed the base branch from kd-update-to-typescript to graphite-base/943 March 9, 2026 20:39
@kdaviduik kdaviduik force-pushed the 03-09-fix_remove_firefox_requirement_from_testem_ci_config_and_fix_view_tests branch from 731bb4a to cdb7712 Compare March 9, 2026 20:39
@kdaviduik kdaviduik changed the base branch from graphite-base/943 to 03-09-fix_run_ci_on_all_pull_requests_not_just_those_targeting_main March 9, 2026 20:39
@kdaviduik kdaviduik marked this pull request as draft March 9, 2026 20:40
@kdaviduik kdaviduik marked this pull request as ready for review March 9, 2026 20:40
@kdaviduik kdaviduik force-pushed the 03-09-fix_remove_firefox_requirement_from_testem_ci_config_and_fix_view_tests branch from cdb7712 to d65c289 Compare March 9, 2026 20:44
@kdaviduik kdaviduik marked this pull request as draft March 9, 2026 20:44
@kdaviduik kdaviduik marked this pull request as ready for review March 9, 2026 20:50
Testem's launch_in_ci required both Chrome and Firefox, but Firefox
is not installed locally, which caused `testem ci` to abort before
running any tests. Remove Firefox — Chrome-only is sufficient for
local test validation. The entire test runner (Mocha + Testem) is
being replaced by Vitest + happy-dom in a future PR.

Add headless Chrome args for CI mode (--headless, --no-sandbox,
--disable-gpu) so Chrome can run on headless CI runners without
an X server. These flags only apply in CI mode — dev mode still
opens a visible browser window.

Also fix 6 pre-existing test failures in test/unit/view.js where
tests tried to reassign the read-only ES module import `Iframe`
to spy on the constructor. Replace with assertions on the
observable outcome (view.iframe.el.getAttribute('title')), which
is both correct under modern strict mode and a stronger test
pattern — verifying behavior rather than implementation details.
@kdaviduik kdaviduik force-pushed the 03-09-fix_remove_firefox_requirement_from_testem_ci_config_and_fix_view_tests branch from d65c289 to a79416c Compare March 10, 2026 01:37
@kdaviduik kdaviduik force-pushed the 03-09-fix_run_ci_on_all_pull_requests_not_just_those_targeting_main branch from bba962b to 8588844 Compare March 10, 2026 01:37
@kdaviduik kdaviduik requested a review from a team March 10, 2026 03:19
Base automatically changed from 03-09-fix_run_ci_on_all_pull_requests_not_just_those_targeting_main to main March 11, 2026 15:48
@kdaviduik kdaviduik merged commit b27c86b into main Mar 11, 2026
7 checks passed
@kdaviduik kdaviduik deleted the 03-09-fix_remove_firefox_requirement_from_testem_ci_config_and_fix_view_tests branch March 11, 2026 15:49
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.

3 participants