Skip to content

Commit 3b229d3

Browse files
committed
Adding screenshots for debugging
1 parent 909443e commit 3b229d3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

MaterialDesignThemes.UITests/WPF/PasswordBoxes/PasswordBoxTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,13 @@ public async Task RevealPasswordBox_WithBoundPasswordProperty_RespectsThreeWayBi
102102
string? boundText1 = await userControl.GetProperty<string>(nameof(BoundPasswordBox.ViewModelPassword));
103103
string? password1 = await passwordBox.GetProperty<string>(nameof(PasswordBox.Password));
104104
string? clearTextPassword1 = await clearTextPasswordTextBox.GetProperty<string>(TextBox.TextProperty);
105+
await recorder.SaveScreenshot();
105106

106107
// Act 2 (Update in RevealPasswordTextBox updates PasswordBox and VM)
107108
await revealPasswordButton.LeftClick();
109+
await recorder.SaveScreenshot();
108110
await Task.Delay(50); // Wait for the "clear text TextBox" to become visible
111+
await recorder.SaveScreenshot();
109112
await clearTextPasswordTextBox.SendKeyboardInput($"2");
110113
string? boundText2 = await userControl.GetProperty<string>(nameof(BoundPasswordBox.ViewModelPassword));
111114
string? password2 = await passwordBox.GetProperty<string>(nameof(PasswordBox.Password));

0 commit comments

Comments
 (0)