You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using Playwright version 1.50.0 with MSTest.Sdk version 3.8.1, the MSTest runner is used instead of the expected VSTest runner. As a result, the Playwright configuration section in the runsettings file is ignored. Key settings such as BrowserName, ExpectedTimeout, Headless, and Channel do not work.
However, when <UseVSTest>true</UseVSTest> is explicitly set in the .csproj file, and the VSTest runner is used, the Playwright settings in the runsettings file work as expected.
Expected behavior
Playwright should respect the runsettings file when running tests with MSTest.Sdk.
Playwright-specific settings such as BrowserName, ExpectedTimeout, Headless, and Channel should be applied correctly, regardless of whether MSTest or VSTest is used.
Actual behavior
With MSTest runner, the Playwright settings in runsettings are ignored.
With VSTest runner (<UseVSTest>true</UseVSTest>), the settings work as expected.
Additional context
This issue suggests that MSTest.Sdk is defaulting to the MSTest runner instead of the VSTest runner, which does not properly load the Playwright settings from runsettings. It would be helpful if Playwright could support runsettings consistently across different test runners.
Would appreciate any insights or fixes on this issue. Thanks!
Sounds similar to the issues we are encountering with #3093. We probably need to change how the config is getting parsed from a TestAdapter to something else. Or plumb the values through the other process somehow.
Version
1.50.0
Steps to reproduce
When using Playwright version 1.50.0 with MSTest.Sdk version 3.8.1, the MSTest runner is used instead of the expected VSTest runner. As a result, the Playwright configuration section in the
runsettings
file is ignored. Key settings such asBrowserName
,ExpectedTimeout
,Headless
, andChannel
do not work.However, when
<UseVSTest>true</UseVSTest>
is explicitly set in the.csproj
file, and the VSTest runner is used, the Playwright settings in therunsettings
file work as expected.Expected behavior
runsettings
file when running tests with MSTest.Sdk.BrowserName
,ExpectedTimeout
,Headless
, andChannel
should be applied correctly, regardless of whether MSTest or VSTest is used.Actual behavior
runsettings
are ignored.<UseVSTest>true</UseVSTest>
), the settings work as expected.Additional context
This issue suggests that MSTest.Sdk is defaulting to the MSTest runner instead of the VSTest runner, which does not properly load the Playwright settings from
runsettings
. It would be helpful if Playwright could supportrunsettings
consistently across different test runners.Would appreciate any insights or fixes on this issue. Thanks!
Environment
The text was updated successfully, but these errors were encountered: