Skip to content

Commit 375cf99

Browse files
mihar-22claude
andcommitted
fix(packages): resolve typecheck failures in button tests and cast feature
- Add missing `available` field to test helpers for FullscreenButtonState and PiPButtonState - Pass `media` argument to `exitFullscreen()` in cast feature (signature changed) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 16e196f commit 375cf99

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

packages/core/src/core/ui/fullscreen-button/tests/fullscreen-button-core.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ function createState(overrides: Partial<FullscreenButtonState> = {}): Fullscreen
1919
return {
2020
fullscreen: false,
2121
availability: 'available',
22+
available: true,
2223
label: '',
2324
...overrides,
2425
};

packages/core/src/core/ui/pip-button/tests/pip-button-core.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ function createState(overrides: Partial<PiPButtonState> = {}): PiPButtonState {
1919
return {
2020
pip: false,
2121
availability: 'available',
22+
available: true,
2223
label: '',
2324
...overrides,
2425
};

packages/core/src/dom/store/features/cast.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export const castFeature = definePlayerFeature({
2020
}
2121

2222
if (isFullscreenElement(container, media)) {
23-
await exitFullscreen();
23+
await exitFullscreen(media);
2424
}
2525

2626
return requestCast(media);

0 commit comments

Comments
 (0)