-
Notifications
You must be signed in to change notification settings - Fork 194
Closed
Labels
Type:BugSomething isn't workingSomething isn't working
Description
Description
Web E2E tests failed while creating file from template file for Collabora with locator resolved to 2 elements.
Failed Step:
✖ When "Alice" creates a file from template file "Template.ott" via "Collabora" using the context menu # file:/var/www/owncloud/web/tests/e2e/cucumber/steps/ui/resources.ts:420
locator.click: Error: strict mode violation: locator('//*[@id="oc-files-context-actions-context"]//span[text()="Create from template via Collabora"]') resolved to 2 elements:
1) <span>Create from template via Collabora</span> aka getByRole('button', { name: 'Create from template via' }).first()
2) <span>Create from template via Collabora</span> aka getByRole('button', { name: 'Create from template via' }).nth(2)
Call log:
- waiting for locator('//*[@id="oc-files-context-actions-context"]//span[text()="Create from template via Collabora"]')
at Module.createFileFromTemplate (/var/www/owncloud/web/tests/e2e/support/objects/app-files/resource/actions.ts:179:70)
at async Resource.createFileFromTemplate (/var/www/owncloud/web/tests/e2e/support/objects/app-files/resource/index.ts:274:9)
at async World.<anonymous> (/var/www/owncloud/web/tests/e2e/cucumber/steps/ui/resources.ts:423:5)Log report:
npx playwright show-trace https://cache.owncloud.com/public/owncloud/web/50266/tracing/create-files-from-office-templates-alice-2025-2-4-01-54-21.zipBuilds:
Metadata
Metadata
Assignees
Labels
Type:BugSomething isn't workingSomething isn't working
Type
Projects
Status
Done