<commit_before>// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

using System.Threading.Tasks;
using Microsoft.AspNetCore.E2ETesting;
using Microsoft.AspNetCore.Testing;
using Templates.Test.Helpers;
using Xunit;
using Xunit.Abstractions;

namespace Templates.Test.SpaTemplateTest
{
    public class ReactTemplateTest : SpaTemplateTestBase
    {
        public ReactTemplateTest(ProjectFactoryFixture projectFactory, BrowserFixture browserFixture, ITestOutputHelper output)
            : base(projectFactory, browserFixture, output)
        {
        }

        [ConditionalFact]
        [SkipOnHelix("selenium")]
        public Task ReactTemplate_Works_NetCore()
            => SpaTemplateImplAsync("reactnoauth", "react", useLocalDb: false, usesAuth: false);

        [ConditionalFact]
        [SkipOnHelix("selenium")]
        public Task ReactTemplate_IndividualAuth_NetCore()
            => SpaTemplateImplAsync("reactindividual", "react", useLocalDb: false, usesAuth: true);

        [ConditionalFact]
        [SkipOnHelix("selenium")]
        public Task ReactTemplate_IndividualAuth_NetCore_LocalDb()
            => SpaTemplateImplAsync("reactindividualuld", "react", useLocalDb: true, usesAuth: true);<commit_msg>Quarantine the `ReactTemplate_IndividualAuth_NetCore` test (#19584)<commit_after>// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

using System.Threading.Tasks;
using Microsoft.AspNetCore.E2ETesting;
using Microsoft.AspNetCore.Testing;
using Templates.Test.Helpers;
using Xunit;
using Xunit.Abstractions;

namespace Templates.Test.SpaTemplateTest
{
    public class ReactTemplateTest : SpaTemplateTestBase
    {
        public ReactTemplateTest(ProjectFactoryFixture projectFactory, BrowserFixture browserFixture, ITestOutputHelper output)
            : base(projectFactory, browserFixture, output)
        {
        }

        [ConditionalFact]
        [SkipOnHelix("selenium")]
        public Task ReactTemplate_Works_NetCore()
            => SpaTemplateImplAsync("reactnoauth", "react", useLocalDb: false, usesAuth: false);

        [QuarantinedTest]
        [ConditionalFact]
        [SkipOnHelix("selenium")]
        public Task ReactTemplate_IndividualAuth_NetCore()
            => SpaTemplateImplAsync("reactindividual", "react", useLocalDb: false, usesAuth: true);

        [ConditionalFact]
        [SkipOnHelix("selenium")]
        public Task ReactTemplate_IndividualAuth_NetCore_LocalDb()
            => SpaTemplateImplAsync("reactindividualuld", "react", useLocalDb: true, usesAuth: true);
{'fraction_non_alphanumeric': 0.08949275362318841, 'fraction_numerical': 0.003985507246376811, 'mean_word_length': 3.930357142857143, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1563523', 'n_tokens_mistral': 766, 'n_tokens_neox': 728, 'n_words': 174}