Skip to content

Commit 45047de

Browse files
author
Bernhard Posselt
committed
fix race condition part 2
1 parent b0a1b93 commit 45047de

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

nextcloudappstore/core/tests/e2e/test_change_language.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
from selenium.webdriver.support.expected_conditions import staleness_of
12
from selenium.webdriver.support.select import Select
23
from selenium.webdriver.support.wait import WebDriverWait
34

5+
from nextcloudappstore.core.tests.e2e import SELENIUM_WAIT_SEC
46
from nextcloudappstore.core.tests.e2e.base import BaseStoreTest
57

68
from django.test import tag
@@ -17,6 +19,6 @@ def test_change_lang(self):
1719
lang.select_by_value('de')
1820
elem.submit()
1921

20-
self.go_to('user:account-change-language')
22+
WebDriverWait(self.selenium, SELENIUM_WAIT_SEC).until(staleness_of(elem))
2123
account_link = self.findNavigationLink('user:account')
2224
self.assertEqual('Konto', account_link.text)

0 commit comments

Comments
 (0)