Commit d810e470 authored by dizg's avatar dizg Committed by Commit Bot

[signin] Add test for notNow button implementation

in the profile creation flow

Bug: 1115056
Change-Id: If6daa52923e55c775a3a5067e701d591e3ed700a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2352737
Commit-Queue: Diana Zagidullina <dizg@google.com>
Reviewed-by: default avatarDavid Roger <droger@chromium.org>
Cr-Commit-Position: refs/heads/master@{#798683}
parent 6b771493
...@@ -48,6 +48,7 @@ js_library("profile_picker_app_test") { ...@@ -48,6 +48,7 @@ js_library("profile_picker_app_test") {
"//chrome/browser/resources/signin/profile_picker:navigation_behavior", "//chrome/browser/resources/signin/profile_picker:navigation_behavior",
"//chrome/browser/resources/signin/profile_picker:profile_picker_app", "//chrome/browser/resources/signin/profile_picker:profile_picker_app",
"//chrome/browser/resources/signin/profile_picker/profile_creation_flow:ensure_lazy_loaded", "//chrome/browser/resources/signin/profile_picker/profile_creation_flow:ensure_lazy_loaded",
"//chrome/browser/resources/signin/profile_picker/profile_creation_flow:local_profile_customization",
] ]
} }
......
...@@ -55,4 +55,23 @@ suite('ProfilePickerAppTest', function() { ...@@ -55,4 +55,23 @@ suite('ProfilePickerAppTest', function() {
return browserProxy.whenCalled('loadSignInProfileCreationFlow'); return browserProxy.whenCalled('loadSignInProfileCreationFlow');
}); });
}); });
test('notNowButtonImplementation', function() {
navigateTo(Routes.NEW_PROFILE);
return waitForLoad()
.then(() => {
return waitBeforeNextRender(app);
})
.then(() => {
const choice = /** @type {!ProfileTypeChoiceElement} */ (
app.$$('profile-type-choice'));
assertTrue(!!choice);
choice.$$('#notNowButton').click();
const customization =
/** @type {!LocalProfileCustomizationElement} */ (
app.$$('local-profile-customization'));
assertTrue(!!customization);
assertTrue(customization.classList.contains('active'));
});
});
}); });
...@@ -125,6 +125,6 @@ var ProfilePickerAppTest = class extends SigninBrowserTest { ...@@ -125,6 +125,6 @@ var ProfilePickerAppTest = class extends SigninBrowserTest {
} }
}; };
TEST_F('ProfilePickerAppTest', 'SignInButtonImplementation', function() { TEST_F('ProfilePickerAppTest', 'ButtonsImplementation', function() {
mocha.run(); mocha.run();
}); });
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment