Skip to content

[dotnet] Fix test file/class names for consistency - #17068

Merged
cgoldberg merged 10 commits into
SeleniumHQ:trunkfrom
cgoldberg:dotnet-rename-tests
Feb 9, 2026
Merged

cgoldberg merged 10 commits into
SeleniumHQ:trunkfrom
cgoldberg:dotnet-rename-tests

Conversation

@cgoldberg

Copy link
Copy Markdown
Member

🔗 Related Issues

Fixes #17034

💥 What does this PR do?

This PR renames .NET test files and class names for consistency.

  • updates all test fixture classes so they are named *Tests
  • renames test files that are named *Test.cs to *Tests.cs (preserving Git history)
  • updates file names in copyright headers to match
  • updates build files to match new names

🔄 Types of changes

  • Cleanup (formatting, renaming)

@cgoldberg cgoldberg added the C-dotnet .NET Bindings label Feb 9, 2026
@selenium-ci selenium-ci added B-build Includes scripting, bazel and CI integrations B-support Issue or PR related to support classes labels Feb 9, 2026
@qodo-code-review

Copy link
Copy Markdown
Contributor

PR Type

Enhancement


Description

  • Rename all .NET test classes to use *Tests suffix consistently

  • Update copyright headers to match new test file names

  • Update Bazel build configuration files with new test file patterns

  • Preserve Git history while standardizing naming conventions


File Walkthrough

Relevant files
Formatting
22 files
AlertsTests.cs
Rename test class and copyright header                                     
+2/-2     
BrowserTests.cs
Rename test class and copyright header                                     
+2/-2     
BrowsingContextEventsTests.cs
Rename test class and copyright header                                     
+2/-2     
BrowsingContextTests.cs
Rename test class and copyright header                                     
+2/-2     
EmulationTests.cs
Rename test class and copyright header                                     
+2/-2     
CombinedInputActionsTests.cs
Rename test class and copyright header                                     
+2/-2     
DefaultKeyboardTests.cs
Rename test class and copyright header                                     
+2/-2     
DefaultMouseTests.cs
Rename test class and copyright header                                     
+2/-2     
InputEventsTests.cs
Rename test class and copyright header                                     
+2/-2     
SetFilesTests.cs
Rename test class and copyright header                                     
+2/-2     
LogTests.cs
Rename test class and copyright header                                     
+2/-2     
NetworkEventsTests.cs
Rename test class and copyright header                                     
+2/-2     
NetworkTests.cs
Rename test class and copyright header                                     
+2/-2     
CallFunctionLocalValueTests.cs
Rename test class and copyright header                                     
+2/-2     
CallFunctionParameterTests.cs
Rename test class and copyright header                                     
+2/-2     
CallFunctionRemoteValueTests.cs
Rename test class and copyright header                                     
+2/-2     
EvaluateParametersTests.cs
Rename test class and copyright header                                     
+2/-2     
ScriptCommandsTests.cs
Rename test class and copyright header                                     
+2/-2     
ScriptEventsTests.cs
Rename test class and copyright header                                     
+2/-2     
SessionTests.cs
Rename test class and copyright header                                     
+2/-2     
StorageTests.cs
Rename test class and copyright header                                     
+2/-2     
WebExtensionTests.cs
Rename test class and copyright header                                     
+2/-2     
Additional files
85 files
ChildrenFindingTests.cs +2/-2     
ClearTests.cs +2/-2     
ClickScrollingTests.cs +2/-2     
ClickTests.cs +2/-2     
ContentEditableTests.cs +2/-2     
CookieImplementationTests.cs +2/-2     
CookieTests.cs +2/-2     
CorrectEventFiringTests.cs +2/-2     
CssValueTests.cs +2/-2     
DevToolsConsoleTests.cs +2/-2     
DevToolsLogTests.cs +2/-2     
DevToolsNetworkTests.cs +2/-2     
DevToolsPerformanceTests.cs +2/-2     
DevToolsProfilerTests.cs +2/-2     
DevToolsSecurityTests.cs +2/-2     
DevToolsTabsTests.cs +2/-2     
DevToolsTargetTests.cs +2/-2     
DownloadsTests.cs +2/-2     
DriverElementFindingTests.cs +2/-2     
ElementAttributeTests.cs +2/-2     
ElementElementFindingTests.cs +2/-2     
ElementEqualityTests.cs +2/-2     
ElementFindingTests.cs +2/-2     
ElementPropertyTests.cs +2/-2     
ElementSelectingTests.cs +2/-2     
ErrorsTests.cs +2/-2     
ExecutingAsyncJavascriptTests.cs +2/-2     
ExecutingJavascriptTests.cs +2/-2     
FrameSwitchingTests.cs +2/-2     
GetLogsTests.cs +2/-2     
GetMultipleAttributeTests.cs +2/-2     
I18Tests.cs +2/-2     
ImplicitWaitTests.cs +2/-2     
ActionBuilderTests.cs +2/-2     
BasicKeyboardInterfaceTests.cs +2/-2     
BasicMouseInterfaceTests.cs +2/-2     
BasicWheelInterfaceTests.cs +2/-2     
CombinedInputActionsTests.cs +2/-2     
DragAndDropTests.cs +2/-2     
FileLogHandlerTests.cs +2/-2     
LogTests.cs +2/-2     
JavascriptEnabledBrowserTests.cs +2/-2     
MiscTests.cs +2/-2     
NavigationTests.cs +2/-2     
ObjectStateAssumptionsTests.cs +2/-2     
PageLoadingTests.cs +2/-2     
PartialLinkTextMatchTests.cs +2/-2     
PositionAndSizeTests.cs +2/-2     
PrintTests.cs +2/-2     
ProxySettingTests.cs +2/-2     
ProxyTests.cs +2/-2     
RelativeLocatorTests.cs +2/-2     
SelectElementHandlingTests.cs +2/-2     
SessionHandlingTests.cs +2/-2     
ShadowRootHandlingTests.cs +2/-2     
SlowLoadingPageTests.cs +2/-2     
StaleElementReferenceTests.cs +2/-2     
SvgDocumentTests.cs +2/-2     
SvgElementTests.cs +2/-2     
TagNameTests.cs +2/-2     
TakesScreenshotTests.cs +2/-2     
TargetLocatorTests.cs +2/-2     
TextHandlingTests.cs +2/-2     
TextPagesTests.cs +2/-2     
TimeoutDriverOptionsTests.cs +2/-2     
TypingTests.cs +2/-2     
UnexpectedAlertBehaviorTests.cs +2/-2     
UploadTests.cs +2/-2     
VirtualAuthenticatorTests.cs +2/-2     
VisibilityTests.cs +2/-2     
WebElementTests.cs +2/-2     
WindowSwitchingTests.cs +2/-2     
WindowTests.cs +2/-2     
FirefoxDriverServiceTests.cs +2/-2     
FirefoxDriverTests.cs +2/-2     
FirefoxProfileManagerTests.cs +2/-2     
BUILD.bazel +2/-2     
EventFiringWebDriverElementTests.cs +2/-2     
EventFiringWebDriverTests.cs +2/-2     
ExecuteJavaScriptTests.cs +2/-2     
BUILD.bazel +3/-3     
DefaultWaitTests.cs +2/-2     
PopupWindowFinderTests.cs +2/-2     
SlowLoadableComponentTests.cs +2/-2     
WebDriverWaitTests.cs +2/-2     

