From aab5c4e3f721431591f3709cecb2e2e58ab9774e Mon Sep 17 00:00:00 2001 From: Tiago Ferraz Date: Mon, 23 Mar 2015 10:27:39 -0300 Subject: New test that use checkboxes. Removal of hamcrest lib, code refactoring. A new test was created to use Pixelated checkboxes and the buttons at the top. Also the lib hamcrest was removed and code refactored to be more pythonic. A new method after_step will log information in case of step failures. --- service/test/functional/features/steps/tag_list.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'service/test/functional/features/steps/tag_list.py') diff --git a/service/test/functional/features/steps/tag_list.py b/service/test/functional/features/steps/tag_list.py index 348b121a..930b74d1 100644 --- a/service/test/functional/features/steps/tag_list.py +++ b/service/test/functional/features/steps/tag_list.py @@ -43,3 +43,12 @@ def impl(context, tag): e = find_element_by_id(context, 'tag-%s' % tag.lower()) e.click() + + +@when('I am in \'{tag}\'') +def impl(context, tag): + expand_side_nav(context) + + wait_until_element_is_visible_by_locator(context, (By.ID, 'tag-%s' % tag), 20) + e = find_element_by_id(context, 'tag-%s' % tag) + assert "selected" in e.get_attribute("class") \ No newline at end of file -- cgit v1.2.3