Skip to content

feat: observe resize segment for better indicator display #2267

feat: observe resize segment for better indicator display

feat: observe resize segment for better indicator display #2267

Triggered via pull request January 21, 2025 06:51
Status Failure
Total duration 1m 30s
Artifacts

checks.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

4 errors and 1 warning
src/tests/lib/components/Segment.spec.ts > Segment > should render three segments: src/lib/components/Segment.svelte#L88
ReferenceError: ResizeObserver is not defined ❯ resize src/lib/components/Segment.svelte:88:5 ❯ Object.$$self.$$.update src/lib/components/Segment.svelte:92:15 ❯ update node_modules/svelte/src/runtime/internal/scheduler.js:125:6 ❯ Module.flush node_modules/svelte/src/runtime/internal/scheduler.js:88:5 ❯ Module.init node_modules/svelte/src/runtime/internal/Component.js:159:25 ❯ new SegmentTest src/tests/lib/components/SegmentTest.svelte:375:25 ❯ Module.mount node_modules/@testing-library/svelte/src/core/legacy.js:25:21 ❯ Module.render node_modules/@testing-library/svelte/src/pure.js:71:43 ❯ renderSegment src/tests/lib/components/Segment.spec.ts:15:5 ❯ src/tests/lib/components/Segment.spec.ts:22:32
src/tests/lib/components/Segment.spec.ts > Segment > should have first segment selected: src/lib/components/Segment.svelte#L88
ReferenceError: ResizeObserver is not defined ❯ resize src/lib/components/Segment.svelte:88:5 ❯ Object.$$self.$$.update src/lib/components/Segment.svelte:92:15 ❯ update node_modules/svelte/src/runtime/internal/scheduler.js:125:6 ❯ Module.flush node_modules/svelte/src/runtime/internal/scheduler.js:88:5 ❯ Module.init node_modules/svelte/src/runtime/internal/Component.js:159:25 ❯ new SegmentTest src/tests/lib/components/SegmentTest.svelte:375:25 ❯ Module.mount node_modules/@testing-library/svelte/src/core/legacy.js:25:21 ❯ Module.render node_modules/@testing-library/svelte/src/pure.js:71:43 ❯ renderSegment src/tests/lib/components/Segment.spec.ts:15:5 ❯ src/tests/lib/components/Segment.spec.ts:28:27
src/tests/lib/components/Segment.spec.ts > Segment > should select second button: src/lib/components/Segment.svelte#L88
ReferenceError: ResizeObserver is not defined ❯ resize src/lib/components/Segment.svelte:88:5 ❯ Object.$$self.$$.update src/lib/components/Segment.svelte:92:15 ❯ update node_modules/svelte/src/runtime/internal/scheduler.js:125:6 ❯ Module.flush node_modules/svelte/src/runtime/internal/scheduler.js:88:5 ❯ Module.init node_modules/svelte/src/runtime/internal/Component.js:159:25 ❯ new SegmentTest src/tests/lib/components/SegmentTest.svelte:375:25 ❯ Module.mount node_modules/@testing-library/svelte/src/core/legacy.js:25:21 ❯ Module.render node_modules/@testing-library/svelte/src/pure.js:71:43 ❯ renderSegment src/tests/lib/components/Segment.spec.ts:15:5 ❯ src/tests/lib/components/Segment.spec.ts:38:27
test
Process completed with exit code 1.
e2e
Your workflow is using a version of actions/cache that is scheduled for deprecation, actions/cache@v2. Please update your workflow to use either v3 or v4 of actions/cache to avoid interruptions. Learn more: https://github.blog/changelog/2024-12-05-notice-of-upcoming-releases-and-breaking-changes-for-github-actions/#actions-cache-v1-v2-and-actions-toolkit-cache-package-closing-down