Agent Tests for API, MAUI, and Slop Features
This commit is contained in:
@@ -3,7 +3,11 @@ namespace Tests.Shared;
|
||||
public class ToastComponent
|
||||
{
|
||||
private readonly Website _website;
|
||||
public ToastComponent(Website website) => _website = website;
|
||||
|
||||
public ToastComponent(Website website)
|
||||
{
|
||||
_website = website;
|
||||
}
|
||||
|
||||
public ILocator Container => _website.Locator(".toastsContainer");
|
||||
public ILocator Toasts => _website.Locator(".toastsContainer .toastContainer");
|
||||
@@ -24,7 +28,7 @@ public class ToastComponent
|
||||
return Array.from(titles).some(t => t.textContent.trim().includes(expected));
|
||||
}",
|
||||
text,
|
||||
new() { Timeout = 3000 }
|
||||
new PageWaitForFunctionOptions { Timeout = 3000 }
|
||||
);
|
||||
return true;
|
||||
}
|
||||
@@ -33,4 +37,4 @@ public class ToastComponent
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user