Skip to main content

AwesomeAssertions extensions for Nullean.Snapshots.Browser: MatchJourneySnapshot and MatchAriaSnapshot.

Total Downloads
4.2K
4,172
Published
Nov 17, 2026
6d ago

Get Started

dotnet add package Nullean.Snapshots.Browser.Assertions --version 0.18.0
ProductVersions
.NET
net10.0net11.0

README

Nullean.Snapshots.Browser.Assertions

snapshots.

AwesomeAssertions extensions for Nullean.Snapshots.Browser: run a journey in Chrome and assert its transcript (JourneyTest, MatchJourneySnapshot), or one page's accessibility tree (MatchAriaSnapshot).

NuGet

Install

dotnet add package Nullean.Snapshots.Browser.Assertions

Quick start

A test case per journey file ([JourneyFiles] is in Nullean.Snapshots.TUnit), skipping the ones the site does not support, with the reason shown:

using Nullean.Snapshots;
using Nullean.Snapshots.Browser;
using Nullean.Snapshots.TUnit;

public class JourneyTests
{
	private static readonly JourneySnapshotOptions Options = new() { BaseUrl = new Uri("http://localhost:5000/") };

	[Test]
	[JourneyFiles("journeys")]                                    // one test case per .journey file
	public async Task Run(SnapshotFile journey)
	{
		if (JourneyTest.SkipReason(journey, Options) is { } why)
			Skip.Test(why);
		await JourneyTest.RunAsync(journey, Options);
	}
}

Run and assert in two steps to pass SnapshotOptions or a reason: transcript.Should().MatchJourneySnapshot(because: "the basket shows the lamp"). A Nullean.Cdp page's accessibility tree is stored as .verified.aria with (await page.SnapshotAsync(new() { Compact = true })).Should().MatchAriaSnapshot().

Learn more

Downloads by Version

Similar & Alternative Packages

Hand-picked matching NuGet libraries based on tags & ecosystem

Depended On By

Find packages that declare this package as a dependency. NuGet does not provide a reverse-dependency endpoint, so candidates are checked on demand.

Adoption Assessment

Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.

Compatibility metadata lists 2 target frameworks; confirm the exact target used by your application.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.