aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorAjay <[email protected]>2022-09-05 00:32:04 -0400
committerAjay <[email protected]>2022-09-05 00:32:04 -0400
commitc06b7857f8ba4da4862533416b0ffb157f06044a (patch)
tree15cb774535f332227f65942108607e64925405f5 /test
parente798cfdfe3c7caf836e030678c70caaedae9297e (diff)
downloadSponsorBlock-c06b7857f8ba4da4862533416b0ffb157f06044a.tar.gz
SponsorBlock-c06b7857f8ba4da4862533416b0ffb157f06044a.zip
Move to controls to make info button visible in selenium test5.0.1
Diffstat (limited to 'test')
-rw-r--r--test/selenium.test.ts2
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();