mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-06 11:37:02 +03:00
Move to controls to make info button visible in selenium test
This commit is contained in:
@@ -202,6 +202,8 @@ async function muteSkipSegment(driver: WebDriver, startTime: number, endTime: nu
|
|||||||
|
|
||||||
async function toggleWhitelist(driver: WebDriver): Promise<void> {
|
async function toggleWhitelist(driver: WebDriver): Promise<void> {
|
||||||
const popupButton = await driver.findElement(By.id("infoButton"));
|
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") {
|
if ((await popupButton.getCssValue("display")) !== "none") {
|
||||||
await driver.actions().move({ origin: popupButton }).perform();
|
await driver.actions().move({ origin: popupButton }).perform();
|
||||||
await popupButton.click();
|
await popupButton.click();
|
||||||
|
|||||||
Reference in New Issue
Block a user