Skip to content

Commit fea9165

Browse files
committed
marks and new checks in e2e
Signed-off-by: Churikova Tetiana <churikova.tm@gmail.com>
1 parent 1a98219 commit fea9165

26 files changed

Lines changed: 33 additions & 101 deletions

‎test/appium/pytest.ini‎

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,6 @@ markers =
88
medium: TCs by priority
99
low: TCs by priority
1010

11-
upgrade: TCs by area
12-
chat: TCs by area
13-
chat_management: TCs by area
14-
wallet: TCs by area
15-
logcat: TCs by area
16-
dapps: TCs by area
17-
sign_in: TCs by area
18-
transaction: TCs by area
19-
20-
pr
21-
account
22-
testrail_case_id
23-
api
24-
all
25-
message_reliability
26-
performance
27-
battery_consumption
28-
translations
29-
chatbot
11+
testrail_case_id: case ID in testrail
12+
flaky: flaky tests for re-run if necessary
13+
transaction: all cases that are related to transaction completion in Ropsten network

‎test/appium/support/testrail_report.py‎

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def add_run(self, run_name):
6969
request_body = {'suite_id': self.suite_id,
7070
'name': run_name,
7171
'milestone_id': self.actual_milestone_id,
72-
'case_ids': self.get_regression_cases(is_pr='PR-' in run_name),
72+
'case_ids': self.get_regression_cases(),
7373
'include_all': False}
7474
run = self.post('add_run/%s' % self.project_id, request_body)
7575
self.run_id = run['id']
@@ -80,19 +80,16 @@ def get_cases(self, section_ids):
8080
test_cases.append(self.get('get_cases/%s&suite_id=%s&section_id=%s' % (self.project_id, self.suite_id, section_id)))
8181
return itertools.chain.from_iterable(test_cases)
8282

83-
def get_regression_cases(self, is_pr=False):
83+
def get_regression_cases(self):
8484
test_cases = dict()
8585
test_cases['critical'] = 734
8686
test_cases['high'] = 735
8787
test_cases['medium'] = 736
8888
test_cases['low'] = 737
8989
case_ids = list()
90-
if is_pr:
91-
case_ids = [case['id'] for case in self.get_cases([test_cases['critical'], test_cases['high']])]
92-
else:
93-
for phase in test_cases:
94-
for case in self.get_cases([test_cases[phase]]):
95-
case_ids.append(case['id'])
90+
for phase in test_cases:
91+
for case in self.get_cases([test_cases[phase]]):
92+
case_ids.append(case['id'])
9693
return case_ids
9794

9895
def add_results(self):

‎test/appium/tests/atomic/account_management/test_create_account.py‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
from tests.users import basic_user
77

88

9-
@marks.all
10-
@marks.account
119
class TestCreateAccount(SingleDeviceTestCase):
1210

1311
@marks.testrail_id(5356)
@@ -122,7 +120,6 @@ def test_create_account_short_and_mismatch_password(self):
122120

123121
@marks.testrail_id(5414)
124122
@marks.critical
125-
@marks.logcat
126123
def test_password_in_logcat_creating_account(self):
127124
sign_in = SignInView(self.driver)
128125
sign_in.create_user(password=unique_password)

‎test/appium/tests/atomic/account_management/test_keycard.py‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
from tests.users import basic_user, transaction_senders
66

77

8-
@marks.all
9-
@marks.account
108
class TestCreateAccount(SingleDeviceTestCase):
119

1210
@marks.testrail_id(5689)

‎test/appium/tests/atomic/account_management/test_profile.py‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
from views.sign_in_view import SignInView
99

1010

11-
@marks.all
12-
@marks.account
1311
class TestProfileSingleDevice(SingleDeviceTestCase):
1412

1513
@marks.testrail_id(5302)
@@ -449,7 +447,6 @@ def test_add_custom_network(self):
449447
profile_view.network_settings_button.scroll_to_element(10, 'up')
450448
profile_view.find_text_part('custom_ropsten')
451449

452-
@marks.logcat
453450
@marks.critical
454451
@marks.testrail_id(5419)
455452
def test_logcat_backup_recovery_phrase(self):
@@ -492,7 +489,6 @@ def test_need_help_section(self):
492489

493490
@marks.testrail_id(5382)
494491
@marks.high
495-
@marks.battery_consumption
496492
def test_contact_profile_view(self):
497493
sign_in_view = SignInView(self.driver)
498494
sign_in_view.create_user()
@@ -717,8 +713,6 @@ def test_set_primary_ens_custom_domain(self):
717713
self.errors.verify_no_errors()
718714

719715

720-
@marks.all
721-
@marks.account
722716
class TestProfileMultipleDevice(MultipleDeviceTestCase):
723717

724718
@marks.testrail_id(5432)

‎test/appium/tests/atomic/account_management/test_recover.py‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
from views.recover_access_view import RecoverAccessView
99

1010

11-
@marks.all
12-
@marks.account
1311
class TestRecoverAccountSingleDevice(SingleDeviceTestCase):
1412

1513
@marks.testrail_id(6231)
@@ -27,7 +25,6 @@ def test_no_backup_seedphrase_option_for_recovered_account(self):
2725
self.errors.append('Back up seed phrase option is active for recovered account!')
2826
self.errors.verify_no_errors()
2927

