Bug 1861869 - Fix test_videocontrols.html.

MANUAL PUSH: Orange fix CLOSED TREE
This commit is contained in:
Emilio Cobos Álvarez 2024-03-06 16:46:00 +01:00
parent e9b9e6500b
commit aa7a46f8e8

View File

@ -67,7 +67,7 @@ let expectingEventPromise;
async function isMuteButtonMuted() {
const muteButton = getElementWithinVideo(video, "muteButton");
await new Promise(SimpleTest.executeSoon);
return muteButton.getAttribute("muted") === "true";
return muteButton.hasAttribute("muted");
}
async function isVolumeSliderShowingCorrectVolume(expectedVolume) {