client icon indicating copy to clipboard operation
client copied to clipboard

[QA][gui-tests] Wait for files to sync after adding user to the client

Open sushmita56 opened this issue 1 year ago • 2 comments

Pre-submission Checks

  • [X] I checked for similar issues, but could not find any. I also checked the closed issues. I could not contribute additional information to any existing issue.
  • [X] I will take the time to fill in all the required fields. I know that the bug report may be dismissed otherwise due to lack of information.

Describe the QA issue

Some of our test scenarios are failing in CI due to the absence of appropriate wait. for example. So, after adding a user to the client, we must wait for resources to sync for at least a few seconds. For example, in the below scenario, we must wait for files to sync after adding user Brian to the client. It is a good practice to wait for resources to sync as soon as we add a user to the client.

Scenario: sharee edits content of files shared by sharer
        Given user "Alice" has created folder "simple-folder" on the server
        And user "Alice" has uploaded file with content "file inside a folder" to "simple-folder/textfile.txt" on the server
        And user "Alice" has uploaded file with content "file in the root" to "textfile.txt" on the server
        And user "Brian" has been created on the server with default attributes and without skeleton files
        And user "Alice" has shared folder "simple-folder" on the server with user "Brian" with "all" permissions
        And user "Alice" has shared file "textfile.txt" on the server with user "Brian" with "all" permissions
        And user "Brian" has set up a client with default settings
        When the user overwrites the file "textfile.txt" with content "overwrite file in the root"
        And the user overwrites the file "simple-folder/textfile.txt" with content "overwrite file inside a folder"
        And the user waits for the files to sync
        Then as "Brian" the file "simple-folder/textfile.txt" on the server should have the content "overwrite file inside a folder"
        And as "Brian" the file "textfile.txt" on the server should have the content "overwrite file in the root"
        And as "Alice" the file "simple-folder/textfile.txt" on the server should have the content "overwrite file inside a folder"
        And as "Alice" the file "textfile.txt" on the server should have the content "overwrite file in the root"

Todo:

  • [ ] Look for such scenarios
  • [ ] Add wait for resources to sync after setting up the client

sushmita56 avatar Jul 21 '22 09:07 sushmita56

Screenshot

image

GUI Logs: https://cache.owncloud.com/public/owncloud/client/12592/guiReportUpload/index.html

GUI Logs Screenshot

Screenshot from 2022-07-25 15-27-14

Server Logs: https://cache.owncloud.com/public/owncloud/client/12599/guiReportUpload/serverlog.log

amrita-shrestha avatar Jul 25 '22 09:07 amrita-shrestha

List of tests suites:

  • [x] tst_addAccount
  • [x] tst_checkAlltabs
  • [x] tst_deletFilesFolders
  • [x] tst_editFiles
  • [x] tst_loginLogout
  • [x] tst_removeAccountConnection
  • [x] tst_sharing
  • [x] tst_syncing
  • [x] tst_vfs

amrita-shrestha avatar Jul 26 '22 07:07 amrita-shrestha

~Will be continued after https://github.com/owncloud/client/issues/10140 is fixed~

saw-jan avatar Sep 26 '22 05:09 saw-jan