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

Activity e2e tests fail with error No activities on ocis (master) #11635

Closed
amrita-shrestha opened this issue Sep 24, 2024 · 1 comment · Fixed by #11637
Closed

Activity e2e tests fail with error No activities on ocis (master) #11635

amrita-shrestha opened this issue Sep 24, 2024 · 1 comment · Fixed by #11637
Assignees
Labels

Comments

@amrita-shrestha
Copy link
Contributor

amrita-shrestha commented Sep 24, 2024

Describe the bug

Today nightly fail on the activity step due to no activity error. Is this bug or testing side problem?

Build: https://drone.owncloud.com/owncloud/web/47802/10/8

Tracing: npx playwright show-trace https://cache.owncloud.com/public/owncloud/web/47802/tracing/activity-brian-2024-9-24-04-33-26.zip

Error:


1) Scenario: activity (attempt 1, retried) # tests/e2e/cucumber/features/smoke/activity.feature:12
   ✔ Before # file:/var/www/owncloud/web/tests/e2e/cucumber/environment/index.ts:28
   ✔ Given "Admin" creates following users using API # file:/var/www/owncloud/web/tests/e2e/cucumber/steps/api.ts:4
       | id    |
       | Alice |
       | Brian |
   ✔ And "Admin" assigns following roles to the users using API # file:/var/www/owncloud/web/tests/e2e/cucumber/steps/api.ts:11
       | id    | role        |
       | Alice | Space Admin |
   ✔ When "Alice" logs in # file:/var/www/owncloud/web/tests/e2e/cucumber/steps/ui/session.ts:33
   ✔ And "Alice" creates the following project space using API # file:/var/www/owncloud/web/tests/e2e/cucumber/steps/api.ts:113
       | name | id     |
       | team | team.1 |
   ✔ And "Alice" creates the following folder in personal space using API # file:/var/www/owncloud/web/tests/e2e/cucumber/steps/api.ts:42
       | name                   |
       | sharedFolder/subFolder |
   ✔ And "Alice" shares the following resource using API # file:/var/www/owncloud/web/tests/e2e/cucumber/steps/api.ts:54
       | resource     | recipient | type | role     |
       | sharedFolder | Brian     | user | Can edit |
   ✔ And "Alice" opens the "files" app # file:/var/www/owncloud/web/tests/e2e/cucumber/steps/ui/application.ts:9
   ✔ Then "Alice" should see activity of the following resource # file:/var/www/owncloud/web/tests/e2e/cucumber/steps/ui/resources.ts:615
       | resource     | activity                             |
       | sharedFolder | alice shared sharedFolder with brian |
   ✔ And "Alice" navigates to the project space "team.1" # file:/var/www/owncloud/web/tests/e2e/cucumber/steps/ui/spaces.ts:21
   ✔ Then "Alice" should see activity of the space # file:/var/www/owncloud/web/tests/e2e/cucumber/steps/ui/spaces.ts:137
       | activity                        |
       | alice added readme.md to .space |
   ✔ And "Alice" logs out # file:/var/www/owncloud/web/tests/e2e/cucumber/steps/ui/session.ts:42
   ✔ When "Brian" logs in # file:/var/www/owncloud/web/tests/e2e/cucumber/steps/ui/session.ts:33
   ✔ And "Brian" navigates to the shared with me page # file:/var/www/owncloud/web/tests/e2e/cucumber/steps/ui/shares.ts:82
   ✖ Then "Brian" should see activity of the following resource # file:/var/www/owncloud/web/tests/e2e/cucumber/steps/ui/resources.ts:615
       | resource               | activity                              |
       | sharedFolder/subFolder | alice added subFolder to sharedFolder |
       Error: Timed out 5000ms waiting for expect(locator).toContainText(expected)

       Locator: locator('#sidebar-panel-activities .sidebar-panel__body-content')
       Expected string: "alice added subFolder to sharedFolder"
       Received string: "No activities"
       Call log:
         - locator._expect with timeout 5000ms
         - waiting for locator('#sidebar-panel-activities .sidebar-panel__body-content')
         -   locator resolved to <div class="sidebar-panel__body-content sidebar-panel__body-content-stretch">…</div>
         -   unexpected value "No activities"
         -   locator resolved to <div class="sidebar-panel__body-content sidebar-panel__body-content-stretch">…</div>
         -   unexpected value "No activities"
         -   locator resolved to <div class="sidebar-panel__body-content sidebar-panel__body-content-stretch">…</div>
         -   unexpected value "No activities"
         -   locator resolved to <div class="sidebar-panel__body-content sidebar-panel__body-content-stretch">…</div>
         -   unexpected value "No activities"
         -   locator resolved to <div class="sidebar-panel__body-content sidebar-panel__body-content-stretch">…</div>
         -   unexpected value "No activities"
         -   locator resolved to <div class="sidebar-panel__body-content sidebar-panel__body-content-stretch">…</div>
         -   unexpected value "No activities"
         -   locator resolved to <div class="sidebar-panel__body-content sidebar-panel__body-content-stretch">…</div>
         -   unexpected value "No activities"
         -   locator resolved to <div class="sidebar-panel__body-content sidebar-panel__body-content-stretch">…</div>
         -   unexpected value "No activities"
         -   locator resolved to <div class="sidebar-panel__body-content sidebar-panel__body-content-stretch">…</div>
         -   unexpected value "No activities"

           at Proxy.<anonymous> (/var/www/owncloud/web/node_modules/.pnpm/[email protected]/node_modules/playwright/lib/matchers/expect.js:198:37)
           at Module.checkActivity (file:///var/www/owncloud/web/tests/e2e/support/objects/app-files/resource/actions.ts:1394:65)
           at async Resource.checkActivity (file:///var/www/owncloud/web/tests/e2e/support/objects/app-files/resource/index.ts:265:9)
           at async World.<anonymous> (file:///var/www/owncloud/web/tests/e2e/cucumber/steps/ui/resources.ts:619:9)
   - And "Brian" logs out # file:/var/www/owncloud/web/tests/e2e/cucumber/steps/ui/session.ts:42
   ✖ After # file:/var/www/owncloud/web/tests/e2e/cucumber/environment/index.ts:91
       Error: ENOENT: no such file or directory, scandir 'reports/e2e/playwright/tracing'
           at Object.readdirSync (node:fs:1507:26)
           at filterTracingReports (file:///var/www/owncloud/web/tests/e2e/cucumber/environment/index.ts:135:28)
           at World.<anonymous> (file:///var/www/owncloud/web/tests/e2e/cucumber/environment/index.ts:112:9)
           at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
@amrita-shrestha amrita-shrestha changed the title Activity e2e tests fail on ocis master Activity e2e tests fail with error No activities on ocis (master) Sep 24, 2024
@saw-jan saw-jan self-assigned this Sep 24, 2024
@saw-jan
Copy link
Member

saw-jan commented Sep 24, 2024

Sharee cannot see the activities. Recently changed in oCIS. see owncloud/ocis#10136

Screenshot from 2024-09-24 14-21-48

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants