Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

e2e tests related to public link role failed in nightly #8930

Closed
SwikritiT opened this issue Apr 27, 2023 · 4 comments
Closed

e2e tests related to public link role failed in nightly #8930

SwikritiT opened this issue Apr 27, 2023 · 4 comments
Assignees
Labels

Comments

@SwikritiT
Copy link
Contributor

SwikritiT commented Apr 27, 2023

Tests related to public link role is failing in CI and needs further investigation.
Build link: https://drone.owncloud.com/owncloud/web/35222/9/16

Feature: reshare # tests/e2e/cucumber/features/smoke/reshare.feature:1

  Scenario: re-sharing # tests/e2e/cucumber/features/smoke/reshare.feature:6
    Given "Admin" disables share auto accepting
    Given "Admin" creates following users using API
      │ id    │
      │ Alice │
      │ Brian │
      │ Carol │
    And "Admin" creates following group using API
      │ id      │
      │ sales   │
      │ finance │
    And "Admin" adds user to the group using API
      │ user  │ group │
      │ Carol │ sales │
    And "Alice" creates the following folder in personal space using API
      │ name             │
      │ folder_to_shared │
    And "Alice" shares the following resource using API
      │ resource         │ recipient │ type │ role   │
      │ folder_to_shared │ Brian     │ user │ editor │
    And "Brian" accepts the following share using API
      │ name             │
      │ folder_to_shared │
    And "Brian" logs in
    And "Brian" opens the "files" app
    And "Brian" navigates to the shared with me page
    And "Brian" reshares the following resource
      │ resource         │ recipient │ type  │ role   │ resourceType │
      │ folder_to_shared │ sales     │ group │ viewer │ folder       │
    And "Carol" logs in
    And "Carol" opens the "files" app
    And "Carol" navigates to the shared with me page
    And "Carol" accepts the following share
      │ name             │
      │ folder_to_shared │
    And "Carol" reshares the following resource
      │ resource         │ recipient │ type │ role   │ resourceType │
      │ folder_to_shared │ Alice     │ user │ viewer │ folder       │
    And "Alice" logs in
    And "Alice" opens the "files" app
    And "Alice" navigates to the personal space page
    Then "Alice" should see the following recipients
      │ resource         │ recipient │ type  │ role   │
      │ folder_to_shared │ Brian     │ user  │ editor │
      │ folder_to_shared │ sales     │ group │ viewer │
    ✖ failed
      locator.waitFor: Timeout 30000ms exceeded.
      =========================== logs ===========================
      waiting for locator('xpath=//*[@data-testid="collaborator-user-item-brian"]//button[contains(@class,"files-recipient-role-select-btn")]/span[text()="Editor"]') to be visible
      ============================================================
          at Function.checkCollaborator (/var/www/owncloud/web/tests/e2e/support/objects/app-files/share/collaborator.ts:152:46)
          at checkSharee (/var/www/owncloud/web/tests/e2e/support/objects/app-files/share/actions.ts:124:9)
          at Share.checkSharee (/var/www/owncloud/web/tests/e2e/support/objects/app-files/share/index.ts:36:9)
          at World.<anonymous> (/var/www/owncloud/web/tests/e2e/cucumber/steps/ui/shares.ts:77:9)
    And "Alice" logs out
    - skipped
    When "Brian" updates following sharee role
      │ resource         │ recipient │ type  │ role                    │ resourceType │
      │ folder_to_shared │ sales     │ group │ custom_permissions:read │ folder       │
    - skipped
    And "Brian" logs out
    - skipped
    And "Carol" navigates to the shared with me page
    - skipped
    Then "Carol" should not be able to reshare the following resource
      │ resource         │
      │ folder_to_shared │
    - skipped
    And "Carol" logs out
    - skipped
 ✖ And "Alice" edits the public link named "myPublicLink" of resource "folderPublic" changing role to "uploader" # tests/e2e/cucumber/steps/ui/links.ts:41
       Error: expect(received).toBe(expected) // Object.is equality

       Expected: "secret file drop"
       Received: "uploader"
           at Proxy.<anonymous> (/var/www/owncloud/web/node_modules/.pnpm/@[email protected]/node_modules/@playwright/test/lib/expect.js:130:37)
           at World.<anonymous> (/var/www/owncloud/web/tests/e2e/cucumber/steps/ui/links.ts:45:30)
@SwikritiT
Copy link
Contributor Author

This PR merged yesterday so that might be the reason #8876

@JammingBen
Copy link
Contributor

Ahhh yes, #8876 is definitely the reason. The PR went through because the e2e tests were disabled by accident, which was fixed after that PR got merged.

@SagarGi
Copy link
Member

SagarGi commented Apr 27, 2023

Ahhh yes, #8876 is definitely the reason. The PR went through because the e2e tests were disabled by accident, which was fixed after that PR got merged.

@JammingBen i will be fixing the failure.

@SagarGi
Copy link
Member

SagarGi commented Apr 27, 2023

Fixed by this PR #8934 so closing this issue.

@SagarGi SagarGi closed this as completed Apr 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants