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
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]

### Changed
- The **Documentation** navigation item now opens the project wiki rather than the
README, so it lands on the user-facing documentation.
- Migrated the test suites to xUnit v3 on Microsoft Testing Platform, replacing
the VSTest stack. Development-only; the shipped app is unaffected.
- Refreshed dependencies to their latest stable releases, including the Windows
Expand Down
7 changes: 5 additions & 2 deletions src/Snipdeck.Core/ViewModels/ShellViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,11 @@ public sealed partial class ShellViewModel : ObservableObject
{
public const string AllTagsSentinel = "All";

/// <summary>The project documentation opened by the "Documentation" nav item.</summary>
public const string DocumentationUrl = "https://github.com/StuartMeeks/Snipdeck#readme";
/// <summary>
/// The project documentation opened by the "Documentation" nav item. The wiki
/// is the home for user-facing docs; the README is only the project intro.
/// </summary>
public const string DocumentationUrl = "https://github.com/StuartMeeks/Snipdeck/wiki";

// Glyph for the "All" tag entry (Segoe Fluent Icons "Filter").
private const string _allTagsGlyph = "\uE71C";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,14 +175,16 @@ public async Task SelectTag_reapplies_the_snip_list_when_the_same_tag_is_re_invo
}

[Fact]
public async Task OpenDocumentation_opens_the_readme_url()
public async Task OpenDocumentation_opens_the_wiki_url()
{
var (vm, links, _, _) = await BuildAsync();

await vm.OpenDocumentationAsync();

Assert.Equal(1, links.OpenCount);
Assert.Equal(ShellViewModel.DocumentationUrl, links.LastOpenedUrl);
// Asserted as a literal, not against the constant: comparing the constant
// to itself would pass whatever the nav item actually pointed at.
Assert.Equal("https://github.com/StuartMeeks/Snipdeck/wiki", links.LastOpenedUrl);
}
}
}
Loading