Optimize functional tests
senky opened this issue · 0 comments
senky commented
- Add
disable_all_ads()
tofunctional_base
, but use direct SQL query instead of crawler in loop. - Remove third parameter from
create_ad
infunctional_base
- Remove dependency from
test_adblocker_code_is_present
, because it depends on test of different class - Remove difficult readable dependency from
test_past_end_date_is_not_displayed
- simply create another ad, update it's end date and test it's not present - Rationalize use of
reset_groups()
inhide_group_test
- it needs to be called after every test, so usetearDown()
- Split
acp_test
, because it is too big - Refactor
acp_test
(introduceget_manage_page()
,get_settings_page()
andsubmit_with_error($error_lang)
(maybe we won't need to split the class after that)