Skip to content

test(gui): port to appium for sync resources feature#947

Merged
saw-jan merged 2 commits into
opencloud-eu:mainfrom
Asmitapaudel:test/port-syncResource
Jul 2, 2026
Merged

test(gui): port to appium for sync resources feature#947
saw-jan merged 2 commits into
opencloud-eu:mainfrom
Asmitapaudel:test/port-syncResource

Conversation

@Asmitapaudel

@Asmitapaudel Asmitapaudel commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Part of: #861

This PR enables the following syncResources test:

    Scenario: File with spaces in the name can sync
    Scenario: Syncing folders each having large number of files
     Scenario: extract a zip file in the sync folder
    @skipOnWindows
    Scenario: sync remote folder to a local sync folder having special characters
    Scenario: Sync a received shared folder with Viewer permission role
	Scenario: Sync a received shared folder with Editor permission role

@Asmitapaudel Asmitapaudel force-pushed the test/port-syncResource branch from aa15d5a to 618abea Compare June 12, 2026 11:56
if (
p_element.get_attribute("checked") == 'true'
and p_element.rect["x"] > parent_position
if p_element.rect["x"] >= parent_position and (

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When selecting folders, deselect_all_remote_folders() unchecks everything first, so the checked == 'true' condition never matched and parent_element stayed None. When unselecting, the check is still needed to pick the correct parent when multiple elements with the same name exist in the tree. Now the checked state is only enforced when unselecting.

@Asmitapaudel Asmitapaudel changed the title test(gui): port sync resources to appium test(gui): port to appium for sync resources feature Jun 12, 2026
@Asmitapaudel Asmitapaudel force-pushed the test/port-syncResource branch from 618abea to bc7b2c3 Compare June 12, 2026 12:01
@Asmitapaudel

Asmitapaudel commented Jun 12, 2026

Copy link
Copy Markdown
Contributor Author

waiting for
PR
to be merged

merged

@Asmitapaudel Asmitapaudel force-pushed the test/port-syncResource branch 9 times, most recently from be29c29 to 77aa667 Compare June 24, 2026 08:31
SyncConnection.FOLDER_SYNC_CONNECTION_MENU_BUTTON.selector.format(
sync_folder=sync_folder,
sync_path=get_config("currentUserSyncPath"),
sync_path=get_config("currentUserSyncPath").rstrip("/") + "/",

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ensures the sync path always ends with / so the locator works consistently.

@Asmitapaudel Asmitapaudel force-pushed the test/port-syncResource branch 2 times, most recently from 3571821 to 74c462f Compare June 25, 2026 11:09
with zipfile.ZipFile(zip_file_name, 'w') as zipped_file:
for resource in resources:
zipped_file.write(resource)
try:

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed FileNotFoundError in after_scenario cleanup. The create_zip() function was permanently changing the working directory without restoring it, causing subsequent cleanup operations to fail. Added try-finally block to ensure the original directory is always restored.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, also link the error that you are referring to.
I guess you are referring to this error:
https://ci.opencloud.rocks/repos/11/pipeline/96/44#L848

@Asmitapaudel Asmitapaudel marked this pull request as ready for review June 25, 2026 11:58
@Asmitapaudel Asmitapaudel force-pushed the test/port-syncResource branch from 74c462f to 6af9aac Compare July 1, 2026 04:28
@saw-jan saw-jan merged commit 0539bd2 into opencloud-eu:main Jul 2, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants