Skip to content

[QA] e2e-playwright test is flaky #13403

@saw-jan

Description

@saw-jan

Builds:

  1) [chromium] › tests/e2e-playwright/specs/internalLink.spec.ts:67:3 › internal link share › opening a link with internal role 

    Error: frame.evaluate: Execution context was destroyed, most likely because of a navigation

       at ../../e2e/support/objects/a11y/actions.ts:47

      45 |   const { page, include } = args
      46 |
    > 47 |   const a11yResult = await new AxeBuilder({ page })
         |                      ^
      48 |     .withTags(a11yRuleTags)
      49 |     .include(include)
      50 |     .analyze()
        at AxeBuilder.runPartialRecursive (/var/www/owncloud/web/node_modules/.pnpm/@axe-core+playwright@4.11.0_playwright-core@1.56.1/node_modules/@axe-core/playwright/dist/index.mjs:283:34)
        at AxeBuilder.analyze (/var/www/owncloud/web/node_modules/.pnpm/@axe-core+playwright@4.11.0_playwright-core@1.56.1/node_modules/@axe-core/playwright/dist/index.mjs:210:28)
        at Module.analyzeAccessibilityConformityViolations (/var/www/owncloud/web/tests/e2e/support/objects/a11y/actions.ts:47:22)
        at Accessibility.getAccessibilityConformityViolations (/var/www/owncloud/web/tests/e2e/support/objects/a11y/index.ts:17:12)
        at Accessibility.getSevereAccessibilityViolations (/var/www/owncloud/web/tests/e2e/support/objects/a11y/index.ts:21:24)
        at Public.open (/var/www/owncloud/web/tests/e2e/support/objects/app-files/page/public.ts:25:5)
        at Module.openPublicLink (/var/www/owncloud/web/tests/e2e-playwright/steps/ui/public.ts:23:3)
        at /var/www/owncloud/web/tests/e2e-playwright/specs/internalLink.spec.ts:68:5

    Error Context: reports/e2e/internalLink-internal-link-c2b73-g-a-link-with-internal-role-chromium/error-context.md

a11y report: https://cache.owncloud.com/public/owncloud/web/56593/a11y/a11y-report.json

{
  "summary": {
    "totalTests": 4,
    "totalViolations": 4,
    "totalPasses": 92,
    "totalIncomplete": 4,
    "timestamp": "2025-12-18T10:17:08.830Z",
    "duration": 14787
  },
  "tests": [
    {
      "test": "opening a link with internal role",
      "file": "tests/e2e-playwright/specs/internalLink.spec.ts",
      "line": 67,
      "status": "failed",
      "duration": 5054,
      "url": "https://ocis:9200/signin/v1/identifier?client_id=web&code_challenge=8MCtenXcgbz1FkdJSJl1xiqcMwNR5rNPSAIo014dJZM&code_challenge_method=S256&flow=oidc&redirect_uri=https%3A%2F%2Focis%3A9200%2Foidc-callback.html&response_mode=query&response_type=code&scope=openid+profile+email&state=1a87697a7d994a58866a74b7abbb1527",
      "violations": [
        {
          "id": "autocomplete-valid",
          "impact": "serious",
          "tags": [
            "cat.forms",
            "wcag21aa",
            "wcag135",
            "EN-301-549",
            "EN-9.1.3.5",
            "ACT",
            "RGAAv4",
            "RGAA-11.13.1"
          ],
          "description": "Ensure the autocomplete attribute is correct and suitable for the form field",
          "help": "autocomplete attribute must be used correctly",
          "helpUrl": "https://dequeuniversity.com/rules/axe/4.11/autocomplete-valid?application=playwright",
          "nodes": [
            {
              "any": [],
              "all": [
                {
                  "id": "autocomplete-valid",
                  "data": null,
                  "relatedNodes": [],
                  "impact": "serious",
                  "message": "the autocomplete attribute is incorrectly formatted"
                }
              ],
              "none": [],
              "impact": "serious",
              "html": "<input class=\"oc-input \" autocapitalize=\"off\" spellcheck=\"false\" autocomplete=\"kopano-account username\" placeholder=\"Username\" id=\"oc-login-username\" aria-invalid=\"false\" value=\"\">",
              "target": [
                "#oc-login-username"
              ],
              "failureSummary": "Fix all of the following:\n  the autocomplete attribute is incorrectly formatted"
            },
            {
              "any": [],
              "all": [
                {
                  "id": "autocomplete-valid",
                  "data": null,
                  "relatedNodes": [],
                  "impact": "serious",
                  "message": "the autocomplete attribute is incorrectly formatted"
                }
              ],
              "none": [],
              "impact": "serious",
              "html": "<input class=\"oc-input \" type=\"password\" margin=\"normal\" autocomplete=\"kopano-account current-password\" placeholder=\"Password\" id=\"oc-login-password\" aria-invalid=\"false\">",
              "target": [
                "#oc-login-password"
              ],
              "failureSummary": "Fix all of the following:\n  the autocomplete attribute is incorrectly formatted"
            }
          ]
        }
      ],
      "violationCount": 1,
      "passCount": 23,
      "incompleteCount": 1
    },
...

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions