Skip to content
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

[Working Draft] Introduce Playwright test framework #368

Closed
wants to merge 50 commits into from

Conversation

terryzfeng
Copy link
Collaborator

@terryzfeng terryzfeng commented Jun 11, 2024

Preparing Playwright Test Framework for AudioWorklet Testing

Tests written here src/tests/playwright (.spec.ts)
Test pages are in src/tests/playwrights/pages

More documentation is written here
https://docs.google.com/document/d/1e7G9jc4kuVZWvjylTtFE76DzQBsOG6lZSFmV19Kc5cY/edit#heading=h.wb3akxg1nco

@terryzfeng
Copy link
Collaborator Author

terryzfeng commented Jun 11, 2024

I haven't yet figured out how to manage multiple versions of Chromium through Playwright, just have the latest Chromium build I believe.

@terryzfeng terryzfeng linked an issue Jun 11, 2024 that may be closed by this pull request
Kizjkre and others added 5 commits June 25, 2024 17:26
Co-authored-by: terryzfeng <terryzfeng@users.noreply.github.com>
…ffline audio buffer comparison

Co-authored-by: kizjkre <kizjkre@users.noreply.github.com>
feat: add beCloseTo impl

feat: impl buffer comparison and graph evaluation

refactor: realtimeSine test, recorder-main, etc.

test: add dsp graph eval test
Co-authored-by: terryzfeng <terryzfeng@users.noreply.github.com>
@mjwilson-google mjwilson-google added the gsoc24 Google Summer of Code 2024 label Jun 28, 2024
Copy link
Member

@hoch hoch left a comment

Choose a reason for hiding this comment

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

This looks great in general! I glanced 2/3 of files in this PR.

One recommendation - many comments and many files usually mean that we need to narrow the scope of the PR. Can we keep this PR for the iteration, and tease out a small part of this and focus on it? That will definitely make the review/landing faster.

.github/workflows/playwright.yml Show resolved Hide resolved
.gitignore Show resolved Hide resolved
playwright.config.ts Outdated Show resolved Hide resolved
playwright.config.ts Outdated Show resolved Hide resolved
src/tests/playwright/pages/dsp-graph-evaluation.html Outdated Show resolved Hide resolved
src/tests/playwright/pages/perf-gain.html Outdated Show resolved Hide resolved
src/tests/playwright/pages/perf-gain.html Outdated Show resolved Hide resolved
src/tests/playwright/pages/perf-gain.html Outdated Show resolved Hide resolved
@terryzfeng
Copy link
Collaborator Author

This looks great in general! I glanced 2/3 of files in this PR.

One recommendation - many comments and many files usually mean that we need to narrow the scope of the PR. Can we keep this PR for the iteration, and tease out a small part of this and focus on it? That will definitely make the review/landing faster.

I totally agree that this PR is much too big and quite complex. Thank you for taking the time to look at so much of it! I'm happy to remove extraneous features/functionality from this MVP. What's the best way to tease out a small part of this? With that, I think we would be able to wrap it up nicely this week!

@hoch
Copy link
Member

hoch commented Jul 8, 2024

For the first PR, how about focusing on src/tests/playwright/pages/realtime-sine.html and dependencies for it?

terryzfeng and others added 9 commits July 8, 2024 16:46
Co-authored-by: terryzfeng <terryzfeng@users.noreply.github.com>
Co-authored-by: Kizjkre <kizjkre@users.noreply.github.com>
Co-authored-by: terryzfeng <terryzfeng@users.noreply.github.com>
Co-authored-by: terryzfeng <terryzfeng@users.noreply.github.com>
@Kizjkre Kizjkre marked this pull request as draft July 10, 2024 00:36
@hoch hoch changed the title Create Playwright Test Framework [Working Draft] Introduce Playwright test framework Jul 10, 2024
@Kizjkre Kizjkre closed this Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gsoc24 Google Summer of Code 2024
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Research various JS testing frameworks
4 participants