Adding vibe tests

This commit is contained in:
2026-06-25 10:52:11 -04:00
parent 00e7184b3b
commit f8b0974b79
7 changed files with 219 additions and 8 deletions
+5 -8
View File
@@ -7,24 +7,21 @@ namespace Tests;
[TestFixture]
public class TelerikLicenseTests : PageTest
{
private const string BaseUrl = "http://localhost:5256";
[Test]
public async Task TelerikLicenseBannerIsNotVisible()
{
// 1. Navigate to the agents page which uses Telerik components
await Page.GotoAsync("http://localhost:8080/agents");
// 2. Wait for the page to load and the grid to be visible
await Page.GotoAsync(BaseUrl + "/agents");
await Page.WaitForLoadStateAsync(LoadState.NetworkIdle);
var grid = Page.Locator(".agents-grid");
await Expect(grid).ToBeVisibleAsync();
// 3. Verify that the Telerik license warning banner is NOT present
// According to Telerik docs, the warning text is:
// "We couldn't verify your license key for Telerik UI for Blazor. Please see the build log for details and resolution steps"
var licenseWarning = Page.GetByText("We couldn't verify your license key for Telerik UI for Blazor");
await Expect(licenseWarning).Not.ToBeVisibleAsync();
// 4. Also verify that no "Trial" banner is visible
var trialBanner = Page.GetByText("Telerik UI for Blazor Trial", new PageGetByTextOptions { Exact = false });
await Expect(trialBanner).Not.ToBeVisibleAsync();
}