Bug 50982 - 86_selenium.137_appcenter fails on member and backup
86_selenium.137_appcenter fails on member and backup
Status: NEW
Product: UCS
Classification: Unclassified
Component: App Center
UCS 4.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: Jannik Ahlers
App Center maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2020-03-20 17:21 CET by Jannik Ahlers
Modified: 2020-03-24 17:23 CET (History)
0 users

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments
error (106.86 KB, image/png)
2020-03-20 17:21 CET, Jannik Ahlers
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jannik Ahlers univentionstaff 2020-03-20 17:21:32 CET
Created attachment 10317 [details]
error

[2020-03-20 04:34:31.382649]   File "137_appcenter", line 32, in <module>
[2020-03-20 04:34:31.382957]     umc_tester.test_umc()
[2020-03-20 04:34:31.382999]   File "137_appcenter", line 21, in test_umc
[2020-03-20 04:34:31.383051]     self.appcenter.install_app('dudle')
[2020-03-20 04:34:31.383085]   File "/usr/lib/python2.7/dist-packages/univention/testing/selenium/appcenter.py", line 107, in install_app
[2020-03-20 04:34:31.383461]     self.selenium.wait_for_text(_('Installing'))
[2020-03-20 04:34:31.383504]   File "/usr/lib/python2.7/dist-packages/univention/testing/selenium/checks_and_waits.py", line 51, in wait_for_text
[2020-03-20 04:34:31.383680]     self.get_all_visible_elements, 'waited %s seconds for text %r' % (timeout, text)
[2020-03-20 04:34:31.383718]   File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/support/wait.py", line 80, in until
[2020-03-20 04:34:31.385314]     raise TimeoutException(message, screen, stacktrace)
[2020-03-20 04:34:31.385473] selenium.common.exceptions.TimeoutException: Message: waited 60 seconds for text 'Installing'
[2020-03-20 04:34:31.385507] 

Looking at the screenshot from the test, it seems that some text does not appear in english. The test only looks for english text "Installing". The status information gets sent from the backend, which makes its translation decisions based on the system's locale. I believe this isn't a bug, but a design decision.

The mystery is why this test only fails on member. My assumptions:
- Setup differences
- Tests that ran before changed something, the selenium tests get executed on the master part II test, so some tests run on the member that wont on the master.
Comment 1 Jannik Ahlers univentionstaff 2020-03-23 09:09:36 CET
0424af254a Bug #50982: fix 86_selenium.137_appcenter on member and backup

Successful build
Package: ucs-test
Version: 9.0.3-180A~4.4.0.202003230903
Branch: ucs_4.4-0
Scope: errata4.4-3

The test now waits for text 'Installiere' as well.
We'll see if this works.
Comment 2 Jannik Ahlers univentionstaff 2020-03-24 17:23:59 CET
Works on 4.4-3, but i forgot to port it to 4.4-4 as well.

330a9e6c2f Bug #50982: fix 86_selenium.137_appcenter on member and backup