ui_test_utils::BrowserDestroyedObserver unauthorized_popup_closed_observer(
unauthorized_popup);April ZhouDo we know for sure that the unauthorized popup is not destroyed before this observer is set up? I am worried that this will otherwise introduce a race resulting in test flakiness in some environments. Same with the next test below.
Make sense, move the setup up to make it deterministic
// The authorized oauth popup should still be open.
EXPECT_EQ(chrome::GetTotalBrowserCount(), original_browser_count + 1);April ZhouWould it make more sense to explicitly check for `popup_browser` being open instead? Same with the next test below.
Done
ash::BrowserDelegate* browser = nullptr);April ZhouCan we force this param on all callers? It will help to uncover edge cases.
Done
if (in_progress && browser &&April ZhouWhen will the `browser` be nullptr?
This is to handle any race condition that caused the browser window to be closed before this execution - manually or by other process so that we only track valid window
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
Thanks for fixing this, April! LGTM % minor test nits.
EXPECT_FALSE(popup_browser->is_delete_scheduled());[nit] `ASSERT_FALSE` so we fail fast? :)
EXPECT_FALSE(popup_browser->is_delete_scheduled());[nit] Same here about the `ASSERT_FALSE` so we fail fast.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
EXPECT_FALSE(popup_browser->is_delete_scheduled());[nit] `ASSERT_FALSE` so we fail fast? :)
I prefer to use ASSERT only when the following test case depends on the current assertion, otherwise using EXPECT would allow us to see more failure at once. Keep it as it is, let me know if any concerns.
EXPECT_FALSE(popup_browser->is_delete_scheduled());[nit] Same here about the `ASSERT_FALSE` so we fail fast.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Fix the escape from auth pop up by minimize un-authorized window.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |