ni / nimble

The NI Nimble Design System
https://nimble.ni.dev
MIT License
32 stars 8 forks source link

Refactor common Blazor acceptance test code #2074

Closed m-akinc closed 4 months ago

m-akinc commented 5 months ago

Pull Request

๐Ÿคจ Rationale

Part of #1976

๐Ÿ‘ฉโ€๐Ÿ’ป Implementation

I've created a new project in blazor-workspace to contain code shared between the Nimble and Spright acceptance test projects. I ran into issues with the page components not being found when running tests from the VS Test Explorer. Through trial and error, I discovered that the Setup instance needed to be created in the same assembly as the page components for them to be discovered. Normally this is governed by the AppAssembly property of the Router component (in App.razor), but that is not used by the test runner.

๐Ÿงช Testing

Tests pass.

โœ… Checklist

m-akinc commented 5 months ago

@msmithNI would you mind buddying/first-reviewing this?