[java] Fix "secure vs non-secure" error in tests - #17046
Conversation
After switching "non-secure" test environment to "secure", the global `GlobalTestEnvironment` still continued holding the previous "non-secure" instance. And the following tests failed because this instance had been stopped already.
PR Type(Describe updated until commit b9723de)Bug fix, Tests Description
|
| Relevant files | |
|---|---|
| Tests | |
| Bug fix | |
| Enhancement |
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||||||||
827c084 to
8fd75af
Compare
This help to avoid all kind of problem where test opened a new BiDi "user context" and didn't switch back.
Otherwise, the alert dialog stays open (even after the test calls `alert.accept()`). It can randomly affect the following test.
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||||
After switching "non-secure" test environment to "secure", the global
GlobalTestEnvironmentstill continued holding the previous "non-secure" instance. And the following tests failed because this instance had been stopped already.💥 What does this PR do?
Fixes tests which are broken when I run them locally in my IDE.
🔧 Implementation Notes
See commit messages.
🔄 Types of changes