зеркало из https://github.com/DeGsoft/maui-linux.git
[UITests] Make sure to close action sheet (#1387)
This commit is contained in:
Родитель
abe2f3d1f5
Коммит
35bd9fce53
|
@ -15,6 +15,7 @@ namespace Xamarin.Forms.Controls.Issues
|
|||
public class Bugzilla58779 : TestContentPage
|
||||
{
|
||||
const string ButtonId = "button";
|
||||
const string CancelId = "cancel";
|
||||
|
||||
protected override void Init()
|
||||
{
|
||||
|
@ -47,7 +48,7 @@ namespace Xamarin.Forms.Controls.Issues
|
|||
|
||||
button.Clicked += (sender, e) => {
|
||||
String[] string_array = {"1","2","3","4","5","6","7","8","9","10","11","12","13","14","15"};
|
||||
this.DisplayActionSheet("title","cancel","destruction",string_array);
|
||||
this.DisplayActionSheet("title",CancelId,"destruction",string_array);
|
||||
};
|
||||
|
||||
Content = content;
|
||||
|
@ -61,6 +62,8 @@ namespace Xamarin.Forms.Controls.Issues
|
|||
RunningApp.WaitForElement(q => q.Marked(ButtonId));
|
||||
RunningApp.Tap(q => q.Marked(ButtonId));
|
||||
RunningApp.Screenshot ("Check list fits on screen");
|
||||
RunningApp.WaitForElement(q => q.Marked(CancelId));
|
||||
RunningApp.Tap(q => q.Marked(CancelId));
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче