Skip to content

Add volume playwright audio tests #16487

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

docEdub
Copy link
Contributor

@docEdub docEdub commented Apr 14, 2025

No description provided.

@docEdub docEdub enabled auto-merge (squash) April 14, 2025 15:27
@docEdub docEdub requested a review from Copilot April 14, 2025 15:28
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request introduces volume tests for Playwright audio components while refactoring audio type naming to use "StaticSound" and "StreamingSound" for clarity. It also updates tests to use the new Channel enum and adds a helper for creating an abstract sound with its output node.

Reviewed Changes

Copilot reviewed 16 out of 16 changed files in this pull request and generated no comments.

File Description
packages/tools/tests/test/audioV2/utils/audioV2.utils.ts Updates type definitions and adds CreateAbstractSoundAndOutputNodeAsync
packages/tools/tests/test/audioV2/* Updates tests to use "StaticSound", "StreamingSound", and Channel enum instead of raw values
packages/tools/babylonServer/public/audiov2-test.js Refactors sound creation functions, including renaming AddSound to _AddSound and adding _ExpandSource
Comments suppressed due to low confidence (2)

packages/tools/babylonServer/public/audiov2-test.js:13

  • Renaming 'AddSound' to '_AddSound' indicates an intention for this method to be private. Confirm that this change is intentional since external code relying on a public 'AddSound' may be affected.
static _AddSound(sound) {

packages/tools/babylonServer/public/audiov2-test.js:22

  • [nitpick] The _ExpandSource function returns the input as-is when it doesn't match a string or an array. Consider whether additional validation or documentation is needed to clarify this behavior.
static _ExpandSource(source) {

@bjsplat
Copy link
Collaborator

bjsplat commented Apr 14, 2025

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

@bjsplat
Copy link
Collaborator

bjsplat commented Apr 14, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Apr 14, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Apr 14, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Apr 14, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Apr 15, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Apr 15, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Apr 15, 2025

@docEdub docEdub merged commit fa55b83 into BabylonJS:master Apr 15, 2025
16 of 17 checks passed
@docEdub docEdub deleted the 250414-add-volume-playwright-audio-tests branch April 15, 2025 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants