Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions BlogWriter.Web.Tests/RunCommandDialogTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ public void Dialog_ShowsExactRunCommandAndAccessibleModal()
IRenderedComponent<RunCommandDialog> cut = Render<RunCommandDialog>();

Assert.Equal(RunCommandDialog.CommandText, cut.Find(".run-command-text").TextContent);
Assert.Contains(RunCommandDialog.HttpsPort, cut.Find(".run-command-port").TextContent);
Assert.Equal("dialog", cut.Find("dialog").GetAttribute("role"));
Assert.Equal("true", cut.Find("dialog").GetAttribute("aria-modal"));
Assert.Equal("Copy", cut.Find(".dialog-actions button").TextContent.Trim());
Expand Down
2 changes: 2 additions & 0 deletions BlogWriter.Web/Components/RunCommandDialog.razor
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<h2 id="run-command-title">Run Blog Writer</h2>
<p id="run-command-copy">Use this command in the repository terminal:</p>
<code class="run-command-text">@CommandText</code>
<p class="run-command-port">HTTPS port: @HttpsPort</p>
@if (!string.IsNullOrWhiteSpace(CopyMessage))
{
<p class="copy-message" role="status">@CopyMessage</p>
Expand All @@ -20,6 +21,7 @@

@code {
public const string CommandText = "dotnet run --project BlogWriter.Web/BlogWriter.Web.csproj --launch-profile https";
public const string HttpsPort = "7056";

private ElementReference _dialog;
private bool _opened;
Expand Down
Loading