Update screenshot method
This commit is contained in:
Родитель
2e159b73c7
Коммит
be541d2b1a
|
@ -51,8 +51,9 @@ namespace SkiaSharpSample.UITests
|
|||
|
||||
protected void TakeScreenshot(string testName)
|
||||
{
|
||||
var finalName = testName.Replace("\"", "_").Replace(" ", "_").ToLower();
|
||||
var f = App.Screenshot(testName);
|
||||
TestContext.AddTestAttachment(f.FullName);
|
||||
TestContext.AddTestAttachment(f.FullName, finalName);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -45,7 +45,7 @@ namespace SkiaSharpSample.UITests
|
|||
App.WaitForElement(testSelector);
|
||||
App.Tap(testSelector);
|
||||
|
||||
TakeScreenshot(testName.Replace("\"", "_"));
|
||||
TakeScreenshot(testName);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче