[Gecko Bug 1470530] [wdspec] Allow parametrization of "session" fixture and remove global "new_session" fixture. #11977
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.
With this patch the "session" fixture will make use of the
new "capabilities" fixture to create WebDriver sessions with
custom capabilities. It means the separate "new_session"
fixture is no longer needed.
Further the "session" fixture will only create a new session
when the specified capabilities are different from the
requested capabilities of the current session.
To make it easier for tests to specify custom capabilities
a marker with the same name has been created. It accepts
a dict of capabilities as argument, and will then parametrize
the current test.
bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1470530
gecko-commit: 1ec59d0783a52165b9d7b8e8c9b57e6ff9fde42b
gecko-integration-branch: central
gecko-reviewers: ato