Tests reusing samples must have unique titles.#14265
Merged
Merged
Conversation
Some tests use the same testcase/sample with different NVDA settings or a different test procedure. To ensure the correct document is focused, append a timestamp comment to the testCase HTML, giving a unique hash for each test.
This comment was marked as outdated.
This comment was marked as outdated.
Contributor
Author
|
Prior build test failure: From the Robot Framework log: Note, the test waited 5 seconds for the title to be reported. The screenshot shows Chrome, tab with title "NVDA Browser Test Case (726508..." visible and a "Restore pages" bubble window:
Chrome crashing is not good, but in this case, it seems to have interfered with the subsequent test. The tests are queued to run again. |
seanbudd
approved these changes
Oct 20, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Link to issue number:
Splitting up PR #14054
Summary of the issue:
When the same sample is used in multiple tests, the title for the app (chrome / notepad) may be identical.
The tests use the app title to determine when the test sample has opened.
When the titles are not unique, the test may start with the app already in an unexpected state, it may also get interrupted by the new app instance opening.
Description of user facing changes
None
Description of development approach
Use a timestamp as well as the sample contents to create a unique title.
Testing strategy:
Run on appveyor.
Known issues with pull request:
None
Change log entries:
None
Code Review Checklist: