Project

General

Profile

« Previous | Next » 

Revision 4c6a2323

Added by koszko over 1 year ago

make Haketilo buildable again (for Mozilla)

How cool it is to throw away 5755 lines of code...

View differences:

test/unit/test_broadcast.py
18 18
# CC0 1.0 Universal License for more details.
19 19

  
20 20
import pytest
21
from selenium.webdriver.support.ui import WebDriverWait
21 22

  
22 23
from ..script_loader import load_script
23 24
from .utils import broker_js
......
55 56
        window.open(window.location.href, "_blank");
56 57
        window.open(window.location.href, "_blank");
57 58
        ''')
59
    WebDriverWait(driver, 10).until(lambda d: len(d.window_handles) == 3)
58 60
    windows = [*driver.window_handles]
59
    assert len(windows) == 3
60 61

  
61 62
    # Let's first test if a simple message can be successfully broadcasted
62 63
    driver.switch_to.window(windows[0])

Also available in: Unified diff