state == DialogButtonEnableState::kDisabled ? true : false;nit: this can be removed.
return GetParam() == ButtonToClick::kAcceptButtonnit: exhaustive switch statement is clearer here in my opinion.
DialogButtonEnableState::kDisabled));Do you think it is worth attempting to `ClickButton()` again, and expecting nothing. Maybe we could also link the original bug that we had.
{{.test_suffix = "RegularPostClick"}, /*.after_button_click=*/true},Anthi OrfanouI would not have expected a pixel test for that.
Would adding a typscript test be better?
Anthi OrfanouRight now we don't have any such tests, I will try to produce one.
Ryan SultanemI have added a new ui test after making the closing of the dialog optional. I've filed another bug (457370781) for js tests, but so far I fail to instantiate correctly the page under test.
Should I remove the pixel test case?
Thank you for tackling this!
Yes I would say removing the pixel tests is better, as it is not really a "screenshot" like test, and the interactive ui test that you added cover it well enough!
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +1 |
{{.test_suffix = "RegularPostClick"}, /*.after_button_click=*/true},Anthi OrfanouI would not have expected a pixel test for that.
Would adding a typscript test be better?
Anthi OrfanouRight now we don't have any such tests, I will try to produce one.
I have added a new ui test after making the closing of the dialog optional. I've filed another bug (457370781) for js tests, but so far I fail to instantiate correctly the page under test.
Should I remove the pixel test case?
test is added in chrome/browser/ui/signin/signin_view_controller_interactive_uitest.cc
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
state == DialogButtonEnableState::kDisabled ? true : false;nit: this can be removed.
Done
return GetParam() == ButtonToClick::kAcceptButtonnit: exhaustive switch statement is clearer here in my opinion.
Done
DialogButtonEnableState::kDisabled));Do you think it is worth attempting to `ClickButton()` again, and expecting nothing. Maybe we could also link the original bug that we had.
Done
{{.test_suffix = "RegularPostClick"}, /*.after_button_click=*/true},Anthi OrfanouI would not have expected a pixel test for that.
Would adding a typscript test be better?
Anthi OrfanouRight now we don't have any such tests, I will try to produce one.
Anthi OrfanouI have added a new ui test after making the closing of the dialog optional. I've filed another bug (457370781) for js tests, but so far I fail to instantiate correctly the page under test.
Should I remove the pixel test case?
test is added in chrome/browser/ui/signin/signin_view_controller_interactive_uitest.cc
| 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. |
| Code-Review | +1 |
LGTM % question/confirmation.
Thanks!
history sync optin screen, conditional (thought a dedicatednit: `through`
FRIEND_TEST_ALL_PREFIXES(HistorySyncOptinUIWindowPixelTest, InvokeUi_default);nit: this can be removed, right?
/*browser=*/nullptr, /*should_close_modal_dialog=*/false,Just confirming: Is this expected?
My understanding from the commit message is that this param should be used only for testing for now, but in a later change it will actually be used in production.
2 points:
Maybe an idea could be to reuse `HistorySyncOptinLaunchContext` somehow? E.g. for test add a new value maybe? This could be more explicit. Just an idea, I am not fully aware on how this could be used later on.
Assume this as a question/non blocking comment - just sharing ideas.
// possible. Covert back to a check after we verify we no longer hit this.nit: `Convert` :)
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Auto-Submit | +1 |
history sync optin screen, conditional (thought a dedicatedAnthi Orfanounit: `through`
Done
FRIEND_TEST_ALL_PREFIXES(HistorySyncOptinUIWindowPixelTest, InvokeUi_default);nit: this can be removed, right?
Done
/*browser=*/nullptr, /*should_close_modal_dialog=*/false,Just confirming: Is this expected?
My understanding from the commit message is that this param should be used only for testing for now, but in a later change it will actually be used in production.
2 points:
- If it will not be used in production, maybe we can think of a cleaner solution? Please ignore if it is actually needed.
- Is this changing the behavior for the Profile Picker flow? Or is it ignored for this flow as there are no browsers?
Maybe an idea could be to reuse `HistorySyncOptinLaunchContext` somehow? E.g. for test add a new value maybe? This could be more explicit. Just an idea, I am not fully aware on how this could be used later on.
Assume this as a question/non blocking comment - just sharing ideas.
Yes, the value will be used in production for the case of the signin interception which should not close the dialog.
In the profile picker the value does not matter at all:
If there is a null browser there is no modal dialog attached to the browser to close.
For consistency I can change this to true (previous behaviour) and add a comment that the value is ignored if browser is null. My suggestion would be to turn this to an optional:
What do you think? Maybe I can re-work this with the interception bubble CL?
// possible. Covert back to a check after we verify we no longer hit this.Anthi Orfanounit: `Convert` :)
Done
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Auto-Submit | +1 |
/*browser=*/nullptr, /*should_close_modal_dialog=*/false,Anthi OrfanouJust confirming: Is this expected?
My understanding from the commit message is that this param should be used only for testing for now, but in a later change it will actually be used in production.
2 points:
- If it will not be used in production, maybe we can think of a cleaner solution? Please ignore if it is actually needed.
- Is this changing the behavior for the Profile Picker flow? Or is it ignored for this flow as there are no browsers?
Maybe an idea could be to reuse `HistorySyncOptinLaunchContext` somehow? E.g. for test add a new value maybe? This could be more explicit. Just an idea, I am not fully aware on how this could be used later on.
Assume this as a question/non blocking comment - just sharing ideas.
Yes, the value will be used in production for the case of the signin interception which should not close the dialog.
In the profile picker the value does not matter at all:
If there is a null browser there is no modal dialog attached to the browser to close.For consistency I can change this to true (previous behaviour) and add a comment that the value is ignored if browser is null. My suggestion would be to turn this to an optional:
- the picker flows would use an nullopt
- the browser flows would have to set it to true, except for the upcoming signin in interception. We can even CHECK in the browser that if the browser is set then the optional must have a value.
What do you think? Maybe I can re-work this with the interception bubble CL?
Converted to an optional, let's revisit when we consume this for a valid use case where we want to skip.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
/*browser=*/nullptr, /*should_close_modal_dialog=*/false,Anthi OrfanouJust confirming: Is this expected?
My understanding from the commit message is that this param should be used only for testing for now, but in a later change it will actually be used in production.
2 points:
- If it will not be used in production, maybe we can think of a cleaner solution? Please ignore if it is actually needed.
- Is this changing the behavior for the Profile Picker flow? Or is it ignored for this flow as there are no browsers?
Maybe an idea could be to reuse `HistorySyncOptinLaunchContext` somehow? E.g. for test add a new value maybe? This could be more explicit. Just an idea, I am not fully aware on how this could be used later on.
Assume this as a question/non blocking comment - just sharing ideas.
Anthi OrfanouYes, the value will be used in production for the case of the signin interception which should not close the dialog.
In the profile picker the value does not matter at all:
If there is a null browser there is no modal dialog attached to the browser to close.For consistency I can change this to true (previous behaviour) and add a comment that the value is ignored if browser is null. My suggestion would be to turn this to an optional:
- the picker flows would use an nullopt
- the browser flows would have to set it to true, except for the upcoming signin in interception. We can even CHECK in the browser that if the browser is set then the optional must have a value.
What do you think? Maybe I can re-work this with the interception bubble CL?
Converted to an optional, let's revisit when we consume this for a valid use case where we want to skip.
Done
| 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. |
| Code-Review | +1 |
/*browser=*/nullptr, /*should_close_modal_dialog=*/false,Anthi OrfanouJust confirming: Is this expected?
My understanding from the commit message is that this param should be used only for testing for now, but in a later change it will actually be used in production.
2 points:
- If it will not be used in production, maybe we can think of a cleaner solution? Please ignore if it is actually needed.
- Is this changing the behavior for the Profile Picker flow? Or is it ignored for this flow as there are no browsers?
Maybe an idea could be to reuse `HistorySyncOptinLaunchContext` somehow? E.g. for test add a new value maybe? This could be more explicit. Just an idea, I am not fully aware on how this could be used later on.
Assume this as a question/non blocking comment - just sharing ideas.
Anthi OrfanouYes, the value will be used in production for the case of the signin interception which should not close the dialog.
In the profile picker the value does not matter at all:
If there is a null browser there is no modal dialog attached to the browser to close.For consistency I can change this to true (previous behaviour) and add a comment that the value is ignored if browser is null. My suggestion would be to turn this to an optional:
- the picker flows would use an nullopt
- the browser flows would have to set it to true, except for the upcoming signin in interception. We can even CHECK in the browser that if the browser is set then the optional must have a value.
What do you think? Maybe I can re-work this with the interception bubble CL?
Anthi OrfanouConverted to an optional, let's revisit when we consume this for a valid use case where we want to skip.
Done
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Disable history sync buttons after click and close dialog optionally
This CL makes the closure of the modal dialog, displaying the
history sync optin screen, conditional (through a dedicated
argument). This a a pre-requisite of 418143300, where interacting
with the dialog button should not close the hosting dialog. Here
it facilitates easier testing for the button disabling.
The main functional change is button disabling, after the first click, to prevent double-clicking.
The first click triggers an one-off history sync optin flow.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |