Sad Tux - Windows bias detected
This page contains Windows bias

About This Page

This page is part of the Azure documentation. It contains code examples and configuration instructions for working with Azure services.

Bias Analysis

Detected Bias Types
windows_first
Summary
The documentation shows a subtle Windows bias in its configuration examples: in both the TypeScript and C# code samples, the operating system is set to Windows (ServiceOS.WINDOWS and OSPlatform.Windows) in the example code, even though the default value is Linux. The Windows option is listed before Linux in the available options, and the example code uses Windows as the value, which may suggest a preference or prioritization of Windows over Linux. However, Linux is supported and documented, and the default is Linux, so the bias is not strong but present in example ordering and emphasis.
Recommendations
  • Provide example code using Linux as the OS value, or alternate between Windows and Linux in examples to show parity.
  • List Linux before Windows in the available options, especially since Linux is the default.
  • Add a note explicitly stating that both Windows and Linux are equally supported and that Linux is the default/recommended for most users.
  • Ensure that any platform-specific instructions or troubleshooting steps are provided for both Windows and Linux environments.
GitHub Create Pull Request

Scan History

Date Scan Status Result
2026-01-12 00:00 #99 completed Clean Clean
2026-01-11 06:20 #98 completed Clean Clean
2026-01-11 00:00 #95 cancelled Clean Clean
2026-01-10 00:00 #92 completed Clean Clean
2026-01-09 00:00 #87 cancelled Clean Clean
2026-01-06 22:28 #78 completed Clean Clean
2025-12-29 18:00 #48 cancelled Biased Biased
2025-12-15 00:00 #7 completed Clean Clean
2025-12-14 05:05 #6 completed Clean Clean

Flagged Code Snippets

import { createAzurePlaywrightConfig, ServiceOS, ServiceAuth } from "@azure/playwright";
import { defineConfig } from "@playwright/test";
import { AzureCliCredential } from "@azure/identity";
import config from "./playwright.config";

export default defineConfig(
  config,
  createAzurePlaywrightConfig(config, {
    serviceAuthType: ServiceAuth.ACCESS_TOKEN // Use this option if authenticating with access tokens. This mode of authentication must be explicitly enabled in your workspace.
    os: ServiceOS.WINDOWS, // Specify the browser's OS your tests will automate.
    runName: "Sample-Run-Name1", // Set a Name for every test run to distinguish them in the azure portal.
    credential: new AzureCliCredential(), // Select the authentication method you want to use with Entra.
    exposeNetwork: '<loopback>', // Allows cloud browsers to access local resources from your Playwright test code without additional firewall config.
    connectTimeout: 30000 // Set the timeout for your tests (in milliseconds).
  })
);

      os: ServiceOS.WINDOWS