Activities of "maliming"

hi

Yes. You can give it a try.

: )

hi

services.AddSingleton<AbpBlazorMessageLocalizerHelper<BookStoreResource>>();

using BookStore.Localization;
using Bunit;
using Microsoft.Extensions.DependencyInjection;
using Shouldly;
using Volo.Abp.AspNetCore.Components.Web;
using Xunit;

namespace BookStore.Blazor.Tests;

public class Index_Tests : BookStoreBlazorTestBase
{
    protected override void AfterAddApplication(IServiceCollection services)
    {
        services.AddSingleton<AbpBlazorMessageLocalizerHelper<BookStoreResource>>();
        base.AfterAddApplication(services);
    }

    [Fact]
    public void Index_Test()
    {
        // Arrange
        var ctx = CreateTestContext();
        // var lh = GetRequiredService<AbpBlazorMessageLocalizerHelper<BookStoreResource>>();
        // ctx.Services.AddSingleton(lh);

        // Act
        var cut = ctx.RenderComponent<BookStore.Blazor.Pages.Index>();


        // Assert
        cut.Find(".lead").InnerHtml.Contains("Welcome to the application. This is a startup project based on the ABP framework. For more information, visit abp.io.").ShouldBeTrue();
        cut.Find("#username").InnerHtml.Contains("Welcome admin").ShouldBeTrue();
    }
}

: )

hi

Then I guess you have to override the setting component.

Btw, Does the database have any relevant logs?

hi

I think the context.RequestAborted happened. that is request is aborted

Can you share your web.config? This is not a code problem instead of environment.

Thanks.

The ReturnUrl exists on the request URL

https://localhost:44322/Account/Login?ReturnUrl=%2Fconnect%2Fauthorize%3Fresponse_type%3Dcode%26client_id%3DAngular%26state%3DcU1ENEI5VVVhYU1jVzFhWlIyd0F4WkRoR3pMRGxJYng1dkNBQWJXdkFYfkVu%26redirect_uri%3Dhttp%253A%252F%252Flocalhost%253A4200%26scope%3Doffline_access%2520openid%2520AccountService%2520IdentityService%2520AdministrationService%2520SaasService%2520ProductService%2520NotificationService%2520FileManagement%26code_challenge%3DBpwCGKKxj8134IpedZFvbQgHGMXkTjugkkVFdwly88I%26code_challenge_method%3DS256%26nonce%3DcU1ENEI5VVVhYU1jVzFhWlIyd0F4WkRoR3pMRGxJYng1dkNBQWJXdkFYfkVu%26culture%3Den%26ui-culture%3Den

string returnUrl = request.Query["ReturnUrl"]; 
var openIddictRequestHelper = httpContext.RequestServices.GetService<AbpOpenIddictRequestHelper>(); 
var openIddictRequest = await openIddictRequestHelper.GetFromReturnUrlAsync(returnUrl); 

hi

Can you fork this sample and add your code to reproduce the error?

Thanks

https://github.com/abpframework/abp-samples/tree/master/BlazorPageUniTest

hi

The core class: https://github.com/abpframework/abp-samples/blob/master/DynamicPermission/src/BookStore.Web/Pages/Index.cshtml.cs

https://github.com/abpframework/abp-samples/blob/master/DynamicPermission/README.md

Showing 3641 to 3650 of 10708 entries
Learn More, Pay Less
33% OFF
All Trainings!
Get Your Deal
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.0.0-preview. Updated on September 16, 2025, 10:35