Repository navigation
Rework the example for sdk-dotnet 5.0.0 and VRT 6.0 - #3
Merged
Merged
Conversation
Replace the 2020 dotnet-script with an NUnit project on .NET 10 that uses Microsoft.Playwright and VisualRegressionTracker 5.0.0 from NuGet. CI runs it against a 6.0.0-rc1 server: the first run fails on the new baseline, the build is approved through the API, and the second run passes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… test Also derive the viewport tag from the page, install only the headless shell, and require the first CI run to fail on the missing baseline. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…y tee Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replaces the 2020
dotnet-scriptexample (PlaywrightSharp0.162 and SDK 4.7.0) with a runnable project for sdk-dotnet 5.0.0.Example (
playwright/)net10.0. It runs on Microsoft.Testing.Platform, andglobal.jsonpins the SDK the same way sdk-dotnet does.Microsoft.Playwright1.64.1 andVisualRegressionTracker5.0.0 from NuGet.Microsoft.Playwright.NUnitis not used because it still targets NUnit 3.TestSessionis aSetUpFixture. It starts one VRT build for the whole run and stops it inOneTimeTearDown, even when a test fails, then closes the browser.HomePageTeststakes a full-page screenshot of https://the-internet.herokuapp.com and tracks it.NewandUnresolvedfail the test, either through the SDK's exception or, withenableSoftAssert, through the status assertion.Ok,ApprovedandAutoApprovedpass.vrt.json, copied fromvrt.json.example, or fromVRT_*environment variables.vrt.jsonis gitignored and copied to the output folder, because the test host runs frombin/.CI
.github/workflows/ci.ymlfollows the one in examples-python:api/migration:6.0.0-rc1from.github/vrt/docker-compose.yml. The API key and project are the default seed values.No baseline..github/vrt/approve-latest-build.shlogs in as the seed user. It checks that the failed run's build was stopped (isRunning == false), then approves it.Dependabot
Weekly, at most 5 open PRs per ecosystem:
nuget, with grouped minor/patch, major and security updates;docker-composefor the VRT images (it will propose 6.0.0);github-actions.For the owner
.github/vrt/docker-compose.ymlto6.0.0at the server release.🤖 Generated with Claude Code