30-
@marks.logcat
3128
@marks.testrail_id(5366)
3229
@marks.critical
3330
def test_logcat_recovering_account(self):

‎test/appium/tests/atomic/account_management/test_sign_in.py‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
from views.sign_in_view import SignInView
66

77

8-
@marks.all
9-
@marks.sign_in
108
class TestSignIn(SingleDeviceTestCase):
119

1210
@marks.testrail_id(5312)
@@ -39,7 +37,6 @@ def test_login_with_incorrect_password(self):
3937
sign_in.sign_in_button.click()
4038
sign_in.find_full_text("Wrong password")
4139

42-
@marks.logcat
4340
@marks.testrail_id(5415)
4441
@marks.critical
4542
def test_password_in_logcat_sign_in(self):

‎test/appium/tests/atomic/account_management/test_wallet_management.py‎

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
import time
99

1010

11-
@marks.all
12-
@marks.account
1311
class TestWalletManagement(SingleDeviceTestCase):
1412

1513
@marks.testrail_id(5335)
@@ -232,12 +230,11 @@ def test_collectible_from_wallet_opens_in_browser_view(self):
232230
wallet_view.set_up_wallet()
233231
wallet_view.accounts_status_account.click()
234232
wallet_view.collectibles_button.click()
235-
wallet_view.cryptokitties_in_collectibles_button.wait_for_element(60)
236-
wallet_view.cryptokitties_in_collectibles_button.click()
233+
wallet_view.cryptokitties_in_collectibles_button.wait_and_click(60)
237234
web_view = wallet_view.view_in_cryptokitties_button.click()
238-
web_view.element_by_text('cryptokitties.co').click()
235+
web_view.element_by_text('cryptokitties.co').wait_and_click()
239236
cryptokitty_link = 'https://www.cryptokitties.co/kitty/1338226'
240-
if not web_view.element_by_text(cryptokitty_link).is_element_displayed():
237+
if not web_view.element_by_text(cryptokitty_link).is_element_displayed(60):
241238
self.driver.fail('Cryptokitty detail page not opened')
242239

243240

‎test/appium/tests/atomic/chats/test_chats_management.py‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
from views.chat_view import ChatView
88

99

10-
@marks.chat
1110
class TestChatManagement(SingleDeviceTestCase):
1211

1312
@marks.testrail_id(5426)
@@ -520,7 +519,6 @@ def test_share_user_profile_url_public_chat(self):
520519
self.errors.verify_no_errors()
521520

522521

523-
@marks.chat
524522
class TestChatManagementMultipleDevice(MultipleDeviceTestCase):
525523

526524
@marks.testrail_id(5332)

‎test/appium/tests/atomic/chats/test_commands.py‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
from views.sign_in_view import SignInView
88

99

10-
@marks.chat
1110
@marks.transaction
1211
class TestCommandsMultipleDevices(MultipleDeviceTestCase):
1312

@@ -214,12 +213,12 @@ def test_request_and_receive_stt_in_1_1_chat_offline(self):
214213

215214
@marks.testrail_id(6265)
216215
@marks.critical
217-
def test_decline_transactions_in_1_1_chat(self):
216+
def test_decline_transactions_in_1_1_chat_push_notification_changing_state(self):
218217
recipient = transaction_recipients['B']
219218
sender = transaction_senders['B']
220219
self.create_drivers(2)
221220
device_1, device_2 = SignInView(self.drivers[0]), SignInView(self.drivers[1])
222-
home_1 = device_1.recover_access(passphrase=sender['passphrase'])
221+
home_1 = device_1.recover_access(passphrase=sender['passphrase'], enable_notifications=True)
223222
home_2 = device_2.recover_access(passphrase=recipient['passphrase'])
224223
wallet_1, wallet_2 = home_1.wallet_button.click(), home_2.wallet_button.click()
225224
for wallet in wallet_1, wallet_2:
@@ -236,9 +235,14 @@ def test_decline_transactions_in_1_1_chat(self):
236235
send_transaction.confirm()
237236
send_transaction.sign_transaction_button.click()
238237
chat_1_sender_message = chat_1.chat_element_by_text('↑ Outgoing transaction')
238+
home_1.click_system_home_button()
239+
240+
239241
chat_2 = home_2.get_chat(sender['username']).click()
240242
chat_2_receiver_message = chat_2.chat_element_by_text('↓ Incoming transaction')
241243
chat_2_receiver_message.decline_transaction.click()
244+
home_1.open_notification_bar()
245+
home_1.element_by_text_part('Request address for transaction declined').wait_and_click()
242246
for message in chat_1_sender_message, chat_2_receiver_message:
243247
if not message.contains_text('Transaction declined', 20):
244248
self.errors.append('Message status is not updated to "Transaction declined" for transaction before '
@@ -260,7 +264,6 @@ def test_decline_transactions_in_1_1_chat(self):
260264
self.errors.verify_no_errors()
261265

262266

263-
@marks.chat
264267
@marks.transaction
265268
class TestCommandsSingleDevices(SingleDeviceTestCase):
266269

0 commit comments

Comments
 (0)