Skip to content

[full-ci] test(e2e): fix share type label check#2191

Merged
saw-jan merged 1 commit intomainfrom
test/fix-ocm-test
Mar 20, 2026
Merged

[full-ci] test(e2e): fix share type label check#2191
saw-jan merged 1 commit intomainfrom
test/fix-ocm-test

Conversation

@saw-jan
Copy link
Contributor

@saw-jan saw-jan commented Mar 20, 2026

Description

Check the selected share-type using playwright's hasText filter.

Related Issue

    And "Alice" shares the following resource using the sidebar panel
      │ resource       │ recipient │ type │ role     │ resourceType │ shareType │
      │ folderPublic   │ Brian     │ user │ Can edit │ folder       │ external  │
      │ sampleGif.gif  │ Brian     │ user │ Can edit │ file         │ external  │
      │ testavatar.jpg │ Brian     │ user │ Can view │ file         │ external  │
    ✖ failed
      locator.waitFor: Timeout 30000ms exceeded.
      Call log:
        - waiting for locator('//div[contains(@class,"invite-form-share-role-type")]//span[contains(@class,"oc-filter-chip-label") and text()="External users"]') to be visible

          at Module.createShare (/woodpecker/src/github.com/opencloud-eu/web/web/tests/e2e/support/objects/app-files/share/actions.ts:71:82)
          at async Share.create (/woodpecker/src/github.com/opencloud-eu/web/web/tests/e2e/support/objects/app-files/share/index.ts:10:9)
          at async World.<anonymous> (/woodpecker/src/github.com/opencloud-eu/web/web/tests/e2e/cucumber/steps/ui/shares.ts:43:9)

How Has This Been Tested?

  • test environment:

Types of changes

  • Bugfix
  • Enhancement (a change that doesn't break existing code or deployments)
  • Breaking change (a modification that affects current functionality)
  • Technical debt (addressing code that needs refactoring or improvements)
  • Tests (adding or improving tests)
  • Documentation (updates or additions to documentation)
  • Maintenance (like dependency updates or tooling adjustments)

@saw-jan saw-jan self-assigned this Mar 20, 2026
@saw-jan saw-jan changed the title test(e2e): fix share type label check [full-ci] test(e2e): fix share type label check Mar 20, 2026
Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>
@saw-jan saw-jan force-pushed the test/fix-ocm-test branch from 0e117a9 to 083df8f Compare March 20, 2026 04:22
@saw-jan saw-jan merged commit 8f36d52 into main Mar 20, 2026
30 checks passed
@saw-jan saw-jan deleted the test/fix-ocm-test branch March 20, 2026 07:43
@openclouders openclouders mentioned this pull request Mar 20, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants