File tree Expand file tree Collapse file tree 2 files changed +23
-1
lines changed
tests/LinkDotNet.Blog.IntegrationTests Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -65,5 +65,7 @@ private static void ConfigureApp(WebApplication app)
6565
6666 app . MapBlazorHub ( ) ;
6767 app . MapFallbackToPage ( "/_Host" ) ;
68+ app . MapFallbackToPage ( "/searchByTag/{tag}" , "/_Host" ) ;
69+ app . MapFallbackToPage ( "/search/{searchTerm}" , "/_Host" ) ;
6870 }
69- }
71+ }
Original file line number Diff line number Diff line change @@ -40,4 +40,24 @@ public async Task ShouldBootUpWithSqlDatabase()
4040
4141 result . IsSuccessStatusCode . Should ( ) . BeTrue ( ) ;
4242 }
43+
44+ [ Fact ]
45+ public async Task ShouldAllowDotsForTagSearch ( )
46+ {
47+ var client = factory . CreateClient ( ) ;
48+
49+ var result = await client . GetAsync ( "/searchByTag/.NET5" ) ;
50+
51+ result . IsSuccessStatusCode . Should ( ) . BeTrue ( ) ;
52+ }
53+
54+ [ Fact ]
55+ public async Task ShouldAllowDotsForFreeTextSearch ( )
56+ {
57+ var client = factory . CreateClient ( ) ;
58+
59+ var result = await client . GetAsync ( "/searchByTag/.NET5" ) ;
60+
61+ result . IsSuccessStatusCode . Should ( ) . BeTrue ( ) ;
62+ }
4363}
You can’t perform that action at this time.
0 commit comments