Uploaded image for project: 'Red Hat Developer Hub Bugs'
  1. Red Hat Developer Hub Bugs
  2. RHDHBUGS-1983

Playwright tests failing due to missing exports from @playwright/test module

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • 1.5.0, 1.6.0
    • Test Infrastructure
    • 2
    • False
    • Hide

      None

      Show
      None
    • False
    • RHDH Install 3279

      Description of problem:

       Playwright tests are failing with SyntaxError: The requested module '@playwright/test' does not provide an export named 'Locator' and similar errors for other exports like APIResponse and Page. This indicates a problem with the Playwright test setup or configuration, potentially due to version mismatches, dependency conflicts, or misconfiguration. Additionally, a TypeScript enum error and a failure to copy test results are present.
      Root Cause: Likely a mismatch between the version of @playwright/test used in the tests and the version or configuration being used during test execution. Could also be due to an incorrect TypeScript configuration.
      Actionable Recommendations:

      Prerequisites (if any, like setup, operators/versions):

      Steps to Reproduce

       # <steps>

      Actual results:

      Expected results:

      Reproducibility (Always/Intermittent/Only Once):

      Build Details:

      Additional info (Such as Logs, Screenshots, etc):

              skhileri Subhash Khileri
              skhileri Subhash Khileri
              RHIDP - Install
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: