Skip to content
This repository was archived by the owner on Nov 23, 2026. It is now read-only.
This repository was archived by the owner on Nov 23, 2026. It is now read-only.

E2e tests. implement tests for searching #7395

Closed

Description

@v-scharf

need to implement:

cases:

Activity

  1. SwikritiT commented on Sep 2, 2022

    @SwikritiT
    Contributor

    @ScharfViktor for character limit of search length FRONTEND_SEARCH_MIN_LENGTH this variable only works while searching for share. Is this the expected behavior for now?
    I couldn't use global search to search for the project spaces. Look at the given video

    simplescreenrecorder-2022-09-02_16.56.36.mp4

    Also, I found a weird behavior while searching for a folder and navigating to it through the displayed search list

    1. As user Einstein create folders like folder, newfolder, new-folder
    2. Now search for folder
    3. Now click on folder and navigate to the folder through search list like so
    simplescreenrecorder-2022-09-02_16.36.32.mp4
    1. Now make Einstein the Space Admin and repeat the same process of searching and navigating to folder through search list
    simplescreenrecorder-2022-09-02_16.53.35.mp4

    Now Resource not found is shown and the upload and new buttons are disabled.

    Seems like a bug

  2. v-scharf commented on Sep 2, 2022

    @v-scharf
    ContributorAuthor

    There is existing bug: #7391
    we are waiting fixing from backend side

  3. v-scharf commented on Sep 2, 2022

    @v-scharf
    ContributorAuthor

    I tested it (works correct for project and personal space).try test again after merging owncloud/ocis#4485

  4. v-scharf commented on Sep 2, 2022

    @v-scharf
    ContributorAuthor

    search by project space name: please skip this step owncloud/ocis#4506

  5. SwikritiT commented on Sep 5, 2022

    @SwikritiT
    Contributor

    @ScharfViktor I found a weird behavior

    1. As user Einstein create the following folders
          folder       
          new-folder   
          FolDer       
          folderPublic 
          test         
    
    1. Now from the global search for folder, I get the following result, the test is also included in the search list while it shouldn't be
      Screenshot from 2022-09-05 16-20-52

    2. Weirdly I can only reproduce it with a keyword test.

    3. In this I created more folders named one, two, three and when I search for folder , test is still displayed but not others
      Screenshot from 2022-09-05 16-21-25

    The test also fails here for the same reason https://drone.owncloud.com/owncloud/web/28072/12/13 passes in oc10 though

  6. v-scharf commented on Sep 5, 2022

    @v-scharf
    ContributorAuthor

    Yes, I can confirm it.
    the first search gives me extra "foo" and "test" folders. Strange, but I don't see request with limit 5
    Screenshot 2022-09-05 at 13 38 45

    if I click "search all files". It works correct
    Screenshot 2022-09-05 at 13 39 42

    after that search work correct. If I try to search again
    Screenshot 2022-09-05 at 13 40 29

  7. SwikritiT commented on Sep 6, 2022

    @SwikritiT
    Contributor

    yes weird, after I search in all files the issue is not reproducible at all

  8. SwikritiT commented on Sep 6, 2022

    @SwikritiT
    Contributor

    yes weird, after I search in all files the issue is not reproducible at all

    reproducible after reload, here it gives me all the folders created

    afterreload

  9. SwikritiT commented on Sep 6, 2022

    @SwikritiT
    Contributor

    I created an issue here owncloud/ocis#4517

  10. SwikritiT commented on Sep 8, 2022

    @SwikritiT
    Contributor

    @ScharfViktor as for declined and pending share, it is not displayed in the search list, I'm guessing that it's expected behavior.
    Also, searching resources in trashbin doesn't give any result both in oc10 and ocis, is this also expected?

  11. SwikritiT commented on Sep 8, 2022

    @SwikritiT
    Contributor

    created an issue for public link searching #7603

  12. v-scharf commented on Sep 8, 2022

    @v-scharf
    ContributorAuthor

    @ScharfViktor as for declined and pending share, it is not displayed in the search list, I'm guessing that it's expected behavior. Also, searching resources in trashbin doesn't give any result both in oc10 and ocis, is this also expected?

    I think it it normal behaviors
    I create api tests for searching declined and pending share and deleted files. let don't check it in e2e?

  13. SwikritiT commented on Sep 8, 2022

    @SwikritiT
    Contributor

    @ScharfViktor as for declined and pending share, it is not displayed in the search list, I'm guessing that it's expected behavior. Also, searching resources in trashbin doesn't give any result both in oc10 and ocis, is this also expected?

    I think it it normal behaviors I create api tests for searching declined and pending share and deleted files. let don't check it in e2e?

    okay

  14. SwikritiT commented on Sep 13, 2022

    @SwikritiT
    Contributor

    @ScharfViktor for shares jail is it enough with what is done in PR #7583 or do we need to add more and for check limit- 5 or more do you mean character limit by this? I can't find a way to set character limit for global search in ocis, I think we can do that in oc10 through occ command but I need to check first. Do you have any idea if it's possible in ocis or will it ever be?

  15. v-scharf commented on Sep 13, 2022

    @v-scharf
    ContributorAuthor

    I think it's enough for e2e tests. We have api tests with limit checking

  16. SwikritiT commented on Sep 13, 2022

    @SwikritiT
    Contributor

    Okay I'll continue on adding steps for project space and public link after the related issues are fixed

  17. SwikritiT commented on Oct 25, 2022

    @SwikritiT
    Contributor

    @ScharfViktor #7603 this issue has been fixed by #7849 which hides the search bar in the public link. So what do we do about the search for public (public link) ?

  18. v-scharf commented on Oct 25, 2022

    @v-scharf
    ContributorAuthor

    @ScharfViktor #7603 this issue has been fixed by #7849 which hides the search bar in the public link. So what do we do about the search for public (public link) ?

    I think we should remove this case from issue as cannot be implemented. We can probably close the problem because space search by name will not be fixed in the near future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions