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)
65
65
66
66
app . MapBlazorHub ( ) ;
67
67
app . MapFallbackToPage ( "/_Host" ) ;
68
+ app . MapFallbackToPage ( "/searchByTag/{tag}" , "/_Host" ) ;
69
+ app . MapFallbackToPage ( "/search/{searchTerm}" , "/_Host" ) ;
68
70
}
69
- }
71
+ }
Original file line number Diff line number Diff line change @@ -40,4 +40,24 @@ public async Task ShouldBootUpWithSqlDatabase()
40
40
41
41
result . IsSuccessStatusCode . Should ( ) . BeTrue ( ) ;
42
42
}
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
+ }
43
63
}
You can’t perform that action at this time.
0 commit comments