mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 11:48:06 +01:00
* Add more UI-Test, refactor UITestAutomation * Convert manual test-case to automation UI-Tests: Validating Empty-view is shown if no entries in the list. Validating Empty-view is NOT shown if 1 or more entries in the list. Validating Add-an-entry HyperlinkButton in Empty-view works correctly. Validating Adding-entry Button works correctly. Validating the Add button should be Disabled if more than 9 hosts in one entry. Validating the Add button should be Enabled if less or equal 9 hosts in one entry. Validating error message should be shown if not run as admin. Validating Warning-Dialog will be shown if 'Show a warning at startup' toggle is On. Validating Warning-Dialog will NOT be shown if 'Show a warning at startup' toggle is Off. Validating click 'Quit' button in Warning-Dialog, the Hosts File Editor window would be closed. Validating click 'Accept' button in Warning-Dialog, the Hosts File Editor window would NOT be closed. --------- Co-authored-by: Jerry Xu <nxu@microsoft.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
24 lines
787 B
C#
24 lines
787 B
C#
// Copyright (c) Microsoft Corporation
|
|
// The Microsoft Corporation licenses this file to you under the MIT license.
|
|
// See the LICENSE file in the project root for more information.
|
|
|
|
namespace Microsoft.PowerToys.UITest
|
|
{
|
|
/// <summary>
|
|
/// Represents a TextBlock in the UI test environment.
|
|
/// TextBlock provides a lightweight control for displaying small amounts of flow content.
|
|
/// </summary>
|
|
public class TextBlock : Element
|
|
{
|
|
private static readonly string ExpectedControlType = "ControlType.Text";
|
|
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="TextBlock"/> class.
|
|
/// </summary>
|
|
public TextBlock()
|
|
{
|
|
this.TargetControlType = TextBlock.ExpectedControlType;
|
|
}
|
|
}
|
|
}
|