Skip to content

[REGRESSION]: Playwright.LaunchOptions.SlowMo in .runsettings no longer works in 1.41.0 #2833

@flashquartermaster

Description

@flashquartermaster

Context:

  • GOOD Playwright Version: Playwright.NUnit 1.40.0
  • BAD Playwright Version: Playwright.NUnit 1.41.0
  • Operating System: Winodws, Linux
  • Extra:
    NUnit 4.0.1
    NUnit.Analyzers 3.10.0

Code Snippet

Example of .runsettings used

<?xml version="1.0" encoding="utf-8"?>
<RunSettings>
  <TestRunParameters>
    <Parameter name="BaseUrl" value="https://aaa.bbb.com" />
  </TestRunParameters>
  <!-- NUnit adapter -->
  <NUnit>
    <NumberOfTestWorkers>4</NumberOfTestWorkers>
  </NUnit>
  <!-- General run configuration -->
  <RunConfiguration>
    <EnvironmentVariables>
      <PWDEBUG>0</PWDEBUG>
    </EnvironmentVariables>
  </RunConfiguration>
  <!-- Playwright -->
  <Playwright>
    <BrowserName>chromium</BrowserName>
    <ExpectTimeout>5000</ExpectTimeout>
    <LaunchOptions>
      <Headless>false</Headless>
      <SlowMo>500</SlowMo>
      <Channel>chrome</Channel>
    </LaunchOptions>
  </Playwright>
</RunSettings>

Describe the bug
.
After upgrading to 1.41.0 with .net8, SlowMo is no longer applied to the tests whether or not PWDEBUG is set to 1 or 0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions