using System.Text.RegularExpressions; namespace MBN_STOCK_WEBVIEW.LegacyWeb.Tests; public sealed class LegacyExplicitModalExitContractTests { private static readonly string RepositoryRoot = FindRepositoryRoot(); private static readonly string WebRoot = Path.Combine( RepositoryRoot, "src", "MBN_STOCK_WEBVIEW.LegacyParityApp", "Web"); private static readonly string Markup = File.ReadAllText(Path.Combine(WebRoot, "index.html")); private static readonly string App = File.ReadAllText(Path.Combine(WebRoot, "app.js")); private static readonly string Styles = File.ReadAllText(Path.Combine(WebRoot, "styles.css")); private static readonly string ModalFocus = File.ReadAllText( Path.Combine(WebRoot, "legacy-modal-focus.js")); private static readonly string InputSmoke = File.ReadAllText(Path.Combine( RepositoryRoot, "scripts", "Test-LegacyPackageInput.mjs")); [Theory] [InlineData( "manual-financial-workspace", "manual-financial-exit", "나가기")] [InlineData( "manual-list-workspace", "manual-list-cancel", "취소")] public void Original_text_exit_is_a_focusable_footer_button( string workspaceId, string buttonId, string label) { Assert.Matches( $"id=\"{workspaceId}\"[\\s\\S]*?