tests: setup initial infra for end to end tests
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
namespace Blog.Tests.EndToEnd;
|
||||
|
||||
public class BlogPageTest : PageTest
|
||||
{
|
||||
private readonly BlogHostFactory<Program> _factory = new();
|
||||
|
||||
public override BrowserNewContextOptions ContextOptions()
|
||||
{
|
||||
var baseUrl = "http://localhost:5000";
|
||||
|
||||
_factory
|
||||
.WithWebHostBuilder(builder => builder.UseUrls(baseUrl))
|
||||
.CreateDefaultClient();
|
||||
|
||||
var options = base.ContextOptions();
|
||||
options.BaseURL = baseUrl;
|
||||
return options;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user