@qodo-code-review

qodo-code-review Bot commented Feb 9, 2026 •

Copy link
Copy Markdown
Contributor

PR Compliance Guide 🔍

(Compliance updated until commit b0e30c0)

Below is a summary of compliance checks for this PR:

Security Compliance
🟢
No security concerns identified No security vulnerabilities detected by AI analysis. Human verification advised for critical code.
Ticket Compliance
⚪
🎫 No ticket provided
  • Create ticket/issue
Codebase Duplication Compliance
⚪
Codebase context is not defined

Follow the guide to enable codebase context checks.

Custom Compliance
🟢
Generic: Comprehensive Audit Trails

Objective: To create a detailed and reliable record of critical system actions for security analysis
and compliance.

Status: Passed

Learn more about managing compliance generic rules or creating your own custom rules

Generic: Meaningful Naming and Self-Documenting Code

Objective: Ensure all identifiers clearly express their purpose and intent, making code
self-documenting

Status: Passed

Learn more about managing compliance generic rules or creating your own custom rules

Generic: Robust Error Handling and Edge Case Management

Objective: Ensure comprehensive error handling that provides meaningful context and graceful
degradation

Status: Passed

Learn more about managing compliance generic rules or creating your own custom rules

Generic: Secure Error Handling

Objective: To prevent the leakage of sensitive system information through error messages while
providing sufficient detail for internal debugging.

Status: Passed

Learn more about managing compliance generic rules or creating your own custom rules

Generic: Secure Logging Practices

Objective: To ensure logs are useful for debugging and auditing without exposing sensitive
information like PII, PHI, or cardholder data.

