The test case 86_selenium/153_udm_check_properties_of_copied_users.py uses hardcoded HTML/dojo/dijit ID's which will change/break on any change in the structure of UMC. 1. There should be a method Users.copy() in univention.testing.selenium.udm.Users. 2. The method should use the existing functionality "self.selenium.enter_input()" for inserting text into the input boxes instead of things like: + # password 2 + WebDriverWait(selenium.driver, 30).until( + expected_conditions.element_to_be_clickable( + (By.XPATH, '//*[@id="umc_widgets_PasswordBox_3"]') + ) + ).send_keys('univention') +++ This bug was initially created as a clone of Bug #49823 +++
The hashbang should contain "-s" so that the output is always printed by pytest. The test case fails in UCS 5.0.
> _copy_user(selenium, _fqdn, _dn, _username, _copied_username) 153_udm_check_properties_of_copied_users.py:213: 153_udm_check_properties_of_copied_users.py:107: in _copy_user (By.XPATH, '//*[@id="dgrid_1-row-%s"]' % (orig_dn,)) > raise TimeoutException(message, screen, stacktrace) E TimeoutException: Message:
Package: ucs-test Version: 9.0.7-2A~4.4.0.202011301644 Branch: ucs_4.4-0 Scope: errata4.4-7 4.4-7 commits: 730fa9c0bd1a764961b72b0b258e1f7e8f42fd35 (changes) 40166745dbe90f6e826087a62ee924df4d125792 (changelog) merge request to 5.0-0: https://git.knut.univention.de/univention/ucs/-/merge_requests/44
The test now fails since ~5 runs in 4.4-6/4.4-7 on the role "no-samba, master part II" http://jenkins.knut.univention.de:8080/job/UCS-4.4/job/UCS-4.4-7/job/AutotestJoin/lastCompletedBuild/SambaVersion=no-samba,Systemrolle=master-part-II/testReport/86_selenium/153_udm_check_properties_of_copied_users/master090/
Package: ucs-test Version: 9.0.7-11A~4.4.0.202101051406 Branch: ucs_4.4-0 Scope: errata4.4-7 4.4-7 commits 4e7536f6dfe7cf683d791b35dfbd37eb584aaf98 (changes) b46eb2e4d1aee0da489554109f9504e35ee83463 (changelog)
Fixed in: ucs-test (10.0.6-51) 3dd15675c55b | Bug #52144: add generic copy() method