GUI acceptance tests using environment deployed from packages.

Build: #2484 failed

Job: Storage sync failed

Stages & jobs

  1. Acceptance Test

user sees that directory is not synchronized automatically when continuous scan is disabled[1oz 1op deployed]: Test case result

The below summarizes the result of the test " user sees that directory is not synchronized automatically when continuous scan is disabled[1oz 1op deployed]" in build 2,484 of Onedata Products - gui acceptance pkg - Chrome storage sync tests.
Description
user sees that directory is not synchronized automatically when continuous scan is disabled[1oz 1op deployed]
Test class
gui.scenarios.test_storage_sync
Method
test_user_sees_that_directory_is_not_synchronized_automatically_when_continuous_scan_is_disabled[1oz_1op_deployed]
Duration
3 mins
Status
Failed (New Failure)

Error Log

AssertionError:  not found on 0th position in Breadcrumbs(space1/dir2/dir21/dir211) in file browser in Oneprovider page
subtree = ['dir211', 'file2.txt'], user = 'browser2'
tmp_memory = defaultdict(<class 'dict'>, {'browser1': {'shares': {}, 'spaces': {}, 'groups': {}, 'mailbox': {'token': 'MDAzM2xvY2F0...': {'modal': None}, 'file_browser': <tests.gui.utils.oneprovider.file_browser._FileBrowser object at 0x7f7477f3bc40>}})
cwd = '/dir2/dir21'
selenium = {'browser1': <selenium.webdriver.chrome.webdriver.WebDriver (session="468f531ae4e03e2792c008f83d672b76")>, 'browser2': <selenium.webdriver.chrome.webdriver.WebDriver (session="051ef76e2e05eaa47a2025461416093e")>}
op_container = <class 'tests.gui.utils.oneprovider.OPLoggedIn'>
tmpdir = local('/tmp/pytest-of-bamboo/pytest-0/test_user_sees_that_directory_1')
which_browser = 'file browser', description = ''

    def _check_files_tree(subtree, user, tmp_memory, cwd, selenium, op_container,
                          tmpdir, which_browser='file browser', description=''):
        for item in subtree:
            try:
>               [(item_name, item_subtree)] = item.items()
E               AttributeError: 'str' object has no attribute 'items'

tests/gui/meta_steps/oneprovider/data.py:198: AttributeError

During handling of the above exception, another exception occurred:

request = <FixtureRequest for <Function 'test_user_sees_that_directory_is_not_synchronized_automatically_when_continuous_scan_is_disabled[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:190: in check_file_structure_in_browser
    _check_files_tree(subtree, browser_id, tmp_memory, '', selenium,
tests/gui/meta_steps/oneprovider/data.py:232: in _check_files_tree
    _check_files_tree(item_subtree, user, tmp_memory, path_tmp,
tests/gui/meta_steps/oneprovider/data.py:232: in _check_files_tree
    _check_files_tree(item_subtree, user, tmp_memory, path_tmp,
tests/gui/meta_steps/oneprovider/data.py:211: in _check_files_tree
    change_cwd_using_breadcrumbs_in_data_tab_in_op(selenium,
tests/utils/bdd_utils.py:78: in wrapper
    return fun(*ba.args, **ba.kwargs)
<decorator-gen-673>:2: in change_cwd_using_breadcrumbs_in_data_tab_in_op
    ???
tests/utils/utils.py:95: in wrapper
    return fun(*args, **kwargs)
tests/gui/steps/oneprovider/data_tab.py:134: in change_cwd_using_breadcrumbs_in_data_tab_in_op
    breadcrumbs.chdir(path, archive)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tests.gui.utils.oneprovider.breadcrumbs._Breadcrumbs object at 0x7f7477f29a90>
path = ['', 'dir2', 'dir21'], archive = False

    def chdir(self, path, archive=False):
        if not path or path == '/':
            self.space_root()
        else:
            path = path.split('/')
            breadcrumbs = self._breadcrumbs
            assert len(path) <= len(breadcrumbs), (f'specified path {path} '
                                                   f'exceeded one displayed in '
                                                   f'breadcrumbs {self}')
    
            i, dir1, dir2 = None, None, None
            err_msg = '{dir} not found on {idx}th position in {item}'
            if archive:
                breadcrumbs = [elem for i, elem in enumerate(breadcrumbs)
                               if i != 1]
    
            breadcrumbs_name = [item.text for item in breadcrumbs]
    
            # works only if '...' is after archive name in path
            if '...' in breadcrumbs_name:
                path[1] = '...'
                if len(breadcrumbs_name) < len(path):
                    for i in range(2, 2+(len(path)-len(breadcrumbs))):
                        path.remove(path[i])
    
                for i, (dir1, dir2) in enumerate(izip(path, breadcrumbs_name)):
                    assert dir1 == dir2, err_msg.format(dir=dir1, idx=i,
                                                        item=self)
                breadcrumbs[breadcrumbs_name.index(dir2)-1].click()
            else:
                for i, (dir1, dir2) in enumerate(izip(path, breadcrumbs)):
>                   assert dir1 == dir2.text, err_msg.format(dir=dir1, idx=i,
                                                             item=self)
E                   AssertionError:  not found on 0th position in Breadcrumbs(space1/dir2/dir21/dir211) in file browser in Oneprovider page

tests/gui/utils/oneprovider/breadcrumbs.py:66: AssertionError