summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--service/test/functional/features/environment.py4
-rw-r--r--service/test/functional/features/steps/common.py2
-rw-r--r--service/test/functional/features/steps/mail_list.py8
-rw-r--r--service/test/functional/features/steps/mail_view.py3
-rw-r--r--service/test/functional/features/steps/tag_list.py2
5 files changed, 8 insertions, 11 deletions
diff --git a/service/test/functional/features/environment.py b/service/test/functional/features/environment.py
index 6ef48376..5dab437f 100644
--- a/service/test/functional/features/environment.py
+++ b/service/test/functional/features/environment.py
@@ -50,8 +50,8 @@ def before_feature(context, feature):
def after_step(context, step):
if step.status == 'failed':
id = str(uuid.uuid4())
- context.browser.save_screenshot('failed '+str(step.name)+'_'+id+".png")
- save_source(context, 'failed '+str(step.name)+'_'+id+".html")
+ context.browser.save_screenshot('failed ' + str(step.name) + '_' + id + ".png")
+ save_source(context, 'failed ' + str(step.name) + '_' + id + ".html")
def after_feature(context, feature):
diff --git a/service/test/functional/features/steps/common.py b/service/test/functional/features/steps/common.py
index ee2a6f9a..4d5a0ef7 100644
--- a/service/test/functional/features/steps/common.py
+++ b/service/test/functional/features/steps/common.py
@@ -135,4 +135,4 @@ def get_console_log(context):
def create_email(context):
input_mail = MailBuilder().build_input_mail()
- context.client.add_mail_to_inbox(input_mail) \ No newline at end of file
+ context.client.add_mail_to_inbox(input_mail)
diff --git a/service/test/functional/features/steps/mail_list.py b/service/test/functional/features/steps/mail_list.py
index 74bfe9f2..d467e7ac 100644
--- a/service/test/functional/features/steps/mail_list.py
+++ b/service/test/functional/features/steps/mail_list.py
@@ -22,7 +22,6 @@ def find_current_mail(context):
return find_element_by_id(context, '%s' % context.current_mail_id)
-
def check_current_mail_is_visible(context):
find_current_mail(context)
@@ -109,10 +108,12 @@ def impl(context):
def impl(context):
find_element_by_id(context, 'toggle-check-all-emails').click()
+
@when('I delete them permanently')
def impl(context):
find_element_by_id(context, 'delete-selected').click()
+
@then('I should not see any email')
def impl(context):
try:
@@ -121,8 +122,3 @@ def impl(context):
assert True
except:
assert False
-
-
-
-
-
diff --git a/service/test/functional/features/steps/mail_view.py b/service/test/functional/features/steps/mail_view.py
index 5755f555..7a7c34b8 100644
--- a/service/test/functional/features/steps/mail_view.py
+++ b/service/test/functional/features/steps/mail_view.py
@@ -54,7 +54,8 @@ def impl(context):
context.reply_subject = reply_subject(context)
click_button(context, 'Send')
-#NOT BEING USED
+
+# NOT BEING USED
@then('I see if the mail has html content')
def impl(context):
e = find_element_by_css_selector(context, '#mail-view .bodyArea')
diff --git a/service/test/functional/features/steps/tag_list.py b/service/test/functional/features/steps/tag_list.py
index 930b74d1..8e4db470 100644
--- a/service/test/functional/features/steps/tag_list.py
+++ b/service/test/functional/features/steps/tag_list.py
@@ -51,4 +51,4 @@ def impl(context, tag):
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
+ assert "selected" in e.get_attribute("class")