* tests: setup initial infra for end to end tests * tests: rework end to end host * tests: remove need for bang operator * tests: correct header component tests * docs: add README.md to blog directory with instructions on setting up local dev environment with and without docker * docs: update non-developer run command * feat: finish layout of header * feat: add favicon * tests: setup test coverage * chore: update workflow with missing playwright step * chore: add install command
17 lines
415 B
C#
17 lines
415 B
C#
using Microsoft.AspNetCore.Hosting.Server.Features;
|
|
using Microsoft.AspNetCore.Http.Features;
|
|
|
|
namespace Blog.Tests.EndToEnd;
|
|
|
|
[TestFixture]
|
|
public class BlogTest : PageTest
|
|
{
|
|
private readonly BlogHostFactory<Program> _factory = new();
|
|
|
|
public override BrowserNewContextOptions ContextOptions()
|
|
{
|
|
var options = base.ContextOptions();
|
|
options.BaseURL = _factory.ServerAddress;
|
|
return options;
|
|
}
|
|
} |