Comments (1)
The UI Testing Toolbox now offers a default for the browser being used. Since in all but a single test in the history of Lombiq this was Chrome, that's now the default. 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.
from ui-testing-toolbox.
Related Issues (20)
- Test doesn't fail if the visual verification baseline image is not found but the test is retried (OSOE-591)
- Invalid character in artifact path (OSOE-601) HOT 8
- Add fake video capture sample test (OSOE-609)
- UI test crashes if the web project doesn't reference Lombiq.Tests.UI.Shortcuts (OSOE-626) HOT 3
- Migrate RestEase usage to Refit (OSOE-627)
- Add interactive mode for debugging (OSOE-634) HOT 3
- Retrieve admin URL prefix from AdminOptions (OSOE-659)
- Remove references to Internet Explorer (OSOE-663) HOT 1
- Downloading the Chrome WebDriver fails with Chrome >=15 (OSOE-664) HOT 9
- "Creating the web driver failed" exception recently on GitHub-hosted Linux runners for Edge (OSOE-668) HOT 6
- Fail-fast test execution if any test fails (OSOE-675) HOT 8
- SignInDirectly randomly fails with 404 (OSOE-727) HOT 11
- Generalize Failure Dump to Test Dump (OSOE-732)
- All UI tests fail (OSOE-748) HOT 13
- Fix the BasicVisualVerificationTests.VerifyNavbar sample (OSOE-755) HOT 5
- Security scan fails with an empty result list when used from a NuGet package. (OSOE-767) HOT 3
- Add support for structured html-validate output (OSOE-770) HOT 4
- Remove MultipleActiveResultSets=True (OSOE-807)
- "Creating the web driver failed..." exception when trying to run tests locally (OSOE-817)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ui-testing-toolbox.