Example #1
0
def test_get_firefox_send_to_device_fails_when_missing_required_fields(
        base_url, selenium):
    page = FirefoxMobilePage(selenium, base_url).open()
    modal = page.click_get_firefox_button()
    assert modal.is_displayed
    with pytest.raises(TimeoutException):
        page.send_to_device.click_send()
Example #2
0
def test_get_firefox_send_to_device_success(base_url, selenium):
    page = FirefoxMobilePage(selenium, base_url).open()
    modal = page.click_get_firefox_button()
    assert modal.is_displayed
    assert not page.is_firefox_qr_code_displayed
    send_to_device = page.send_to_device
    send_to_device.type_email('*****@*****.**')
    send_to_device.click_send()
    assert send_to_device.send_successful
Example #3
0
def test_get_firefox_qr_code(base_url, selenium):
    page = FirefoxMobilePage(selenium, base_url, locale='sv-SE').open()
    modal = page.click_get_firefox_button()
    assert modal.is_displayed
    assert not page.send_to_device.is_displayed
    assert page.is_firefox_qr_code_displayed