Status: Passed

Learn more about managing compliance generic rules or creating your own custom rules

Generic: Security-First Input Validation and Data Handling

Objective: Ensure all data inputs are validated, sanitized, and handled securely to prevent
vulnerabilities

Status: Passed

Learn more about managing compliance generic rules or creating your own custom rules

  • Update
Compliance status legend 🟢 - Fully Compliant
🟡 - Partial Compliant
🔴 - Not Compliant
⚪ - Requires Further Human Verification
🏷️ - Compliance label

Previous compliance checks

Compliance check up to commit ac6ab2d
Security Compliance
🟢
No security concerns identified No security vulnerabilities detected by AI analysis. Human verification advised for critical code.
Ticket Compliance
⚪
🎫 No ticket provided
  • Create ticket/issue
Codebase Duplication Compliance
⚪
Codebase context is not defined

Follow the guide to enable codebase context checks.

Custom Compliance
🟢
Generic: Comprehensive Audit Trails

Objective: To create a detailed and reliable record of critical system actions for security analysis
and compliance.

Status: Passed

Learn more about managing compliance generic rules or creating your own custom rules

Generic: Robust Error Handling and Edge Case Management

Objective: Ensure comprehensive error handling that provides meaningful context and graceful
degradation

Status: Passed

Learn more about managing compliance generic rules or creating your own custom rules

Generic: Secure Error Handling

Objective: To prevent the leakage of sensitive system information through error messages while
providing sufficient detail for internal debugging.

Status: Passed

Learn more about managing compliance generic rules or creating your own custom rules

Generic: Secure Logging Practices

Objective: To ensure logs are useful for debugging and auditing without exposing sensitive
information like PII, PHI, or cardholder data.

Status: Passed

Learn more about managing compliance generic rules or creating your own custom rules

Generic: Security-First Input Validation and Data Handling

Objective: Ensure all data inputs are validated, sanitized, and handled securely to prevent
vulnerabilities

Status: Passed

Learn more about managing compliance generic rules or creating your own custom rules

🔴
Generic: Meaningful Naming and Self-Documenting Code

Objective: Ensure all identifiers clearly express their purpose and intent, making code
self-documenting

Status:
Inconsistent class casing: The new test fixture class name DownLoadsTests uses inconsistent capitalization, reducing
naming clarity and consistency.

Referred Code
public class DownLoadsTests : DriverTestFixture
{

Learn more about managing compliance generic rules or creating your own custom rules

@qodo-code-review

qodo-code-review Bot commented Feb 9, 2026 •

Copy link
Copy Markdown
Contributor

PR Code Suggestions ✨

Explore these optional code suggestions:

CategorySuggestion                                                                                                                                    Impact
Possible issue
✅ Fix class name casing
Suggestion Impact:The class name was corrected from DownLoadsTests to DownloadsTests.

code diff:

-public class DownLoadsTests : DriverTestFixture
+public class DownloadsTests : DriverTestFixture

Correct the class name DownLoadsTests to DownloadsTests to match the file name
and standard naming conventions.

dotnet/test/common/DownloadsTests.cs [32]

-public class DownLoadsTests : DriverTestFixture
+public class DownloadsTests : DriverTestFixture

[Suggestion processed]

Suggestion importance[1-10]: 6

__

Why: The PR introduces a typo in the class name DownLoadsTests, which should be DownloadsTests to match the file name and C# naming conventions.

Low
General
Remove dead commented code

Remove the commented-out class declaration //class DefaultKeyboardTests :
BiDiTestFixture to clean up dead code.

dotnet/test/common/BiDi/Input/DefaultKeyboardTests.cs [22]

-//class DefaultKeyboardTests : BiDiTestFixture
 
+
  • Apply / Chat
Suggestion importance[1-10]: 3

__

Why: The suggestion correctly identifies and proposes the removal of commented-out code, which improves code readability and maintainability.

Low
  • Update

@SeleniumHQ SeleniumHQ deleted a comment from selenium-ci Feb 9, 2026

@nvborisenko nvborisenko left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also propose to remove it:


@cgoldberg
cgoldberg merged commit aa39536 into SeleniumHQ:trunk Feb 9, 2026
18 checks passed
@cgoldberg
cgoldberg deleted the dotnet-rename-tests branch February 9, 2026 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

B-build Includes scripting, bazel and CI integrations B-support Issue or PR related to support classes C-dotnet .NET Bindings Review effort 2/5

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[🚀 Feature]: consistent format for .NET test class names

3 participants