GUI acceptance tests using environment deployed from packages.

Build: #2939 failed

Job: Oneprovider archives audit logs failed

Stages & jobs

  1. Qnthack - copy quarantine

  2. Acceptance Test

  3. Qnthack - rerun

    Final

user sees logs about first 200 successfully archived files and 3 directories after creating archive[1oz 1op deployed]: Test case result

The below summarizes the result of the test " user sees logs about first 200 successfully archived files and 3 directories after creating archive[1oz 1op deployed]" in build 2,939 of Onedata Products - gui acceptance pkg - Oneprovider archives audit logs.
Description
user sees logs about first 200 successfully archived files and 3 directories after creating archive[1oz 1op deployed]
Test class
gui.scenarios.test_oneprovider_archives_audit_logs
Method
test_user_sees_logs_about_first_200_successfully_archived_files_and_3_directories_after_creating_archive[1oz_1op_deployed]
Jira Issue
Duration
7 mins
Status
Failed (Existing Failure)

Error Log

AssertionError: there is 290 entries instead of 203 in archive audit log
fixturefunc = <function assert_number_of_first_non_empty_column_content at 0x7fc21e753100>
request = <FixtureRequest for <Function test_user_sees_logs_about_first_200_successfully_archived_files_and_3_directories_after_creating_archive[1oz_1op_deployed]>>
kwargs = {'browser_id': 'browser', 'fields': '["Time", "Time taken"]', 'modals': <class 'tests.gui.utils.common.modals.Modals'>, 'number': '203', ...}

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

selenium = {'browser': <tests.conftest.ChromeWithAllLogs (session="4c4d7d823b94b0152375295296ca3f64")>, 'request': <SubRequest 's...ser_sees_logs_about_first_200_successfully_archived_files_and_3_directories_after_creating_archive[1oz_1op_deployed]>>}
modals = <class 'tests.gui.utils.common.modals.Modals'>
fields = ['Time', 'Time taken'], browser_id = 'browser', number = 203

    @wt(
        parsers.re(
            "user of (?P<browser_id>.*) sees non-empty "
            "(?P<fields>( |.)*) field(s)? of first (?P<number>.*) files and "
            "directories in archive audit log"
        )
    )
    def assert_number_of_first_non_empty_column_content(
        selenium, modals, fields, browser_id, number: int
    ):
        driver = selenium[browser_id]
        modal = modals(driver).archive_audit_log
        fields = parse_seq(fields)
        # Because files` names repeat, files` names must be first loaded in order to
        # add annotations to them
    
        def condition(index=0):
            _ = index
    
        _scroll_and_check_condition(browser_id, selenium, modals, condition)
        scroll_to_top_in_archive_audit_log(browser_id, selenium, modals)
    
        def condition2(index=0):
            for field in fields:
                elems_to_check = modal.get_rows_of_column(field)[index:]
                for elem in elems_to_check:
                    assert (
                        elem != ""
                    ), f"there is empty {field} field: {elem} in archive audit log"
    
        checked_elems = _scroll_and_check_condition(
            browser_id, selenium, modals, condition2
        )
        assert (
>           len(checked_elems) == number
        ), f"there is {len(checked_elems)} entries instead of {number} in archive audit log"
E       AssertionError: there is 290 entries instead of 203 in archive audit log

tests/gui/steps/oneprovider/archives_audit.py:53: AssertionError