test(webui): add audio comment seek roundtrip E2E test case

This commit is contained in:
yiling
2026-07-05 15:37:30 +08:00
parent f24c8afa3d
commit 8d336836cc
2 changed files with 74 additions and 0 deletions
@@ -51,6 +51,11 @@ export class CommentSeekPage {
await this.waitUntilReady()
}
async gotoVariant(variant: string): Promise<void> {
await this.page.goto(`/?variant=${encodeURIComponent(variant)}`)
await this.waitUntilReady()
}
/** Wait until the video.js engine has metadata and a usable frame readout. */
async waitUntilReady(): Promise<void> {
await this.video.waitFor({ state: 'attached' })