GUI acceptance tests using environment deployed from packages.

Build: #2707 failed

Job: Oneprovider data tab files failed

Stages & jobs

  1. Qnthack - copy quarantine

  2. Acceptance Test

  3. Qnthack - rerun

user sees 100 files from 200 uploaded at the beginning without refresh after 100 of them were deleted in another window[1oz 1op deployed]: Test case result

The below summarizes the result of the test " user sees 100 files from 200 uploaded at the beginning without refresh after 100 of them were deleted in another window[1oz 1op deployed]" in build 2,707 of Onedata Products - gui acceptance pkg - Oneprovider data tab files.
Description
user sees 100 files from 200 uploaded at the beginning without refresh after 100 of them were deleted in another window[1oz 1op deployed]
Test class
gui.scenarios.test_oneprovider_data_tab_files
Method
test_user_sees_100_files_from_200_uploaded_at_the_beginning_without_refresh_after_100_of_them_were_deleted_in_another_window[1oz_1op_deployed]
Jira Issue
Duration
18 mins
Status
Failed (New Failure)

Error Log

AssertionError: There are 4 selected files in file browser when should be 5
request = <FixtureRequest for <Function 'test_user_sees_100_files_from_200_uploaded_at_the_beginning_without_refresh_after_100_of_them_were_deleted_in_another_window[1oz_1op_deployed]'>>

    @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)
tests/gui/meta_steps/oneprovider/data.py:679: in delete_first_n_files_with_fixed_step
    delete_first_n_files(browser_id, fixed_step, tmp_memory, selenium,
tests/gui/meta_steps/oneprovider/data.py:661: in delete_first_n_files
    select_first_n_files(browser_id, num_files_to_delete, tmp_memory)
tests/utils/bdd_utils.py:78: in wrapper
    return fun(*ba.args, **ba.kwargs)
<decorator-gen-927>:2: in select_first_n_files
    ???
tests/utils/utils.py:95: in wrapper
    return fun(*args, **kwargs)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

browser_id = 'browser2', num_files_to_select = 5
tmp_memory = defaultdict(<class 'dict'>, {'browser1': {'shares': {}, 'spaces': {}, 'groups': {}, 'mailbox': {}, 'oz': {}, 'window':...': {'modal': None}, 'file_browser': <tests.gui.utils.oneprovider.file_browser._FileBrowser object at 0x7f706e19f8b0>}})

    @wt(parsers.parse('user of {browser_id} selects first "{num_files_to_select}"'
                      ' files from file browser with pressed ctrl'))
    @repeat_failed(timeout=WAIT_FRONTEND, exceptions=(Exception, AssertionError, ))
    def select_first_n_files(browser_id, num_files_to_select: int, tmp_memory):
        browser = tmp_memory[browser_id]['file_browser']
        with browser.select_files() as selector:
            selector.ctrl_or_cmd_down()
            selected_files = []
            visible_files = browser.names_of_visible_elems()
            new_files = [f for f in visible_files if f]
            err_msg = (f'there are {len(new_files)} files in file browser'
                       f' should be at least {num_files_to_select}')
            assert len(new_files) >= num_files_to_select, err_msg
            new_files = new_files[:num_files_to_select]
            for new_file in new_files:
                item = browser.data[new_file]
                if not item.is_selected():
                    selector.select(item)
                    selected_files.append(new_file)
            err_msg = (f'There are {len(selected_files)} selected files in'
                       f' file browser when should be {num_files_to_select}')
>           assert len(selected_files) == num_files_to_select, err_msg
E           AssertionError: There are 4 selected files in file browser when should be 5

tests/gui/steps/oneprovider/file_browser.py:209: AssertionError