Skip to content

Instantly share code, notes, and snippets.

@bezysoftware
Created September 9, 2018 09:28
Show Gist options
  • Select an option

  • Save bezysoftware/43d7d2e2d893133ef8cc553ab8d8ac77 to your computer and use it in GitHub Desktop.

Select an option

Save bezysoftware/43d7d2e2d893133ef8cc553ab8d8ac77 to your computer and use it in GitHub Desktop.
[TestMethod] public async Task LoginAndTakeScreenshotsFiAsync() => await this.LoginAndTakeScreenshotsAsync("cs-CZ");
[TestMethod] public async Task LoginAndTakeScreenshotsDeAsync() => await this.LoginAndTakeScreenshotsAsync("de");
//... other languages
public async Task LoginAndTakeScreenshotsAsync(string lng)
{
var window = XamlWindow.Launch("app-automation-id");
// 1) main screen
await this.LoginAsync(lng, email);
this.Screenshot(1, lng);
// 2) edit tx dialog
this.OpenTransactionDialog();
this.Screenshot(2, lng);
// 3) simple split
await this.SimpleSplitAsync();
this.Screenshot(3, lng);
// 4) simple split
await this.HideDialogAsync();
await this.EditGroupAsync();
this.Screenshot(4, lng);
// 5) member detail
await this.HideDialogAsync();
await this.MemberDetailAsync();
this.Screenshot(5, lng);
// logout
await this.HideDialogAsync();
this.Logout();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment