Skip to content

Commit

Permalink
try to fix test using time limit
Browse files Browse the repository at this point in the history
  • Loading branch information
MarinaProsche committed Mar 1, 2024
1 parent ed6b745 commit 8297fc7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/selenium_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Run docker-compose-tests
run: |
docker-compose -f docker-compose-tests.yml up
until docker-compose -f docker-compose-tests.yml logs selenium-tests | grep -q "Run"; do
until docker-compose -f docker-compose-tests.yml logs selenium-tests | grep -q "Ran"; do
sleep 60
done
- name: Tests results
Expand Down
2 changes: 1 addition & 1 deletion tests/test_report_load.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def upload_report(self, report_ext):
load_button.click()
obj = self.getDriver().find_element(By.XPATH, '/html/body/div/div[2]/h4/i')
if obj.text == 'Производится проверка файла. Примерное время: 229999.1 секунд (перезагрузите страницу)':
time.sleep(60) #loading need much time because of language.tool
time.sleep(120) #loading need much time because of language.tool
self.getDriver().refresh()
self.getDriver().implicitly_wait(30)
obj = self.getDriver().find_element(By.ID, 'results_table')
Expand Down
2 changes: 1 addition & 1 deletion tests/test_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class VersionTestSelenium(BasicSeleniumTest):

def test_version(self):
self.authorization()
time.sleep(10)
time.sleep(30)
URL = self.getUrl('/version')
self.getDriver().get(URL)
self.getDriver().implicitly_wait(30)
Expand Down

0 comments on commit 8297fc7

Please sign in to comment.