/
githubmirror
/
aspnetcore
Обзор
Документация
Войти
/
githubmirror
/
aspnetcore
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Components/test/E2ETest/Tests/RemoteAuthenticationTest.cs
34 строки
1 KB
Stephen Halter
Add ClaimData for AuthenticationStateData and fix overtrimming (#56878)
19 июл 2024, 22:38
Не верифицирован
19 июл 2024, 22:38
a8f5c7e
Код
Авторство
О чём код?
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.AspNetCore.Components.E2ETest.Infrastructure; using Microsoft.AspNetCore.Components.E2ETest.Infrastructure.ServerFixtures; using Microsoft.AspNetCore.E2ETesting; using OpenQA.Selenium; using TestServer; using Xunit.Abstractions; namespace Microsoft.AspNetCore.Components.E2ETest.Tests; public class RemoteAuthenticationTest : ServerTestBase<TrimmingServerFixture<RemoteAuthenticationStartup>> { public RemoteAuthenticationTest( BrowserFixture browserFixture, TrimmingServerFixture<RemoteAuthenticationStartup> serverFixture, ITestOutputHelper output) : base(browserFixture, serverFixture, output) { } [Fact] public void NavigateToLogin_PreservesExtraQueryParams() { // If the preservedExtraQueryParams passed to NavigateToLogin by RedirectToLogin gets trimmed, // the OIDC endpoints will fail to authenticate the user. Navigate("/subdir/test-remote-authentication"); var heading = Browser.Exists(By.TagName("h1")); Browser.Equal("Hello, Jane Doe!", () => heading.Text); } }