v9.0.0
Default browser configuration
The UI Testing Toolbox now offers a default for the browser being used. The endless [Theory, Chrome]
attributes and passing the browser down the call chain are now while still supported, unnecessary, unless you want to use a different or multiple browsers.
Everything should keep on working, but it's still nicer to remove the now unnecessary code. So, in all projects, please do this:
- Update to the latest UI Testing Toolbox. Then code cleanup time! Warning:
UITestBase
classes should usually remain so check and revert them if they change after the below steps! - Do a Find and Replace in the UI test projects with the following will cover most cases:
[Theory, Chrome]
→[Fact]
,(Browser browser) =>
→() =>
,, browser);
→);
. - Run the following with "Use regular expressions" checked:
,\r\n.*browser\);
→);
,,\r\n.*browser,
→,
. - Do a Find and Replace of
(Browser browser)
→()
. - Do a reference lookup for
Browser.Chrome
(Shift+F12) to find any missed cases. - Finally, you'll need to check the formatting of all tests, because e.g. you may be able to make methods a lot more compact with fewer line breaks. All tests will have now unused references too, but if you have cleanup on save configured in VS, then just saving them will get rid of that.
All other changes
- LMBQ-249: Updating Lombiq.HelpfulLibraries NuGet reference by @MZole in #318
- OSOE-430: Improve stability directly after a page load by @sarahelsaig in #316
- NEST-462: Comply with new OC preview version as well by @wAsnk in #317
- OSOE-677: New baseline images by @wAsnk in #319
- TDEAL-2: Add EnableAutoSetupIfNotUITesting extension method by @sarahelsaig in #320
- OSOE-675: Set stopOnFail flag to true for Lombiq.Tests.UI.Samples by @tteguayco in #325
- OSOE-733: Ability to configure default browser by @Piedone in #326
- OSOE-351: Offer security checks by @Piedone in #322
- OSOE-755: Adding windows headless shell visual testing baseline image by @wAsnk in #330
- OSOE-755: Fix the BasicVisualVerificationTests.VerifyNavbar sample for Unix also by @wAsnk in #332
- TDEAL-8: Use the new AddAsyncResultFilter extension method by @sarahelsaig in #331
- TDEAL-23: Updating visual verification documentation by @porgabi in #335
- TDEAL-16: ZAP improvements by @sarahelsaig in #334
- NEST-113: Updating Configuration.md with info about changing HTML validation rules for specific tests by @DemeSzabolcs in #333
- OSOE-767: Fixing that the sarif reports used different risk and confidence levels than the HTML reports by @Piedone in #339
- OSOE-799: Renaming SelectThemeAsync() to SetThemeDirectlyAsync() by @Piedone in #340
- GOV-29: Adding the ability to do UI testing on a remote environment by @Piedone in #341
- OSOE-807: Removing unneeded MultipleActiveResultSets=True config from the default SQL Server connection string by @Piedone in #344
- OSOE-771: Adding more navigation methods by @Piedone in #342
- LMBQ-299: Adding SetTaxonomyFieldByTextAsync function by @DemeSzabolcs in #345
- OSOE-817: "Creating the web driver failed..." exception when trying to run tests locally by @Piedone in #347
- OSOE-751: Upgrade to Orchard Core 1.8 by @Psichorex in #338
New Contributors
- @tteguayco made their first contribution in #325
Full Changelog: v8.2.0...v9.0.0