Member-only story
Selenium Tests should be 100% Independent
What is independent?
Independent of each other.
If a test depends on another test and the other test fails, the current test may fail as well. Or it may be ignored.
If a test does not depend on any other test, it will run every time.
Independent of development environment.
The test should run on the development environment, on the test environment, on the staging environment with no changes.
Independent of language.
The test should run not only in the main language but in any other language that the site supports.
Independent of the browser.
The test should work in the latest version of Chrome but also in Firefox and Edge.
It should also run in headed and headless mode.
Independent on the execution environment.
The test should run on the local computer and in the cloud, on a virtual machine, in a docker container.
Independent of Java statements.
The test should not include any Java statements so it stays simple and short.
Independent of page objects.