Skip to content

Commit

Permalink
e2e: changed test order
Browse files Browse the repository at this point in the history
  • Loading branch information
yevh-berdnyk committed Nov 27, 2023
1 parent e6a7c42 commit 2d18ed1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
11 changes: 5 additions & 6 deletions test/appium/tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import os
import re
import signal
import requests
import time
from contextlib import contextmanager
from dataclasses import dataclass
from datetime import datetime
from http.client import RemoteDisconnected
from os import environ
import time

import pytest
import requests
from _pytest.runner import runtestprotocol
from requests.exceptions import ConnectionError as c_er

Expand Down Expand Up @@ -182,13 +182,12 @@ class UploadApkException(Exception):

def _upload_and_check_response(apk_file_path):
with _upload_time_limit(1000):
with open(apk_file_path, 'rb') as f:
resp = sauce.storage._session.request('post', '/v1/storage/upload', files={'payload': f})
resp = sauce.storage.upload(apk_file_path)

try:
if resp['item']['name'] != test_suite_data.apk_name:
if resp.name != test_suite_data.apk_name:
raise UploadApkException("Incorrect apk was uploaded to Sauce storage, response:\n%s" % resp)
except KeyError:
except AttributeError:
raise UploadApkException("Error when uploading apk to Sauce storage, response:\n%s" % resp)


Expand Down
6 changes: 3 additions & 3 deletions test/appium/tests/critical/chats/test_1_1_public_chats.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,13 +160,13 @@ def test_1_1_chat_emoji_send_reply_and_open_link(self):

self.home_2.just_fyi("Check 'Open in Status' option")
# url_to_open = 'http://status.app'
url_to_open = 'https://github.com/'
url_to_open = 'https://www.alchemy.com/'
self.chat_1.send_message(url_to_open)
chat_element = self.chat_2.chat_element_by_text(url_to_open)
if chat_element.is_element_displayed(120):
chat_element.click_on_link_inside_message_body()
web_view = self.chat_2.open_in_status_button.click()
if not web_view.element_by_text("Let’s build from here").is_element_displayed(60):
if not web_view.element_by_text("The most reliable way to build web3 apps").is_element_displayed(60):
self.errors.append('URL was not opened from 1-1 chat')
else:
self.errors.append("Message with URL was not received")
Expand Down Expand Up @@ -516,7 +516,7 @@ def test_1_1_chat_text_message_delete_push_disappear(self):
self.errors.verify_no_errors()


@pytest.mark.xdist_group(name="new_seven_2")
@pytest.mark.xdist_group(name="new_six_2")
@marks.new_ui_critical
class TestOneToOneChatMultipleSharedDevicesNewUiTwo(MultipleSharedDeviceTestCase):

Expand Down

0 comments on commit 2d18ed1

Please sign in to comment.