Build: #4 failed

Job: Onezone spaces multiuser failed

Stages & jobs

  1. Qnthack - copy quarantine

  2. Acceptance Test

  3. Qnthack - rerun

    Final

user joins a space with group invitation token and see space was renamed[1oz 1op elasticsearch]: Test case result

The below summarizes the result of the test " user joins a space with group invitation token and see space was renamed[1oz 1op elasticsearch]" in build 4 of Onedata Products - gui acceptance pkg - feature-VFS-12098-test-couchbase-upgrade-to-6.x-from-4.1 - Onezone spaces multiuser.
Description
user joins a space with group invitation token and see space was renamed[1oz 1op elasticsearch]
Test class
gui.scenarios.test_onezone_spaces_multiuser
Method
test_user_joins_a_space_with_group_invitation_token_and_see_space_was_renamed[1oz_1op_elasticsearch]
Duration
1 min
Status
Failed (New Failure)

Error Log

RuntimeError: no  item found in SpaceOverviewPage in DataPage in Onezone page
web_elem_root = <selenium.webdriver.remote.webelement.WebElement (session="25cef1eabbc67daf1fd90153b5485289", element="F2C5A117E2CF6E3C01514D8145AFE614_element_255")>
css_sel = '.resource-info-tile'
err_msg = 'no  item found in SpaceOverviewPage in DataPage in Onezone page'

    def find_web_elem(web_elem_root, css_sel, err_msg):
        try:
            _scroll_to_css_sel(web_elem_root, css_sel)
>           item = web_elem_root.find_element(By.CSS_SELECTOR, css_sel)

tests/gui/utils/generic.py:135: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.12/dist-packages/selenium/webdriver/remote/webelement.py:417: in find_element
    return self._execute(Command.FIND_CHILD_ELEMENT, {"using": by, "value": value})["value"]
/usr/local/lib/python3.12/dist-packages/selenium/webdriver/remote/webelement.py:395: in _execute
    return self._parent.execute(command, params)
/usr/local/lib/python3.12/dist-packages/selenium/webdriver/remote/webdriver.py:354: in execute
    self.error_handler.check_response(response)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <selenium.webdriver.remote.errorhandler.ErrorHandler object at 0x7fd916fefb90>
response = {'status': 404, 'value': '{"value":{"error":"no such element","message":"no such element: Unable to locate element: {\...unknown>\\n#19 0x5644aff5eee3 \\u003Cunknown>\\n#20 0x7fce8882da94 \\u003Cunknown>\\n#21 0x7fce888baa34 __clone\\n"}}'}

    def check_response(self, response: Dict[str, Any]) -> None:
        """Checks that a JSON response from the WebDriver does not have an
        error.
    
        :Args:
         - response - The JSON response from the WebDriver server as a dictionary
           object.
    
        :Raises: If the response contains an error message.
        """
        status = response.get("status", None)
        if not status or status == ErrorCode.SUCCESS:
            return
        value = None
        message = response.get("message", "")
        screen: str = response.get("screen", "")
        stacktrace = None
        if isinstance(status, int):
            value_json = response.get("value", None)
            if value_json and isinstance(value_json, str):
                import json
    
                try:
                    value = json.loads(value_json)
                    if len(value) == 1:
                        value = value["value"]
                    status = value.get("error", None)
                    if not status:
                        status = value.get("status", ErrorCode.UNKNOWN_ERROR)
                        message = value.get("value") or value.get("message")
                        if not isinstance(message, str):
                            value = message
                            message = message.get("message")
                    else:
                        message = value.get("message", None)
                except ValueError:
                    pass
    
        exception_class: Type[WebDriverException]
        e = ErrorCode()
        error_codes = [item for item in dir(e) if not item.startswith("__")]
        for error_code in error_codes:
            error_info = getattr(ErrorCode, error_code)
            if isinstance(error_info, list) and status in error_info:
                exception_class = getattr(ExceptionMapping, error_code, WebDriverException)
                break
        else:
            exception_class = WebDriverException
    
        if not value:
            value = response["value"]
        if isinstance(value, str):
            raise exception_class(value)
        if message == "" and "message" in value:
            message = value["message"]
    
        screen = None  # type: ignore[assignment]
        if "screen" in value:
            screen = value["screen"]
    
        stacktrace = None
        st_value = value.get("stackTrace") or value.get("stacktrace")
        if st_value:
            if isinstance(st_value, str):
                stacktrace = st_value.split("\n")
            else:
                stacktrace = []
                try:
                    for frame in st_value:
                        line = frame.get("lineNumber", "")
                        file = frame.get("fileName", "<anonymous>")
                        if line:
                            file = f"{file}:{line}"
                        meth = frame.get("methodName", "<anonymous>")
                        if "className" in frame:
                            meth = f"{frame['className']}.{meth}"
                        msg = "    at %s (%s)"
                        msg = msg % (meth, file)
                        stacktrace.append(msg)
                except TypeError:
                    pass
        if exception_class == UnexpectedAlertPresentException:
            alert_text = None
            if "data" in value:
                alert_text = value["data"].get("text")
            elif "alert" in value:
                alert_text = value["alert"].get("text")
            raise exception_class(message, screen, stacktrace, alert_text)  # type: ignore[call-arg]  # mypy is not smart enough here
>       raise exception_class(message, screen, stacktrace)
E       selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":".resource-info-tile"}
E         (Session info: chrome=115.0.5763.0); For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#no-such-element-exception
E       Stacktrace:
E       #0 0x5644aff662b3 <unknown>
E       #1 0x5644afc962d7 <unknown>
E       #2 0x5644afcd487b <unknown>
E       #3 0x5644afcd4971 <unknown>
E       #4 0x5644afcca816 <unknown>
E       #5 0x5644afcf3dcd <unknown>
E       #6 0x5644afcca6e6 <unknown>
E       #7 0x5644afcf3f6e <unknown>
E       #8 0x5644afd0bfe9 <unknown>
E       #9 0x5644afcf3b73 <unknown>
E       #10 0x5644afcc91ab <unknown>
E       #11 0x5644afcc9f4e <unknown>
E       #12 0x5644aff27668 <unknown>
E       #13 0x5644aff2b627 <unknown>
E       #14 0x5644aff35b8c <unknown>
E       #15 0x5644aff2c253 <unknown>
E       #16 0x5644afefa927 <unknown>
E       #17 0x5644aff50018 <unknown>
E       #18 0x5644aff501a6 <unknown>
E       #19 0x5644aff5eee3 <unknown>
E       #20 0x7fce8882da94 <unknown>
E       #21 0x7fce888baa34 __clone

/usr/local/lib/python3.12/dist-packages/selenium/webdriver/remote/errorhandler.py:229: NoSuchElementException

During handling of the above exception, another exception occurred:

fixturefunc = <function type_space_name_on_rename_space_input_on_overview_page at 0x7fd9187a87c0>
request = <FixtureRequest for <Function test_user_joins_a_space_with_group_invitation_token_and_see_space_was_renamed[1oz_1op_elasticsearch]>>
kwargs = {'browser_id': 'space_owner_browser', 'oz_page': <class 'tests.gui.utils.onezone.OZLoggedIn'>, 'selenium': {'browser1'...ner_browser': <tests.conftest.ChromeWithAllLogs (session="25cef1eabbc67daf1fd90153b5485289")>}, 'space_name': 'space2'}

    def call_fixture_func(
        fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs
    ) -> FixtureValue:
        if is_generator(fixturefunc):
            fixturefunc = cast(
                Callable[..., Generator[FixtureValue, None, None]], fixturefunc
            )
            generator = fixturefunc(**kwargs)
            try:
                fixture_result = next(generator)
            except StopIteration:
                raise ValueError(f"{request.fixturename} did not yield a value") from None
            finalizer = functools.partial(_teardown_yield_fixture, fixturefunc, generator)
            request.addfinalizer(finalizer)
        else:
            fixturefunc = cast(Callable[..., FixtureValue], fixturefunc)
>           fixture_result = fixturefunc(**kwargs)

/usr/local/lib/python3.12/dist-packages/_pytest/fixtures.py:913: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/utils/bdd_utils.py:78: in wrapper
    return fun(*ba.args, **ba.kwargs)
/usr/local/lib/python3.12/dist-packages/decorator.py:232: in fun
    return caller(func, *(extras + args), **kw)
tests/utils/utils.py:93: in wrapper
    return fun(*args, **kwargs)
tests/gui/steps/onezone/overview.py:24: in type_space_name_on_rename_space_input_on_overview_page
    oz_page(driver)['data'].overview_page.info_tile.rename()
tests/gui/utils/core/web_elements.py:59: in __get__
    elem = super(WebItem, self).__get__(instance, owner)
tests/gui/utils/core/web_elements.py:29: in __get__
    return find_web_elem(instance.web_elem, self.css_sel,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

web_elem_root = <selenium.webdriver.remote.webelement.WebElement (session="25cef1eabbc67daf1fd90153b5485289", element="F2C5A117E2CF6E3C01514D8145AFE614_element_255")>
css_sel = '.resource-info-tile'
err_msg = 'no  item found in SpaceOverviewPage in DataPage in Onezone page'

    def find_web_elem(web_elem_root, css_sel, err_msg):
        try:
            _scroll_to_css_sel(web_elem_root, css_sel)
            item = web_elem_root.find_element(By.CSS_SELECTOR, css_sel)
        except NoSuchElementException:
            with suppress(TypeError):
                err_msg = err_msg()
>           raise RuntimeError(err_msg)
E           RuntimeError: no  item found in SpaceOverviewPage in DataPage in Onezone page

tests/gui/utils/generic.py:139: RuntimeError