GUI acceptance tests using environment deployed from packages.
Build: #2422 failed
Job: Metadata was successful
user fails to change item type permissions because of lack in privileges posix[1oz 1op deployed-directory details-dir1]: Test case result
The below summarizes the result of the test " user fails to change item type permissions because of lack in privileges posix[1oz 1op deployed-directory details-dir1]" in build 2,422 of Onedata Products - gui acceptance pkg - Chrome POSIX tests.
- Description
- user fails to change item type permissions because of lack in privileges posix[1oz 1op deployed-directory details-dir1]
- Test class
- gui.scenarios.test_oneprovider_posix
- Method
- test_user_fails_to_change_item_type_permissions_because_of_lack_in_privileges_posix[1oz_1op_deployed-Directory details-dir1]
- Jira Issue
-
- Duration
- 3 mins
- Status
- Failed (Existing Failure)
Error Log
RuntimeError: cannot click on button btn in Edit permission tab request = <FixtureRequest for <Function 'test_user_fails_to_change_item_type_permissions_because_of_lack_in_privileges_posix[1oz_1op_deployed-Directory details-dir1]'>> @pytest.mark.usefixtures(*function_args) def scenario_wrapper(request): > _execute_scenario(feature, scenario, request, encoding) /usr/local/lib/python3.8/dist-packages/pytest_bdd/scenario.py:227: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/local/lib/python3.8/dist-packages/pytest_bdd/scenario.py:189: in _execute_scenario _execute_step_function(request, scenario, step, step_func) /usr/local/lib/python3.8/dist-packages/pytest_bdd/scenario.py:130: in _execute_step_function step_func(**kwargs) tests/utils/bdd_utils.py:78: in wrapper return fun(*ba.args, **ba.kwargs) <decorator-gen-535>:2: in select_permission_type ??? tests/utils/utils.py:95: in wrapper return fun(*args, **kwargs) tests/gui/steps/oneprovider/permissions.py:36: in select_permission_type getattr(modals(driver).details_modal.edit_permissions, tests/gui/utils/core/base.py:81: in click click_on_web_elem(self.driver, self._click_area, _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ driver = <selenium.webdriver.chrome.webdriver.WebDriver (session="1f074048f28c78cf4236d5fc0d41339c")> web_elem = <selenium.webdriver.remote.webelement.WebElement (session="1f074048f28c78cf4236d5fc0d41339c", element="7ced60b0-ea9f-49ec-8c87-c72621437d8f")> err_msg = 'cannot click on button btn in Edit permission tab', delay = True def click_on_web_elem(driver, web_elem, err_msg, delay=True): disabled = 'disabled' in web_elem.get_attribute('class') # scroll to make the element visible if not web_elem.is_displayed(): web_elem.location_once_scrolled_into_view if web_elem.is_enabled() and web_elem.is_displayed() and not disabled: # TODO VFS-7484 make optional sleep and localize only those tests that need it or find better alternative # currently checking if elem is enabled not always work (probably after striping disabled from web elem # elem is not immediately clickable) if delay: sleep(delay if isinstance(delay, float) else 0.25) action = ActionChains(driver) action.move_to_element(web_elem).click_and_hold(web_elem).release(web_elem) action.perform() else: with suppress(TypeError): err_msg = err_msg() > raise RuntimeError(err_msg) E RuntimeError: cannot click on button btn in Edit permission tab tests/gui/utils/generic.py:137: RuntimeError