Skip to content

Error: Preload assets timed out. #1159

Open
@Blackbaud-JasonBodnar

Description

@Blackbaud-JasonBodnar

Describe the bug
With Chrome Version 134.0.6998.117 (Official Build) (64-bit) on Ubuntu 24.04.2 LTS jasmine times out when checking accessibility:

Error: Timeout - Async function did not complete within 5000ms (set by jasmine.DEFAULT_TIMEOUT_INTERVAL)
	    at <Jasmine>

Shortly afterwards the following warning appears:

WARN LOG: 'Couldn't load preload assets: ', Error: Preload assets timed out.
Error: Preload assets timed out.
    at apply (http://localhost:9876/_karma_webpack_/webpack:/node_modules/axe-core/axe.js:19546:25)
    at apply (http://localhost:9876/_karma_webpack_/webpack:/node_modules/zone.js/fesm2015/zone.js:1809:37)
    at _ZoneDelegate.invokeTask (http://localhost:9876/_karma_webpack_/webpack:/node_modules/zone.js/fesm2015/zone.js:402:33)
    at ProxyZoneSpec.onInvokeTask (http://localhost:9876/_karma_webpack_/webpack:/node_modules/zone.js/fesm2015/zone-testing.js:2112:39)
    at _ZoneDelegate.invokeTask (http://localhost:9876/_karma_webpack_/webpack:/node_modules/zone.js/fesm2015/zone.js:401:38)
    at ZoneImpl.runTask (http://localhost:9876/_karma_webpack_/webpack:/node_modules/zone.js/fesm2015/zone.js:159:47)
    at call (http://localhost:9876/_karma_webpack_/webpack:/node_modules/zone.js/fesm2015/zone.js:483:34)
    at apply (http://localhost:9876/_karma_webpack_/webpack:/node_modules/zone.js/fesm2015/zone.js:472:48)
    at data.args.<computed> (http://localhost:9876/_karma_webpack_/webpack:/node_modules/zone.js/fesm2015/zone.js:1778:32)

To Reproduce

it('should be accessible', async () => {
      jasmine.DEFAULT_TIMEOUT_INTERVAL = 60000;
      fixture.detectChanges();
      await fixture.whenStable();

      await expectAsync(fixture.nativeElement).toBeAccessible();
});

Expected behavior
No timeout error or warning.

Environment (please include versions for all products, browsers, OS, etc used ):

  • Chrome Version 134.0.6998.117
  • "axe-core": "4.10.2"
  • "jasmine-core": "5.1.2"
  • "karma": "6.4.4"
  • "karma-chrome-launcher": "3.2.0"
  • "karma-coverage": "2.2.1"
  • "karma-jasmine": "5.1.0"
  • "karma-spec-reporter": "0.0.36",

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions