GUI acceptance tests using environment deployed from packages.

Build: #2921 failed

Job: Onezone tokens failed

Stages & jobs

  1. Qnthack - copy quarantine

  2. Acceptance Test

  3. Qnthack - rerun

    Final

user sees right tokens after filtering them[1oz 2op elasticsearch]: Test case result

The below summarizes the result of the test " user sees right tokens after filtering them[1oz 2op elasticsearch]" in build 2,921 of Onedata Products - gui acceptance pkg - Onezone tokens.
Description
user sees right tokens after filtering them[1oz 2op elasticsearch]
Test class
gui.scenarios.test_onezone_tokens
Method
test_user_sees_right_tokens_after_filtering_them[1oz_2op_elasticsearch]
Duration
1 min
Status
Failed (New Failure)

Error Log

AssertionError: Displayed number of tokens on tokens page: 3 instead of excepted: 2
fixturefunc = <function assert_oz_tokens_list_has_num_tokens at 0x7fca853a1300>
request = <FixtureRequest for <Function test_user_sees_right_tokens_after_filtering_them[1oz_2op_elasticsearch]>>
kwargs = {'browser_id': 'browser', 'expected_num': 2, 'oz_page': <class 'tests.gui.utils.onezone.OZLoggedIn'>, 'selenium': {'br...uest': <SubRequest 'selenium' for <Function test_user_sees_right_tokens_after_filtering_them[1oz_2op_elasticsearch]>>}}

    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)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

selenium = {'browser': <tests.conftest.ChromeWithAllLogs (session="93b91121987e9833afc95535f2b7860b")>, 'request': <SubRequest 'selenium' for <Function test_user_sees_right_tokens_after_filtering_them[1oz_2op_elasticsearch]>>}
browser_id = 'browser', expected_num = 2
oz_page = <class 'tests.gui.utils.onezone.OZLoggedIn'>

    @wt(parsers.parse('user of {browser_id} sees exactly {expected_num:d} item(s) '
                      'on tokens list in tokens sidebar'))
    @repeat_failed(timeout=WAIT_BACKEND)
    def assert_oz_tokens_list_has_num_tokens(selenium, browser_id, expected_num,
                                             oz_page):
        driver = selenium[browser_id]
        displayed_tokens_num = len(oz_page(driver)['tokens'].sidebar.tokens)
>       assert displayed_tokens_num == expected_num, (
            f'Displayed number of tokens on tokens page: {displayed_tokens_num}'
            f' instead of excepted: {expected_num}')
E       AssertionError: Displayed number of tokens on tokens page: 3 instead of excepted: 2

tests/gui/steps/onezone/tokens.py:61: AssertionError