Skip to content

Commit

Permalink
Adding screenshots for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
Keboo committed Nov 7, 2022
1 parent 909443e commit 3b229d3
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,13 @@ public async Task RevealPasswordBox_WithBoundPasswordProperty_RespectsThreeWayBi
string? boundText1 = await userControl.GetProperty<string>(nameof(BoundPasswordBox.ViewModelPassword));
string? password1 = await passwordBox.GetProperty<string>(nameof(PasswordBox.Password));
string? clearTextPassword1 = await clearTextPasswordTextBox.GetProperty<string>(TextBox.TextProperty);
await recorder.SaveScreenshot();

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

0 comments on commit 3b229d3

Please sign in to comment.