@@ -17,11 +17,14 @@ public E2ETests_WebUI_CheckMessageIsReceivedAndDisplayed(ITestOutputHelper outpu
1717 {
1818 }
1919
20- [ Theory ]
21- [ InlineData ( "/" , false ) ]
22- [ InlineData ( "/" , true ) ]
23- [ InlineData ( "/smtp4dev" , true ) ]
24- public void CheckMessageIsReceivedAndDisplayed ( string basePath , bool inMemoryDb )
20+ [ Theory ]
21+ [ InlineData ( "" , "" , false ) ]
22+ [ InlineData ( "" , "/" , true ) ]
23+ [ InlineData ( "/smtp4dev" , "/smtp4dev" , true ) ]
24+ [ InlineData ( "/smtp4dev" , "/smtp4dev/" , true ) ]
25+ [ InlineData ( "/smtp4dev" , "" , true ) ]
26+ [ InlineData ( "/smtp4dev" , "/" , true ) ]
27+ public void CheckMessageIsReceivedAndDisplayed ( string basePath , string testPath , bool inMemoryDb )
2528 {
2629 RunUITestAsync ( $ "{ nameof ( CheckMessageIsReceivedAndDisplayed ) } -{ basePath } -{ inMemoryDb } ", async ( page , baseUrl , smtpPortNumber ) =>
2730 {
@@ -59,13 +62,14 @@ public void CheckMessageIsReceivedAndDisplayed(string basePath, bool inMemoryDb)
5962 var rows = await grid . GetRowsAsync ( ) ;
6063 return rows . FirstOrDefault ( ) ;
6164 } ) ;
62-
65+
6366 Assert . NotNull ( messageRow ) ;
6467 Assert . True ( await messageRow . ContainsTextAsync ( messageSubject ) ) ;
6568 } , new UITestOptions
6669 {
6770 InMemoryDB = inMemoryDb ,
68- BasePath = basePath
71+ BasePath = basePath ,
72+ TestPath = testPath
6973 } ) ;
7074 }
7175 }
0 commit comments