Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stabilize e2e tests for phishing detection (#21152)
## **Description** Several e2e testcases about phishing detection are flaky. ## **Why they are flaky?** After investigation, i think because when we open a malicious website, selenium fetch very quickly all the DOM elements and consider they are complete. When the page redirects to phishing detection page, it dose not re-fetch elements so selenium cannot find buttons to click. ## **How i resolve it?** I explicitly force selenium to switch to the phishing detection page each time after redirection so it will re-fetch all elements on this page. ## **Why do i think the fix works** For each testcase, I ran locally 20 times and they all passed. Fixes #21150
- Loading branch information