Closed kobergj closed 1 year ago
The login one should have been fixed by https://github.com/owncloud/web/pull/8631, I don't see those errors in web these days maybe the fix commit hasn't been bumped in ocis?
:hammer_and_wrench: :heavy_check_mark: 1 - need check that all DELETE/POST (delete user from group/add users to group) requests are OKAY
https://drone.owncloud.com/owncloud/ocis/20666/66/10
npx playwright show-trace https://cache.owncloud.com/public/owncloud/ocis/20666/tracing/user-group-assignments-can-be-handled-via-batch-actions-admin-2023-3-22-09-42-00.zip
:hammer_and_wrench: :heavy_check_mark: 3 - For whatever reason, readmi.md didn't create during the creating space.
test fails when tries to edit description (no readmi file no button on the web)
Check that during creating space we have responses:
resp.status() === 201 && resp.request().method() === 'POST' && resp.url().endsWith('drives')
resp.status() === 201 && resp.request().method() === 'MKCOL' && resp.url().endsWith('.space/')
resp.status() === 201 && resp.request().method() === 'PUT' && resp.url().endsWith('readmi.md')
:hammer_and_wrench: :heavy_check_mark: 3 - npx playwright show-trace https://cache.owncloud.c/public/owncloud/ocis/20666/tracing/multiple-spaces-can-be-managed-at-once-in-the-admin-settings-via-the-batch-actions-alice-2023-3-22-09-40-44.zip
const count = await result.count()
gets 7 items (expect 2) and fails when
:hammer_and_wrench: :heavy_check_mark:
Test: tests/e2e/cucumber/features/smoke/admin-settings/spaces.ocis.feature:39
Scenario: Scenario: multiple spaces can be managed at once in the admin settings via the batch actions
Error:
✖ Then "Alice" should not see the following spaces # tests/e2e/cucumber/steps/ui/adminSettings.ts:11
| id |
| team.a |
| team.b |
| team.c |
| team.d |
locator.getAttribute: Timeout 30000ms exceeded.
=========================== logs ===========================
waiting for locator('tr').nth(3)
============================================================
at getDisplayedSpaces (/drone/src/webTestRunner/tests/e2e/support/objects/app-admin-settings/spaces/actions.ts:23:41)
at World.<anonymous> (/drone/src/webTestRunner/tests/e2e/cucumber/steps/ui/adminSettings.ts:14:24)
Speculated cause: Race condition (performing other checks before batch action completion) Fix: https://github.com/owncloud/web/pull/8687
Same as https://github.com/owncloud/web/issues/8648#issuecomment-1479479714
✔ And "Alice" deletes the following spaces using the batch-actions # tests/e2e/cucumber/steps/ui/adminSettings.ts:72 | id | | team.a | | team.b | | team.c | | team.d |
I think if we set waitForResponse for each deleting space next step will be work
✖ Then "Alice" should not see the following spaces # tests/e2e/cucumber/steps/ui/adminSettings.ts:11 | id | | team.a | | team.b | | team.c | | team.d |
yeah, we do have waitForResponse
but I think that checks only one space-id during batch action deletion.
I will look if we can somehow check for all the spaces. Thanks!
:hammer_and_wrench: :heavy_check_mark:
Test: tests/e2e/cucumber/features/smoke/admin-settings/users.ocis.feature:3
Scenario: Scenario: user login can be managed in the admin settings
Error:
✖ Then "Alice" fails to log in # tests/e2e/cucumber/steps/ui/session.ts:34
locator.fill: Timeout 30000ms exceeded.
=========================== logs ===========================
waiting for locator('#oc-login-username')
============================================================
at Ocis.login (/var/www/owncloud/web/tests/e2e/support/objects/runtime/session.ts:12:56)
at Session.login (/var/www/owncloud/web/tests/e2e/support/objects/runtime/session.ts:43:29)
at World.<anonymous> (/var/www/owncloud/web/tests/e2e/cucumber/steps/ui/session.ts:39:25)
Cause: user session not closed properly (user not logged out)
Always fails after tests/e2e/cucumber/features/smoke/admin-settings/spaces.ocis.feature:94
because the scenario doesn't logout the user. User sessions should be properly managed with https://github.com/owncloud/web/issues/8662
:hammer_and_wrench: :heavy_check_mark:
Test: tests/e2e/cucumber/features/smoke/tiles.feature:6
Scenario: Scenario: Users can navigate web via tiles
Error:
✖ And "Alice" sees the resources displayed as tiles # tests/e2e/cucumber/steps/ui/resources.ts:174
Error: expect(received).toBe(expected) // Object.is equality
Expected: true
Received: false
at Proxy.<anonymous> (/var/www/owncloud/web/node_modules/.pnpm/@playwright+test@1.29.1/node_modules/@playwright/test/lib/expect.js:130:37)
at World.<anonymous> (/var/www/owncloud/web/tests/e2e/cucumber/steps/ui/resources.ts:178:35)
Speculated cause: Fix: #8709
:hammer_and_wrench: :heavy_check_mark:
Test: tests/e2e/cucumber/features/smoke/spaces/memberExpiry.ocis.feature:4
Scenario: Scenario: space members can be invited with an expiration date
Error:
✖ And "Alice" sets the expiration date of the member "Brian" of the project space to "+5 days" # tests/e2e/cucumber/steps/ui/spaces.ts:133
locator.waitFor: Timeout 30000ms exceeded.
=========================== logs ===========================
waiting for locator('xpath=//*[@data-testid="collaborator-user-item-brian"]') to be visible
============================================================
at Function.setExpirationDateForCollaborator (/var/www/owncloud/web/tests/e2e/support/objects/app-files/share/collaborator.ts:150:45)
at addExpirationDateToMember (/var/www/owncloud/web/tests/e2e/support/objects/app-files/spaces/actions.ts:201:34)
at Spaces.addExpirationDate (/var/www/owncloud/web/tests/e2e/support/objects/app-files/spaces/index.ts:76:9)
at World.<anonymous> (/var/www/owncloud/web/tests/e2e/cucumber/steps/ui/spaces.ts:137:5)
Cause: member wasn't added to the space with adds following users to the project space
step
Fix: https://github.com/owncloud/web/pull/8728 (not so flaky recently)
Test- tests/e2e/cucumber/features/smoke/spaces/project.ocis.feature:3 Scenario: unstructured collection of testable space interactions, # Error:
And "Alice" updates the space "team.1" image to "testavatar.jpeg"
✖ failed
Error: function timed out, ensure the promise resolves within 60000 milliseconds
at Timeout._onTimeout (/drone/src/webTestRunner/node_modules/.pnpm/@cucumber+cucumber@7.3.2/node_modules/@cucumber/cucumber/src/user_code_runner.ts:80:18)
at listOnTimeout (node:internal/timers:559:17)
at processTimers (node:internal/timers:502:7)
Error:
And "Alice" updates the space "team.1" name to "developer team"
✖ failed
Error: function timed out, ensure the promise resolves within 60000 milliseconds
at Timeout._onTimeout (/drone/src/webTestRunner/node_modules/.pnpm/@cucumber+cucumber@7.3.2/node_modules/@cucumber/cucumber/src/user_code_runner.ts:80:18)
at listOnTimeout (node:internal/timers:559:17)
at processTimers (node:internal/timers:502:7)
Build: https://drone.owncloud.com/owncloud/ocis/20850/87/9
This step also seems falky Fix: @SwikritiT
Test- tests/e2e/cucumber/features/smoke/spaces/project.ocis.feature:3 Scenario: unstructured collection of testable space interactions, # Error:
And "Alice" updates the space "team.1" image to "testavatar.jpeg" ✖ failed Error: function timed out, ensure the promise resolves within 60000 milliseconds at Timeout._onTimeout (/drone/src/webTestRunner/node_modules/.pnpm/@cucumber+cucumber@7.3.2/node_modules/@cucumber/cucumber/src/user_code_runner.ts:80:18) at listOnTimeout (node:internal/timers:559:17) at processTimers (node:internal/timers:502:7)
Full log Error:
And "Alice" updates the space "team.1" name to "developer team" ✖ failed Error: function timed out, ensure the promise resolves within 60000 milliseconds at Timeout._onTimeout (/drone/src/webTestRunner/node_modules/.pnpm/@cucumber+cucumber@7.3.2/node_modules/@cucumber/cucumber/src/user_code_runner.ts:80:18) at listOnTimeout (node:internal/timers:559:17) at processTimers (node:internal/timers:502:7)
Full log Build: https://drone.owncloud.com/owncloud/ocis/20850/87/9
This step also seems falky Fix: @SwikritiT
Couldn't reproduce this one and haven't seen recently. So I will close it here and we can create another issue if it reappears
Sorry if I duplicate, but I couldn't find another ticket for flaky e2e tests. During web bump to
v7.0.0-rc.22
the following two tests were failing. Both were failing once and got green on a retry1 -
tests/e2e/cucumber/features/smoke/share.ocis.feature:9
Test times out while trying to share an item through the side panel https://drone.owncloud.com/owncloud/ocis/20537/86/9Test log
```feature Feature: share # tests/e2e/cucumber/features/smoke/share.ocis.feature:1 Scenario: folder # tests/e2e/cucumber/features/smoke/share.ocis.feature:9 Given "Admin" creates following users │ id │ │ Alice │ │ Brian │ Given "Alice" creates the following folder in personal space using API │ name │ │ folder_to_shared │ │ folder_to_customShared │ │ shared_folder │ And "Alice" logs in And "Alice" opens the "files" app And "Alice" uploads the following resource │ resource │ to │ │ lorem.txt │ folder_to_shared │ │ lorem-big.txt │ folder_to_customShared │ When "Alice" shares the following resource using the sidebar panel │ resource │ recipient │ type │ role │ resourceType │ │ folder_to_shared │ Brian │ user │ editor │ folder │ │ shared_folder │ Brian │ user │ editor │ folder │ │ folder_to_customShared │ Brian │ user │ custom_permissions:read,create,delete │ folder │ And "Brian" logs in And "Brian" opens the "files" app And "Brian" navigates to the shared with me page And "Brian" accepts the following share │ name │ │ folder_to_shared │ │ folder_to_customShared │ And "Brian" declines the following share │ name │ │ shared_folder │ Then "Brian" should not be able to open the folder "shared_folder" When "Brian" accepts the following share from the context menu │ name │ │ shared_folder │ And "Brian" copies quick link of the resource "shared_folder" from the context menu And "Brian" declines the following share from the context menu │ name │ │ shared_folder │ And "Brian" renames the following resource │ resource │ as │ │ folder_to_shared/lorem.txt │ lorem_new.txt │ And "Brian" uploads the following resource │ resource │ to │ │ simple.pdf │ folder_to_shared │ │ testavatar.jpeg │ folder_to_customShared │ When "Brian" deletes the following resources using the sidebar panel │ resource │ from │ │ lorem-big.txt │ folder_to_customShared │ ✖ failed page.waitForResponse: Timeout 30000ms exceeded while waiting for event "response" at clickResource (/drone/src/webTestRunner/tests/e2e/support/objects/app-files/resource/actions.ts:70:18) at deleteResource (/drone/src/webTestRunner/tests/e2e/support/objects/app-files/resource/actions.ts:375:17) at Resource.delete (/drone/src/webTestRunner/tests/e2e/support/objects/app-files/resource/index.ts:57:9) at processDelete (/drone/src/webTestRunner/tests/e2e/cucumber/steps/ui/resources.ts:196:9) at World.2 -
tests/e2e/cucumber/features/smoke/spaces/project.ocis.feature:3
User unable to log in https://drone.owncloud.com/owncloud/ocis/20540/86/9Two types of error while logging in
Test log
```feature Scenario: unstructured collection of testable space interactions, # tests/e2e/cucumber/features/smoke/spaces/project.ocis.feature:3 .... And "Alice" uploads the following resources │ resource │ to │ │ lorem.txt │ folderPublic │ And "Alice" creates a public link for the resource "folderPublic" using the sidebar panel And "Alice" renames the most recently created public link of resource "folderPublic" to "team.2" And "Alice" edits the public link named "team.2" of resource "folderPublic" changing role to "uploader" And "Alice" sets the expiration date of the public link named "team.2" of resource "folderPublic" to "+5 days" And "Alice" sets the password of the public link named "team.2" of resource "folderPublic" to "54321" When "Anonymous" opens the public link "team.1" And "Anonymous" unlocks the public link with password "12345" And "Anonymous" drop uploads following resources │ resource │ │ textfile.txt │ And "Brian" logs in ✖ failed locator.fill: Timeout 30000ms exceeded. =========================== logs =========================== waiting for locator('#oc-login-username') ============================================================ at Ocis.login (/drone/src/webTestRunner/tests/e2e/support/objects/runtime/session.ts:12:56) at Session.login (/drone/src/webTestRunner/tests/e2e/support/objects/runtime/session.ts:43:29) at World.LogInUser (/drone/src/webTestRunner/tests/e2e/cucumber/steps/ui/session.ts:20:25) ``` ```feature Feature: spaces public link # tests/e2e/cucumber/features/smoke/spaces/publicLink.ocis.feature:1 Scenario: public link for space # tests/e2e/cucumber/features/smoke/spaces/publicLink.ocis.feature:3 Given "Admin" creates following users │ id │ │ Alice │ │ Brian │ │ Carol │ │ Marie │ And "Admin" assigns following roles to the users using API │ id │ role │ │ Alice │ Space Admin │ And "Alice" creates the following project space using API │ name │ id │ │ team │ team.1 │ When "Alice" logs in ✖ failed page.goto: Timeout 30000ms exceeded. =========================== logs =========================== navigating to "https://ocis-server:9200/", waiting until "load" ============================================================ at World.LogInUser (/drone/src/webTestRunner/tests/e2e/cucumber/steps/ui/session.ts:19:16) And "Alice" navigates to the projects space page - skipped ```cc @individual-it