diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/selenium.test.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/selenium.test.ts b/test/selenium.test.ts index 600408a9..6a0db09a 100644 --- a/test/selenium.test.ts +++ b/test/selenium.test.ts @@ -202,6 +202,8 @@ async function muteSkipSegment(driver: WebDriver, startTime: number, endTime: nu async function toggleWhitelist(driver: WebDriver): Promise<void> { const popupButton = await driver.findElement(By.id("infoButton")); + const rightControls = await driver.findElement(By.css(".ytp-right-controls")); + await driver.actions().move({ origin: rightControls }).perform(); if ((await popupButton.getCssValue("display")) !== "none") { await driver.actions().move({ origin: popupButton }).perform(); await popupButton.click(); |