diff options
author | Ajay <[email protected]> | 2022-09-05 00:32:04 -0400 |
---|---|---|
committer | Ajay <[email protected]> | 2022-09-05 00:32:04 -0400 |
commit | c06b7857f8ba4da4862533416b0ffb157f06044a (patch) | |
tree | 15cb774535f332227f65942108607e64925405f5 | |
parent | e798cfdfe3c7caf836e030678c70caaedae9297e (diff) | |
download | SponsorBlock-c06b7857f8ba4da4862533416b0ffb157f06044a.tar.gz SponsorBlock-c06b7857f8ba4da4862533416b0ffb157f06044a.zip |
Move to controls to make info button visible in selenium test5.0.1
-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(); |