mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
test(sandbox): adapt playback rate E2E to menu UX (#1545)
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -185,6 +185,19 @@ export class PlayerPage {
|
||||
await this.page.mouse.move(x, y);
|
||||
}
|
||||
|
||||
/**
|
||||
* Opens the playback rate menu and selects the first option that differs from the current rate.
|
||||
* Skins expose rate via a menu (not cycle-on-trigger).
|
||||
*/
|
||||
async selectAlternativePlaybackRate(): Promise<void> {
|
||||
await this.playbackRateButton.click();
|
||||
const option = this.page
|
||||
.locator(`${SELECTORS.playbackRateMenuPanel} [role="menuitemradio"][aria-checked="false"]`)
|
||||
.first();
|
||||
await expect(option).toBeVisible({ timeout: 5_000 });
|
||||
await option.click();
|
||||
}
|
||||
|
||||
/** Hover over the player area to trigger user-active state and show controls. */
|
||||
async showControls(): Promise<void> {
|
||||
// Use the play button as anchor — it's always inside the player
|
||||
|
||||
Reference in New Issue
Block a user