27 lines
881 B
C#
27 lines
881 B
C#
using Microsoft.Playwright;
|
|
using Microsoft.Playwright.NUnit;
|
|
|
|
namespace Tests;
|
|
|
|
[Parallelizable(ParallelScope.Self)]
|
|
[TestFixture]
|
|
public class TelerikLicenseTests : PageTest
|
|
{
|
|
private const string BaseUrl = "http://localhost:5256";
|
|
|
|
[Test]
|
|
public async Task TelerikLicenseBannerIsNotVisible()
|
|
{
|
|
await Page.GotoAsync(BaseUrl + "/agents");
|
|
|
|
await Page.WaitForLoadStateAsync(LoadState.NetworkIdle);
|
|
var grid = Page.Locator(".agents-grid");
|
|
await Expect(grid).ToBeVisibleAsync();
|
|
|
|
var licenseWarning = Page.GetByText("We couldn't verify your license key for Telerik UI for Blazor");
|
|
await Expect(licenseWarning).Not.ToBeVisibleAsync();
|
|
|
|
var trialBanner = Page.GetByText("Telerik UI for Blazor Trial", new PageGetByTextOptions { Exact = false });
|
|
await Expect(trialBanner).Not.ToBeVisibleAsync();
|
|
}
|
|
} |