from config import Config


def test_stf_3_5_3_pos(fixture):
    seed = fixture.common.get_seed()
    fixture.stf.open_stf_exercise('3-5-3', seed)
    fixture.stf.click_button_by_tag_name(fixture.stf.find_attribute_value())
    assert fixture.stf.get_solution() == Config.TEST_PASS_TEXT
    fixture.common.back_to_main_page()


def test_stf_3_5_3_neg(fixture):
    seed = fixture.common.get_seed()
    fixture.stf.fake_click_button_by_tag_name(fixture.stf.find_attribute_value())
    assert fixture.stf.get_solution() == Config.TEST_FAIL_TEXT
    fixture.common.back_to_main_page()


__author__ = 'GiSDeCain'
