From c06b7857f8ba4da4862533416b0ffb157f06044a Mon Sep 17 00:00:00 2001 From: Ajay Date: Mon, 5 Sep 2022 00:32:04 -0400 Subject: [PATCH] Move to controls to make info button visible in selenium test --- test/selenium.test.ts | 2 ++ 1 file changed, 2 insertions(+) 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 { 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();