Example #1
0
def test_fully_exit_fullscreen(session):
    session.window.fullscreen()
    assert is_fullscreen(session)

    response = maximize(session)
    assert_success(response)
    assert not is_fullscreen(session)
Example #2
0
def test_fully_exit_fullscreen(session):
    session.window.fullscreen()
    assert is_fullscreen(session)

    response = maximize(session)
    assert_success(response)
    assert not is_fullscreen(session)
Example #3
0
def test_fully_exit_fullscreen(session):
    session.window.fullscreen()
    assert is_fullscreen(session)

    response = minimize(session)
    assert_success(response)
    assert not is_fullscreen(session)
    assert document_hidden(session)
Example #4
0
def test_fully_exit_fullscreen(session):
    session.window.fullscreen()
    assert is_fullscreen(session)

    response = set_window_rect(session, {"width": 400, "height": 400})
    value = assert_success(response)
    assert value["width"] == 400
    assert value["height"] == 400

    assert not is_fullscreen(session)
Example #5
0
def test_fullscreen_twice_is_idempotent(session):
    assert not is_fullscreen(session)

    first_response = fullscreen(session)
    assert_success(first_response)
    assert is_fullscreen(session)

    second_response = fullscreen(session)
    assert_success(second_response)
    assert is_fullscreen(session)
Example #6
0
def test_fullscreen_twice_is_idempotent(session):
    assert not is_fullscreen(session)

    first_response = fullscreen(session)
    assert_success(first_response)
    assert is_fullscreen(session)

    second_response = fullscreen(session)
    assert_success(second_response)
    assert is_fullscreen(session)
Example #7
0
def test_fully_exit_fullscreen(session):
    session.window.fullscreen()
    assert is_fullscreen(session)

    response = set_window_rect(session, {"width": 400, "height": 400})
    value = assert_success(response)
    assert value["width"] == 400
    assert value["height"] == 400

    assert not is_fullscreen(session)
Example #8
0
    def check_user_prompt_closed_with_exception(dialog_type, retval):
        assert not is_fullscreen(session)

        create_dialog(dialog_type, text=dialog_type)

        response = fullscreen(session)
        assert_error(response, "unexpected alert open")

        assert_dialog_handled(session, expected_text=dialog_type, expected_retval=retval)
        assert not is_fullscreen(session)
Example #9
0
    def check_user_prompt_closed_without_exception(dialog_type, retval):
        assert not is_fullscreen(session)

        create_dialog(dialog_type, text=dialog_type)

        response = fullscreen(session)
        assert_success(response)

        assert_dialog_handled(session, expected_text=dialog_type, expected_retval=retval)
        assert is_fullscreen(session)
Example #10
0
    def check_user_prompt_not_closed_but_exception(dialog_type):
        assert not is_fullscreen(session)

        create_dialog(dialog_type, text=dialog_type)

        response = fullscreen(session)
        assert_error(response, "unexpected alert open")

        assert session.alert.text == dialog_type
        session.alert.dismiss()

        assert not is_fullscreen(session)
Example #11
0
def test_stress(session, i):
    assert not is_fullscreen(session)
    response = fullscreen_window(session)
    assert_success(response)
    assert is_fullscreen(session)
Example #12
0
def test_fullscreen(session):
    response = fullscreen(session)
    assert_success(response)

    assert is_fullscreen(session)
Example #13
0
def test_fullscreen(session):
    response = fullscreen(session)
    assert_success(response)

    assert is_fullscreen(session)